[Nexus 6 Android Development] :
Yeah, I've shared it before as well. Here it is again.

#!/system/bin/sh

# Setup CPU freqs in MSM_LIMITER
echo 2956800 > /sys/kernel/msm_limiter/resume_max_freq
echo 2956800 > /sys/kernel/msm_limiter/resume_max_freq_0
echo 2956800 > /sys/kernel/msm_limiter/resume_max_freq_1
echo 2956800 > /sys/kernel/msm_limiter/resume_max_freq_2
echo 2956800 > /sys/kernel/msm_limiter/resume_max_freq_3
echo elementalx > /sys/kernel/msm_limiter/scaling_governor
echo elementalx > /sys/kernel/msm_limiter/scaling_governor_0
echo elementalx > /sys/kernel/msm_limiter/scaling_governor_1
echo elementalx > /sys/kernel/msm_limiter/scaling_governor_2
echo elementalx > /sys/kernel/msm_limiter/scaling_governor_3
echo 1267200 > /sys/kernel/msm_limiter/suspend_max_freq
echo 300000 > /sys/kernel/msm_limiter/suspend_min_freq
echo 300000 > /sys/kernel/msm_limiter/suspend_min_freq_0
echo 35800 > /sys/kernel/msm_limiter/suspend_min_freq_1
echo 35800 > /sys/kernel/msm_limiter/suspend_min_freq_2
echo 35800 > /sys/kernel/msm_limiter/suspend_min_freq_3

# Disable Bricked, enable IntelliPlug and set it to balanced
echo 1 > /sys/kernel/intelli_plug/intelli_plug_active
echo 0 > /sys/kernel/intelli_plug/full_mode_profile

# Disable Core Control, enable IntelliThermal, lower core limit
echo 1 > /sys/module/msm_thermal/parameters/enabled
echo 76 > /sys/module/msm_thermal/parameters/core_limit_temp_degC
echo 60 > /sys/module/msm_thermal/parameters/limit_temp_degC
echo 0 > /sys/module/msm_thermal/core_control/enabled

# Enable Simple GPU Algorithm
echo 1 > /sys/module/simple_gpu_algorithm/parameters/simple_gpu_activate

# Enable a 250MB zram disk. Unsure if this really helps anything.
echo 262144000 > /sys/devices/virtual/block/zram0/disksize

# Change TCP Congestion
echo westwood > /proc/sys/net/ipv4/tcp_congestion_control

# Enable force fast charge
echo 1 > /sys/kernel/fast_charge/force_fast_charge

# Enable Adaptive LMK
echo 1 > /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk

# Disable WakeLocks
echo 0 > /sys/module/wakeup/parameters/enable_msm_hsic_ws
echo 0 > /sys/module/wakeup/parameters/enable_smb135x_wake_ws
echo 0 > /sys/module/wakeup/parameters/enable_bluesleep_ws

The way I have it set up is in the /system/su.d directory so that it runs with su.d. However, some of the settings get overwritten by the init scripts because of when su.d runs in the boot process. So I also set it up to run 5 seconds after boot through tasker as well.

The only catch with this method is that you have to add this manually. Easiest way is to look for the option that youre changing in synapse, find that in the ukm files (little advanced I guess) and check the sysfs path it lists for what value it has when you say it the way you want it. Then you just add that value and path as an echo in the script.

I tried to include comments to make it easier for people to follow.

I know that apophis9283 uses synapse without the boot warning it gives. But mine had never behaved right. Partially because of lux. It changes the kcal values which makes synapse think that the settings failed because they don't match it's database.

Edit:

Also on top of these settings, for battery life I use the app Naptime by Francisco Franco (on play store) to set doze to aggressive.