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 ruby | |
require 'whois' | |
def load_words | |
three_letter_words = [] | |
File.open('./wordlist', 'r') do |infile| | |
while (line = infile.gets) | |
next if (line == nil or line.chomp.length > 3) | |
three_letter_words.push(line.chomp) | |
end |
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 ruby | |
require 'whois' | |
c = Whois::Client.new | |
('a'..'z').to_a.shuffle!.each do |starter| | |
('a'..'z').to_a.shuffle!.each do |ender| | |
#puts "Trying #{starter}#{ender}.io" | |
if c.query("#{starter}#{ender}.io").available? | |
puts "FOUND AVAILABLE!! AWESOME! : #{starter}#{ender}.io" |
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/local/bin/node | |
(function() { | |
"use strict"; | |
// The purpose of this script is to switch the gnome background every x | |
// minutes. | |
var exec = require('child_process').exec | |
, fs = require('fs') | |
, interval = 0 |
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 ruby | |
## Initialization and parameter checking: | |
def usage | |
puts "Usage: ./coprime.rb integer\n" | |
Process.exit(1) | |
end |
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
call pathogen#infect() | |
syntax on | |
set autoindent | |
set smartindent | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set ruler | |
set hlsearch | |
set incsearch |
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
(function() { | |
"use strict"; | |
var http = require('http') | |
, url = require('url') | |
, cached = {} | |
; | |
function server(req, res) { | |
var now = Date.now() | |
, twitter = url.parse(req.url).pathname.slice(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
echo "Show all filename extensions in Finder" | |
defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
echo "Use current directory as default search scope in Finder" | |
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" | |
echo "Show Path bar in Finder" | |
defaults write com.apple.finder ShowPathbar -bool true | |
echo "Show Status bar in Finder" |
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 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/2266791/hack.sh | sh | |
# |
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
servers = ( | |
{ | |
address = "irc.mikezauner.com"; | |
chatnet = "zl4u"; | |
port = "6697"; | |
autoconnect = "yes"; | |
use_ssl = "yes"; | |
}, | |
{ | |
address = "irc.freenode.net"; |
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
C:\Users\eric\Documents\node_service>.\nssm.exe install thebus "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\eric\Documents\static\server.js" "80" "C:\Users\eric\Documents\public\" | |
Service "thebus" installed successfully! | |
C:\Users\eric\Documents\node_service>net start thebus | |
The thebus service is starting. | |
The thebus service was started successfully. | |
C:\Users\eric\Documents\node_service>curl localhost |