Skip to content

Instantly share code, notes, and snippets.

View riceo's full-sized avatar
🚀
https://vorboss.com

Aaron Rice riceo

🚀
https://vorboss.com
  • London, UK
View GitHub Profile
@riceo
riceo / deliver_sm.py
Last active August 30, 2023 16:27 — forked from zspine/deliver_sm.py
Fork of zspine/deliver_sm.py, 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
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 July 2, 2015 21:16
Iterm2 Dark / Blue-tinted theme
<?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 December 15, 2015 10:38
Install phpredis with ibinary support
#!/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 March 18, 2013 13:36
Install PHP composer globally.
#!/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
........
.';;;;;;;;;;;;,..
';;;;;;;;,,,;;;;;;;;.
.;;;;;,. ..;;;;;,
';;;;,. .;;;;;.
.;;;;, .,;;;'. .;;;;;
,;;;; ;;;;;;;;' ';;;;.
;;;;; .;;;;;;;;; .;;;;.
';;;;. ';;;;;;;. ,;;;;.
@riceo
riceo / cloudflare_dynamic_dns.py
Created April 16, 2012 21:52
Dynamic DNS with Cloudflare - Python Script
#!/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
7I7I7777777I777I7II7I7II777III77II77IIII7777III7I77I77III7I7I77II7IIIII7II77IIIIII7II7IIII7I7II77II7II7III777I7II77I7II7777I77777II7I777I7I7II77III7I77II7II7I7I
II7777II7I77II7I7IIIII7II7II77I77I7II7IIII7IIIIIII7II7II7IIII77III7II77I7II7IIIIIII7777I7I777III77IIIII7III777I77I77777777I7I77II77I7II777I7II777II7III77IIIIII7
77II7II77I7I7I7I7II7II7III7I77IIII7I7III7777II7IIII7I77I7II77IIII7I7777III77I7II7III77I7I777IIIIII77II7IIIIII77II77IIIIIII7I7I77IIII77777I777IIIII7777777I7I77II
I7I77I7IIII77II7IIII77III7III77777I77777III7I7IIII7I7II7I777IIIII777I7IIIII7III7II7I7I777IIII7IIII7II7I7II77II777I7I77I7777I7I7II7IIIIIII7IIIII7I77777I77IIIII77
III77II7II7I7I7III77II7I7777I777I77I7I777II7777I77I777II7I77II7II77I777I7777I7I7IIII7777IIII7I77777I7I77I7I7I7III77III7I7I77I7I7I7II777I7III7I777II77777I7III777
IIII7II7III7III7777I7II77777III7IIII7777777777I7I7IIIII7II77I77777I7I7I7II7I7I7777I77I77II77III777777II7III77I777II7I7777III777I7IIIIIII7777I777777I7777IIII7III
I77IIIII7II77I7777III7I77III777I77II77III7I7IIII777IIIIII