Skip to content

Instantly share code, notes, and snippets.

@og-shawn-crigger
og-shawn-crigger / memorykiller.sh
Created October 18, 2012 00:34
V6 SuperCharger, OOM Grouping & Priority Fixes created by zeppelinrox.
#!/system/bin/sh
# Copyright© 2011 Juwe11
if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then
echo "2560,4096,6144,12288,14336,18432" > /sys/module/lowmemorykiller/parameters/minfree
fi
if [ -e /proc/sys/vm/swappiness ]; then
echo "50" > /proc/sys/vm/swappiness
fi
@mtauraso
mtauraso / asana-nginx.conf
Created November 1, 2013 01:56
Asana's current Nginx configuration. It terminates TLS in a hardened, performant, and future looking manner, and passes connections on to a local Haproxy process
# LBs have 8 cores. One is used for haproxy, rest are used for nginx workers
worker_processes 7;
worker_rlimit_nofile 90000;
pid <PID_FILE>;
events {
use epoll;
multi_accept off;
accept_mutex off;