Skip to content

Instantly share code, notes, and snippets.

View riceo's full-sized avatar

Aaron Rice riceo

  • London, UK
View GitHub Profile
riceo /
Last active August 30, 2023 16:27 — forked from zspine/
Fork of zspine/, updated to work with changes in Jasmin SMS since the original was created + fixes a rabbitmq bug. This script will take a submit_sm PDU, send an OK back to the originator whilst replaying it to jasmin as a deliver_sm, effectively converting a submit_sm to deliver_sm. Also will send back a DELIVRD DLR!
# V0.64
# Bump the above version when modifying this script / pushing to the CLI -
# it's a nice way to confirm that the right code is running on jasmin.
import pickle
import logging
import uuid
import pika
from datetime import datetime
from jasmin.managers.content import DeliverSmContent
View gist:50f160db4d839e6c227926736349cd07
git clone && cd memleax && \
apt-get install -y libunwind-dev libelf-dev libdwarf-dev && \
./configure && \
make && \
make install
riceo / iterm_colours.itermcolors
Created July 2, 2015 21:16
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" "">
<plist version="1.0">
<key>Ansi 0 Color</key>
<key>Blue Component</key>
<key>Green Component</key>
riceo /
Last active December 15, 2015 10:38
Install phpredis with ibinary support
pecl install igbinary
echo "" > /etc/php5/conf.d/igbinary.ini
git clone /opt/phpredis
cd phpredis
./configure --enable-redis-igbinary
make && make install
riceo /
Created March 18, 2013 13:36
Install PHP composer globally.
mkdir /opt/composer
curl -sS | php -- --install-dir=/opt/composer
ln -s /opt/composer/composer.phar /usr/bin/composer
View gist:4327442
.;;;;;,. ..;;;;;,
';;;;,. .;;;;;.
.;;;;, .,;;;'. .;;;;;
,;;;; ;;;;;;;;' ';;;;.
;;;;; .;;;;;;;;; .;;;;.
';;;;. ';;;;;;;. ,;;;;.
riceo /
Created April 16, 2012 21:52
Dynamic DNS with Cloudflare - Python Script
# 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 <>
import urllib
import json
View gist:1705918