note: I converted this script into the much easier to install joinopenwifi
module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
#!/usr/bin/env ruby | |
# Jabber-SH — SH console via XMPP/Jabber (GTalk) | |
# | |
# Jabber-SH allows you to administrate a remote computer via a command line | |
# through a Jabber client. It’s like SSH via GoogleTalk! :) | |
# This is just a hack but it might be usefull sometime to run basic commands | |
# on a machine that is not accessible via ssh. | |
# | |
# Philippe Creux. pcreux/AT/gmail/DOT/com |
#! /usr/bin/env ruby | |
require 'rubygems' | |
require 'mechanize' | |
require 'logger' | |
projects = %w{ | |
project_name_1 | |
project_name_2 | |
} |
<?php | |
/* | |
Easy to use sms notifications from Notifo | |
Super quick hack by Harper - @harper - harper@nata2.org | |
First: | |
-------------- | |
Get Google-Voice-PHP-API: |
# needs http://jocr.sourceforge.net/ | |
# sudo port install gocr | |
# | |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
doc = Nokogiri::HTML(open("http://cidlookup.com/lookup/#{ARGV[0].gsub("-","")}/")) | |
image_url = "http://cidlookup.com" + doc.css("#content .gt img").first.attributes["src"] | |
caller_name = `curl #{image_url} > name.png 2> /dev/null && gocr name.png` |
# needs http://jocr.sourceforge.net/ | |
# sudo port install gocr | |
# | |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
doc = Nokogiri::HTML(open("http://cidlookup.com/lookup/#{ARGV[0].gsub("-","")}/")) | |
image_url = "http://cidlookup.com" + doc.css("#content .gt img").first.attributes["src"] | |
caller_name = `curl #{image_url} > name.png 2> /dev/null && gocr name.png` |
Addressing each question individually, | |
What I think: | |
It's a fantastic fit for small applications and large applications in | |
some very specific use cases. That being said, I know the persistence | |
layer you use (disk, dynamo db, sql) has some effect on the performance | |
so you could tune it to the use case. | |
Being able to execute queries that are built out of clojure data structures |
#!/usr/bin/env python | |
""" | |
A script to query the Amazon Web Services usage reports programmatically. | |
Ideally this wouldn't exist, and Amazon would provide an API we can use | |
instead, but hey - that's life. | |
Basically takes your AWS account username and password, logs into the | |
website as you, and grabs the data out. Always gets the 'All Usage Types' |
def math(hours, wage, tax): | |
pretax = hours * wage #figures gross income | |
taxes = pretax * tax #figures how much goes into taxes | |
leftover = pretax - taxes #figures how much will be leftover | |
print "You have made $",pretax | |
print "Put $", taxes, " in the bank for taxes." | |
print "$", leftover, " is yours!!" | |
print "Figure out how much to put in the bank for taxes." | |
print "These figures are based on working in Colorado" |
note: I converted this script into the much easier to install joinopenwifi
module on NPM
see https://github.com/maxogden/joinopenwifi#joinopenwifi for installation instructions
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |