Skip to content

Instantly share code, notes, and snippets.

View ali's full-sized avatar

Ali Ukani ali

View GitHub Profile
@ali
ali / cake.rb
Last active December 14, 2015 20:19
Yay!
CAKE = <<-OMGCAKE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HAPPY BIRTHDAY, NATE!
OMGCAKE
{"hostname":"batterup","os":"linux","users":{"total":0,"tty":0,"pts":0},"timestamp":1360522877}
file: /tmp/linux/joust-1360522884, hostname: joust, set: 2013-02-10 14:01:24 -0500
{"hostname":"joust","os":"linux","users":{"total":0,"tty":0,"pts":0},"timestamp":1360522884}
file: /tmp/linux/astroblaster-1360522879, hostname: astroblaster, set: 2013-02-10 14:01:19 -0500
{"hostname":"astroblaster","os":"linux","users":{"total":0,"tty":0,"pts":0},"timestamp":1360522879}
file: /tmp/linux/alleyrally-1360522878, hostname: alleyrally, set: 2013-02-10 14:01:18 -0500
{"hostname":"alleyrally","os":"linux","users":{"total":0,"tty":0,"pts":0},"timestamp":1360522878}
file: /tmp/linux/turtles-1360522902, hostname: turtles, set: 2013-02-10 14:01:42 -0500
{"hostname":"turtles","os":"linux","users":{"total":0,"tty":0,"pts":0},"timestamp":1360522902}
file: /tmp/linux/timepilot-1360522878, hostname: timepilot, set: 2013-02-10 14:01:18 -0500
@ali
ali / wut.coffee
Created December 18, 2012 03:25 — forked from anonymous/wut.coffee
Node.js demo app thing
###
# Learning some Node/Express/Coffeescript :>
###
http = require 'http'
nouns = [
'ali', 'pranav', 'wylie', 'spencer',
'dnb', 'cba', 'thang', 'DDS', 'leebot'
]
@ali
ali / download.bash
Created July 29, 2012 08:10
Downloads all of the HOPE 9 Conference mp3s
#!/bin/bash
# Downloads all of the HOPE 9 Conference mp3s (info found on http://www.hopenumbernine.net/schedule/) to the current directory
wget -O "Michael Weinberg - 3D Printing: Making Friends in DC Before People Start Freaking Out.mp3" http://c3455205.r5.cf0.rackcdn.com/HN9A23.mp3
wget -O "Molly Sauter - Activist DDoS Attacks: When Analogies and Metaphors Fail.mp3" http://c3455205.r5.cf0.rackcdn.com/HN9A24.mp3
wget -O "Ray - Advanced Handcuff Hacking.mp3" http://c3455205.r5.cf0.rackcdn.com/HN9B07.mp3
wget -O "Aditya K. Sood - Advancements in Botnet Attacks and Malware Distribution.mp3" http://c3455205.r5.cf0.rackcdn.com/HN9C14.mp3
wget -O "James Vasile - Anti-Censorship and Anti-Surveillance Tools - Improving the Landscape.mp3" http://c3455205.r5.cf0.rackcdn.com/HN9B31.mp3
wget -O "Jennifer Ortiz - Brain Chemistry: How Psychoactive Chemicals Hack the Central Nervous System.mp3" http://c3455205.r5.cf0.rackcdn.com/HN9B26.mp3
@ali
ali / twitter-selenium.html
Created June 17, 2012 00:12
Test Tweeting with Selenium IDE
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://twitter.com/" />
<title>VerifyTweetWasSent</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
@ali
ali / bcbos7-js.md
Created April 7, 2012 21:21
Links/resources from Barcamp Boston 7 JavaScript roundtable discussion

Javascript stuff

Resources from the JavaScript round table discussion at BarCamp Boston 7.

Beginner Resources

  • [Eloquent Javascript][ejs]
  • [Mozilla Developer Network][mdn]
  • [Codeschool][]
@ali
ali / ntf
Created January 18, 2012 00:33
Growl Notify for Bash: Runs command & shows Growl notification on completion
#!/bin/bash
# ntf
# Runs the command passed as the argument and shows a Growl notification when it's done.
# Usage: ntf <command>
# Example: `ntf echo hi`
# Requires Growl Notify: http://growl.info/extras.php#growlnotify
# Author: Ali Ukani
GROWLNOTIFY=/usr/local/bin/growlnotify # Location of growlnotify