Init.d doesn't work on CM12 so the unique way to make it automatically at boot is with an paid app.
"Boot Shell + Pro Version" (no spoiler)
1. Download Boot Shell and buy Pro version (you also can "buy" it on Aptoide , but highly recommended support the developer is the correct way)
2. Open it , in lateral menu and select "New script" and put it a name. (Ex: LMK)
3. Copy and paste it:
chmod 644 /sys/module/lowmemorykiller/parameters/adj echo '0,58,117,176,529,1000' > /sys/module/lowmemorykiller/parameters/adj chmod 644 /sys/module/lowmemorykiller/parameters/minfree echo '12288,15360,18432,21504,24576,30720' > /sys/module/lowmemorykiller/parameters/minfree
5. Restart and enjoy best RAM management
@BlueFlame4 one part of the code