Bestand naar C, C++ variable converten.

Om een bestand als variable in C of C++ te gebruiken kun je de tool xxd gebruiken.
xxd is standaard aanwezig op de meeste linux Mint machines.

cellie@cellie-Mint-64 ~ $ echo Hello World\! > temp
cellie@cellie-Mint-64 ~ $ xxd -i temp
unsigned char temp[] = {
0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x21,
0x0a
};
unsigned int temp_len = 13;

Om de variable niet in RAM maar in ROM terecht te laten komen verander je de code als volgt:

const char temp[] = {
0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x21,
0x0a
};
const int temp_len = 13;

De link:

Natuurlijk niet zelf bedacht maar gevonden op stackoverflow.

NFS setup 2017

on the server:

/etc/exports

/media/storage 192.168.2.0/24(no_subtree_check,insecure,rw)
/media/movie 192.168.2.0/24(no_root_squash,rw,async,no_subtree_check)
/var/www 192.168.2.0/24(rw,no_subtree_check)

on pc clients:

/etc/fstab

192.168.2.2:/media/storage /media/storage nfs auto,rw,hard,intr 0 0
192.168.2.2:/var/www /mnt/www nfs auto,rw,hard,intr 0 0

on Enigma2 clients:

/etc/fstab

192.168.2.2:/media/movie /media/hdd/movie nfs rw,intr,nolock 0 0
192.168.2.2:/media/storage /media/storage nfs rw 0 0

EXODUS ON KODI 17 INSTALL GUIDE.

Exodus on Kodi 17 Install Guide.

  1. SETUP  > SYTEM SETTINGS > ADD-ONS > Enable Unknown Sources.
  2. SETUP  > SYTEM SETTINGS > FILEMANAGER > Add Source
  3. Enter  http://fusion.tvaddons.ag in the top box – Enter Fusion in the bottom box-OK.
  4. HOME > ADD-ONS – Add-on Browser (box icon).
    Install from zip file – Fusion – Select kodi-repos – Select english – Select repo.exodus.x.x.x.zip.
    Wait for Add-on enabled notification.
  5. Install from repository –Exodus Repo – Video add-ons – Exodus – Install.
  6. Wait for Add-on enabled notification.
  7. Exodus is now installed and ready to use.

The Add-on can now be located from HOME screen – Video Add-Ons – Exodus.