create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
#!/usr/bin/env ruby | |
# Note, this must be run as root, and is super dangerous. | |
# You should not use it. It was written in about 75 minutes total. | |
# Copyright (c) 2012 Tod Beardsley | |
# Licensed under the Ruby license. | |
require 'packetfu' | |
require 'net/dns' |
segmentLengthBound = ... // B, originally set to s.length/2 | |
counter = {} // o | |
bestSavings = 0 // M | |
maxRepetitions = 0 // N | |
bestSegment = 0 // e | |
longestSegmentLength = 0 // Z | |
segmentLength = 0 // t | |
while (segmentLength <= segmentLengthBound) { | |
start = 1; |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
#!/usr/bin/env ruby | |
rss = '.+?Rss:\s+(\d+)' | |
share = '.+?Shared_Clean:\s+(\d+)' | |
share << '.+?Shared_Dirty:\s+(\d+)' | |
priv = '.+?Private_Clean:\s+(\d+)' | |
priv << '.+?Private_Dirty:\s+(\d+)' | |
MEM_REGEXP = /\[heap\]#{rss}#{share}#{priv}/m | |
def mem_usage() |
--colour | |
-I app |
This script installs a patched version of ruby 1.9.3-p125 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.
Huge thanks to funny-falcon for the performance patches.
*.c | |
*.rl |
#!/usr/bin/env ruby | |
=begin | |
The concept here is to print out the current working | |
directory (pwd) following i-nodes only. | |
=end | |
def pwd | |
path = [] | |
loop do |
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string