Skip to content

Instantly share code, notes, and snippets.

Avatar

Aaron Rice riceo

View GitHub Profile
View gist:50f160db4d839e6c227926736349cd07
git clone https://github.com/WuBingzheng/memleax && cd memleax && \
apt-get install -y libunwind-dev libelf-dev libdwarf-dev && \
./configure && \
make && \
make install
@riceo
riceo / iterm_colours.itermcolors
Created Jul 2, 2015
Iterm2 Dark / Blue-tinted theme
View iterm_colours.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.15002617239952087</real>
<key>Green Component</key>
<real>0.12602922320365906</real>
@riceo
riceo / phpredis_ibinary.sh
Last active Dec 15, 2015
Install phpredis with ibinary support
View phpredis_ibinary.sh
#!/bin/bash
pecl install igbinary
echo "extension=igbinary.so" > /etc/php5/conf.d/igbinary.ini
git clone https://github.com/nicolasff/phpredis.git /opt/phpredis
cd phpredis
phpize
./configure --enable-redis-igbinary
make && make install
@riceo
riceo / global_composer_install.sh
Created Mar 18, 2013
Install PHP composer globally.
View global_composer_install.sh
#!/bin/bash
mkdir /opt/composer
curl -sS https://getcomposer.org/installer | php -- --install-dir=/opt/composer
ln -s /opt/composer/composer.phar /usr/bin/composer
composer
View gist:4327442
........
.';;;;;;;;;;;;,..
';;;;;;;;,,,;;;;;;;;.
.;;;;;,. ..;;;;;,
';;;;,. .;;;;;.
.;;;;, .,;;;'. .;;;;;
,;;;; ;;;;;;;;' ';;;;.
;;;;; .;;;;;;;;; .;;;;.
';;;;. ';;;;;;;. ,;;;;.
@riceo
riceo / cloudflare_dynamic_dns.py
Created Apr 16, 2012
Dynamic DNS with Cloudflare - Python Script
View cloudflare_dynamic_dns.py
#!/usr/bin/python
# Set up a new A record in Cloudflare, add the details of it along with your account details below
# Make sure this script runs on startup (or whenever you get a new IP...)
#
# @author Aaron Rice <aaron@duedil.com>
import urllib
import json
View gist:1705918
7I7I7777777I777I7II7I7II777III77II77IIII7777III7I77I77III7I7I77II7IIIII7II77IIIIII7II7IIII7I7II77II7II7III777I7II77I7II7777I77777II7I777I7I7II77III7I77II7II7I7I
II7777II7I77II7I7IIIII7II7II77I77I7II7IIII7IIIIIII7II7II7IIII77III7II77I7II7IIIIIII7777I7I777III77IIIII7III777I77I77777777I7I77II77I7II777I7II777II7III77IIIIII7
77II7II77I7I7I7I7II7II7III7I77IIII7I7III7777II7IIII7I77I7II77IIII7I7777III77I7II7III77I7I777IIIIII77II7IIIIII77II77IIIIIII7I7I77IIII77777I777IIIII7777777I7I77II
I7I77I7IIII77II7IIII77III7III77777I77777III7I7IIII7I7II7I777IIIII777I7IIIII7III7II7I7I777IIII7IIII7II7I7II77II777I7I77I7777I7I7II7IIIIIII7IIIII7I77777I77IIIII77
III77II7II7I7I7III77II7I7777I777I77I7I777II7777I77I777II7I77II7II77I777I7777I7I7IIII7777IIII7I77777I7I77I7I7I7III77III7I7I77I7I7I7II777I7III7I777II77777I7III777
IIII7II7III7III7777I7II77777III7IIII7777777777I7I7IIIII7II77I77777I7I7I7II7I7I7777I77I77II77III777777II7III77I777II7I7777III777I7IIIIIII7777I777777I7777IIII7III
I77IIIII7II77I7777III7I77III777I77II77III7I7IIII777IIIIII
You can’t perform that action at this time.