Skip to content

Instantly share code, notes, and snippets.

technoweenie / gist:1072829
Created Jul 8, 2011
.netrc file so you can push/pull to https git repos without entering your creds all the time
View gist:1072829
login technoweenie
password SECRET
login technoweenie
password SECRET
narkisr / ubunt-desktop.seed
Created Sep 30, 2011
An Ubuntu desktop preseed file
View ubunt-desktop.seed
d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/splash boolean false
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
d-i console-setup/variantcode string
# network
d-i netcfg/get_nameservers string
d-i netcfg/get_ipaddress string
d-i netcfg/get_netmask string
potatosalad / project-web-reload.conf
Created Feb 11, 2012
Upstart + Bluepill + Unicorn with hot restart
View project-web-reload.conf
# /etc/init/project-web-reload.conf
pre-start script
initctl restart project-web
sleep 15
end script
exec /usr/local/rvm/bin/default_bluepill restart
evadne /
Last active Apr 25, 2018
Create display override file to force Mac OS X to use RGB mode for Display.

Create display override file to force Mac OS X to use RGB mode for Display.

  • Dell (4268) = 0x40ac
  • U3011 (16485) = 0x4065: /System/Library/Displays/Overrides/DisplayVendorID-10ac/DisplayProductID-4065
  • U2713HM (16512) = 0x4080: /System/Library/Displays/Overrides/DisplayVendorID-10ac/DisplayProductID-4080

Credit:; works for OS X 10.8 & last tested on 10.9 13A476u.

thoop / nginx.conf
Last active Dec 7, 2021
Official nginx.conf for nginx
View nginx.conf
# Change YOUR_TOKEN to your prerender token
# Change (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
root /path/to/your/root;
index index.html;
faxm0dem / collectd-jmx.conf
Created Aug 5, 2015
collectd jmx example
View collectd-jmx.conf
<Plugin "java">
JVMARG "-Djava.class.path=/usr/share/collectd/java/collectd-api.jar:/usr/share/collectd/java/generic-jmx.jar"
LoadPlugin ""
<Plugin "GenericJMX">
<MBean "gc-count">
ObjectName "java.lang:type=GarbageCollector,*"
InstancePrefix "gc-"
InstanceFrom "name"
Type "derive"
Brainiarc7 / VAAPI-hwaccel-encode-Linux-Ffmpeg&
Last active Dec 8, 2021
This gist contains instructions on setting up FFmpeg and Libav to use VAAPI-based hardware accelerated encoding (on supported platforms) for H.264 (and H.265 on supported hardware) video formats.
View VAAPI-hwaccel-encode-Linux-Ffmpeg&

Using VAAPI's hardware accelerated video encoding on Linux with Intel's hardware on FFmpeg and libav

Hello, brethren :-)

As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".

sacreman / prometheus.yml
Last active Aug 7, 2020
Prometheus configuration to scrape Kubernetes outside the cluster
View prometheus.yml
# Prometheus configuration to scrape Kubernetes outside the cluster
# Change master_ip and api_password to match your master server address and admin password
scrape_interval: 15s
evaluation_interval: 15s
# metrics for the prometheus server
- job_name: 'prometheus'