Skip to content

Instantly share code, notes, and snippets.

Andrew Mussey amussey

View GitHub Profile
@amussey
amussey / .gitignore
Last active Aug 29, 2015
Rackspace Persistent Login Extension for Chrome
View datetime_storage.json
{
"1" : {
"date" : "2014-08-13",
"count" : 5
},
"2" : {
"date" : "2014-08-14",
"count" : 3
}
}
View Install-Rackspace-Monitoring-Agent.sh
#!/bin/bash
# command -v lsb_release >/dev/null 2>&1 || { echo "This script requires lsb_release, but the command is not available." >&2; exit 1; }
# echo -e "This script will need to be run as root. To view the source of this script, visit:\n"
YOUR_INSTALL=$(head -1 /etc/issue | sed 's/ \\n \\l//')
View removecompletedtorrents.sh
#!/bin/sh
# script to check for complete torrents in transmission folder, then stop and move them
# either hard-code the MOVEDIR variable here?
# ?or set MOVEDIR using the first command-line argument
# MOVEDIR=%1
# use transmission-remote to get torrent list from transmission-remote list
# use sed to delete first / last line of output, and remove leading spaces
# use cut to get first field from each line
View index.md

Testing

This will be cool

@amussey
amussey / README.md
Created May 26, 2015
Distorted View Webscript.io PocketCast Fix
View README.md

PocketCast + SuperFreak Sideshow

The following script will allow you to use PocketCast with the Distorted View Superfreak Sideshow RSS feed. Simply plug it in to a Webscript.io endpoint with your username and password and point PocketCast at it.

@amussey
amussey / 0_reuse_code.js
Created Oct 1, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@amussey
amussey / .gitignore
Last active Dec 24, 2015
Cassandra Scripts
View .gitignore
cassandra_config.py
*.pyc
project/
@amussey
amussey / README.md
Last active Dec 25, 2015
Cassandra Database Injector Quickly insert a file of CQL3 data into your Cassandra cluster.
View README.md

CQL Database Injector

To run this, simply run:

python cassandra-cql.py hostname port script_file [-f]

This will soon be packaged for pip.

View convert.php
<?php
$new_array = array();
for ($i = 0; $i < intval(count($old_array)/2); $i++) {
$new_array[$old_array[2*$i]] = $old_array[2*$i+1];
}
You can’t perform that action at this time.