Localhost

Blog: Hamza

Manage an OpenLDAP based directory

Manage an OpenLDAP based directory

LDAP Account Manager (LAM) is a webfrontend for managing entries (e.g. users, groups, DHCP settings) stored in an LDAP directory. LAM was designed to make LDAP management as easy as possible for the user. It abstracts from the technical details of LDAP and allows persons without technical background to manage LDAP entries. If needed, power users may still directly edit LDAP entries via the integrated LDAP browser. Read more…

Laravel Deployment - Setup environment

Setup dependencies

Install NGINX through apt:

$ apt install nginx

Install php dependencies

$ apt install php7.2 php7.2-curl php7.2-common php7.2-cli php7.2-mysql php7.2-mbstring php7.2-fpm php7.2-xml php7.2-zip php7.2-bcmath

Update php.ini properties:

$ nano /etc/php/7.2/fpm/php.ini
#edit according to your setup
memory_limit = 1024M
Read more…

Resolve UnsatisifiedLinkError on x64 Devices

On some android devices, specifically those that has x64 architecture, you might run into the following error:

Fatal Exception: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[
...
couldn't find "libcryptoandros.so"

This error is caused by a missing arm64 folder where android expects to find the .so libraries. To take into account this architecture, you need to add the following to your build.gradle file:

android {
    defaultConfig {
        ...

        ndk {
            abiFilters "armeabi-v7a", "x86", "armeabi",   "mips"
        }
    }
    ...
}

Build Vue JS apps with relative paths

In case you use the default vue js build, you will end up having absolute paths for your JS and CSS assets (i.e. /js/somejsfiledependency.js). To change this behavior:

Add a vue.config.js at the root of your vue project and specify publicPath :

module.exports = {
    publicPath: ''
};

Using youtube-dl to download list of videos from a channel

# youtube-dl -f <quality> -ciw -o "%(title)s.%(ext)s" -v <channel_url>