This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env -i python | |
import xml.etree.ElementTree | |
import subprocess | |
tree = xml.etree.ElementTree.ElementTree() | |
tree.parse('iTunes Music Library.xml') | |
doc = tree.getroot() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var geocoder = require('geocoder'); | |
var async = require('async'); | |
var eodata = require('./data.json'); | |
process.stdout.write('[\n'); | |
async.mapLimit(eodata, 1, function(item, callback) { | |
setTimeout(function() { | |
geocoder.geocode(item.StreetAddress, function(err, result) { | |
if (!result.results[0]) { | |
callback(result.status); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
[ -e ~/.raxrc ] || (echo -e "Please create a ~/.raxrc file with your credentials\nhttps://github.com/racker/rackspace-monitoring-cli#settings-credentials\n" >&2 && exit 1) | |
USERNAME=`grep username ~/.raxrc | awk -F'=' '{print $2}'` | |
API_KEY=`grep api_key ~/.raxrc | awk -F'=' '{print $2}'` | |
[ -z "$USERNAME" ] && (echo -e "No username in ~/.raxrc!" && exit 1) | |
[ -z "$API_KEY" ] && (echo -e "No api_key in ~/.raxrc!" && exit 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ template: '<div class="panel {{class}}">\n <h3>{{header}}</h3>\n\n <ol class="chart-bar">\n {{#categories}}\n <li>\n <span class="point">\n <span class="idx" style="width: {{width}}%;"></span>\n <span class="label">{{category_name}}</span>\n <span class="count">{{crime_count}}</span>\n </span>\n </li>\n {{/categories}}\n </ol>\n</div>\n', | |
class: 'category', | |
header: 'Most frequent', | |
categories: | |
[ { crime_count: 1760, | |
category_name: 'Simple Battery', | |
width: 100 }, | |
{ crime_count: 1329, | |
category_name: 'Theft', | |
width: 76 }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#################### | |
# CKAN installation script | |
# based on http://docs.ckan.org/en/master/install-from-source.html | |
#################### | |
# @TODO Get these values as flags | |
dbpassword='abcde12345' | |
readonlydbpassword='abcde12345' |
![95258496_10223447083986145_6416444075209129984_o.jpg](https://gist.github.com/robert-chiniquy/b25bffb5300ce794f198/raw/3cec52e4790ddc42790fe21bc7dff9d85c235d0f/95258496_10223447083986145_6416444075209129984_o.jpg)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.edimax.com/edimax/mw/cufiles/files/download/Driver_Utility/transfer/Wireless/NIC/EW-7811Un/EW-7811Un_Linux_driver_v1.0.0.5.zip | |
or | |
mkdir -p /lib/firmware/rtlwifi | |
cd /lib/firmware/rtlwifi/ | |
wget http://chromium.arnoldthebat.co.uk/files/fw/lib/firmware/rtlwifi/rtl8192cufw.bin |
OlderNewer