Skip to content

Instantly share code, notes, and snippets.

View abraham's full-sized avatar
thanks a latte

Abraham Williams abraham

thanks a latte
View GitHub Profile
$ curl -v www.tripleaughtdesign.com
* Adding handle: conn: 0x7f97ac004000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f97ac004000) send_pipe: 1, recv_pipe: 0
* About to connect() to www.tripleaughtdesign.com port 80 (#0)
* Trying 208.72.84.101...
* Connected to www.tripleaughtdesign.com (208.72.84.101) port 80 (#0)
> GET / HTTP/1.1
Verifying that +abrahamwilliams is my Bitcoin username. You can send me #bitcoin here: https://onename.io/abrahamwilliams
@abraham
abraham / keybase.md
Created June 16, 2015 15:17
keybase prove github

Keybase proof

I hereby claim:

  • I am abraham on github.
  • I am abrahamwilliams (https://keybase.io/abrahamwilliams) on keybase.
  • I have a public key whose fingerprint is D112 A2C4 6FE1 6875 F00A 01E1 2C24 148D EFBE BF13

To claim this, I am signing this object:

@abraham
abraham / wkhtmltopdf.rb
Last active August 29, 2015 14:27
Brew formula to install wkhtmltopdf v0.9.9 with sha256
# SHA256 install formula to install wkhtmltopdf v0.9.9
# Source: https://gist.github.com/abraham/3fc0909958d90bdea89e
# Modified from https://raw.githubusercontent.com/mxcl/homebrew/6e2d550cf4961129a790bfb0973f8e88704f439d/Library/Formula/wkhtmltopdf.rb
require 'formula'
class Wkhtmltopdf < Formula
url 'http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9.tar.bz2'
homepage 'http://code.google.com/p/wkhtmltopdf/'
sha256 'e6311c0d398d50c757d43d34f1f63c4b33010441e97d07e92647542419ab1a8b'
@abraham
abraham / update_profile_background_image.rb
Created January 21, 2010 04:11 — forked from r/update_profile_background_image.rb
Ruby example of uploading images through OAuth
#!/usr/bin/env ruby
# update_profile_background_image.rb
#
# a simple example of how to construct the OAuth signatures necessary to upload
# a background image to a Twitter profile page. this will call
# account/update_profile_background_image.xml with the contents of
# 'background.png' (must be in the same directory as this script). care has
# been given to document this script, as well as to correlate lines in this
# script with the OAuth Core 1.0 specification (http://oauth.net/core/1.0/).
@abraham
abraham / error.php
Created March 10, 2010 23:42
Display PHP error notices
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL | E_STRICT);
#!/usr/bin/perl
# updated 2008-08-21
$baseurl = 'http://ftp.drupal.org/files/projects/';
$fileextension = '.tar.gz';
$core = 'drupal-6.4';
$modulesfolder = 'sites/all/modules/';
$themesfoler = 'sites/all/themes/';
$settingsfolder = 'sites/default/';
from google.appengine.ext import webapp
from google.appengine.ext import users
from google.appengine.ext import blobstore
from google.appengine.ext.webapp import blobstore_handlers
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp.util import login_required
class MainPage(webapp.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
function iev(count)
{
var ifs=$('iframe',g.getActiveViewElement());
var ifm;
for(var i=0;i
{
if(!ifs[i].gcc_added)
{
ifm=ifs[i].contentDocument;
ifm.body.setAttribute('count_class','char_count'+count);
require 'rubygems'
require 'yajl/http_stream'
require 'uri'
require 'open-uri'
USERNAME = 'username'
PASSWORD = 'password'
# If you've got a ton of either, you'll have to fork and cursor through
fr_ids = Yajl::HttpStream.get(URI.parse("https://api.twitter.com/1/friends/ids/#{USERNAME}.json"))