Skip to content

Instantly share code, notes, and snippets.

View ali's full-sized avatar

Ali Ukani ali

View GitHub Profile
@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
@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 / 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 / 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 / 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'
]
{"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 / cake.rb
Last active December 14, 2015 20:19
Yay!
CAKE = <<-OMGCAKE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HAPPY BIRTHDAY, NATE!
OMGCAKE
@ali
ali / hterm-colors.js
Created December 27, 2013 03:09
My Chrome Secure Shell (hterm) colors. Hex values stolen from @w0ng's vim-hybrid .Xresources
term_.prefs_.set('background-color', '#1D1F21');
term_.prefs_.set('foreground-color', '#C5C8C6');
term_.prefs_.set('color-palette-overrides', [
'#282A2E', '#A54242', '#8C9440', '#DE935F',
'#5F819D', '#85678F', '#5E8D87', '#707880',
'#373B41', '#CC6666', '#B5BD68', '#F0C674',
'#81A2BE', '#B294BB', '#8ABEB7', '#C5C8C6'
]);
@ali
ali / gist:a0879c67f13403be08f9
Created November 14, 2014 07:29
base16-ocean.dark.256.itermcolors.js
term_.prefs_.set('background-color', '#2b303b');
term_.prefs_.set('foreground-color', '#c0c5ce');
term_.prefs_.set('cursor-color', '#c0c5ce')
term_.prefs_.set('color-palette-overrides', ["#2b303b","#bf616a","#a3be8c","#ebcb8b","#8fa1b3","#b48ead","#96b5b4","#c0c5ce","#65737e","#bf616a","#a3be8c","#ebcb8b","#8fa1b3","#b48ead","#96b5b4","#eff1f5"]);
@ali
ali / gist:aeee4516907327e3f96c
Created April 18, 2015 01:45
ssh-copy-id fails if the remote user's default shell is fish
~ $ ssh-copy-id -i ~/.ssh/id_rsa -o PubkeyAuthentication=no ali:@orchid.local
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
Password:
fish: Expected a command name, got token of type 'Run job in background'. Did you mean 'COMMAND; and COMMAND'? See the help section for the 'and' builtin command by typing 'help and'.
Standard input: mkdir -p .ssh && cat >> .ssh/authorized_keys || exit 1 ;