Skip to content

Instantly share code, notes, and snippets.

diff --git a/lib/universal_ruby_whois/server_list.rb b/lib/universal_ruby_whois/server_list.rb
index 65c2a18..15a94d9 100644
--- a/lib/universal_ruby_whois/server_list.rb
+++ b/lib/universal_ruby_whois/server_list.rb
@@ -80,7 +80,6 @@ Whois::Server.define('nu', 'whois.nic.nu')
Whois::Server.define('pl', 'whois.dns.pl')
Whois::Server.define('ro', 'whois.rotld.ro')
Whois::Server.define('ru', 'whois.ripn.net')
-Whois::Server.define('se', 'whois.iis.se')
Whois::Server.define('sk', 'whois.ripe.net')
@smgt
smgt / hitta.js
Created May 18, 2009 20:53
Hitta.se ubiquity command
CmdUtils.CreateCommand({
name: "hitta",
icon: "http://www.hitta.se/favicon.ico",
homepage: "http://hitta.se/",
author: {name: "Simon Gate", email: "simon@noona.se"},
license: "GPL",
description: "Sök på hitta.se",
takes: {"input": /.*/},
preview: function(pblock, input) {
var split = input.text.match(/^(.+)(?:\si\s|,|\såp\s)(.+)/i);
@smgt
smgt / bash_profile.sh
Created April 5, 2011 12:46
Git branch and coloring in command prompt.
source /usr/local/git/contrib/completion/git-completion.bash
# Reset
Color_Off='\033[0m' # Text Reset
# Regular Colors
Black='\033[0;30m' # Black
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
<html>
<head></head>
<body>
<div id="message">
</div>
<input type="text" id="text-input">
<input type="submit" id="send-button">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script src="http://localhost:8888/nowjs/now.js"></script>
<script>
@smgt
smgt / now.html
Created April 19, 2011 18:52
NowJS HTML
<html>
<head></head>
<body>
<div id="message">
</div>
<input type="text" id="text-input">
<input type="submit" id="send-button">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script src="http://localhost:8888/nowjs/now.js"></script>
<script>
@smgt
smgt / git-sparkmonth
Created November 24, 2011 10:35
Visualize your commits the last 30 days
#!/bin/sh
for day in $(seq 30 -1 0); do
git log --author="John Doe" --before="${day} days" --after="$[${day}+1] days" --format=oneline |
wc -l
done | spark | lolcat -a
// Create a new object
ajax = new XMLHttpRequest();
// Try to open a API resource that won't return a 200 or 201
ajax.open("GET", "https://api.flattr.com/rest/v2/user", false);
ajax.send();
// The response
ajax.responseText;
// "{"error":"unauthorized","error_description":"You are unauthorized to access the resource","error_uri":"http:\/\/developers.flattr.net\/api\/"}"
@smgt
smgt / test_web.rb
Created May 12, 2012 08:04
Glorify test
$: << File.expand_path(".") + '/lib'
require 'sinatra'
require 'glorify'
get "/" do
@example = File.open("README.md", "rb").read
erb :index
end
@smgt
smgt / AddThis.html
Created July 16, 2012 06:31
Add flattr to AddThis
<html>
<head>
<title>AddThis Flattr Test Page</title>
</head>
<body>
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
@smgt
smgt / osx.txt
Created August 1, 2012 15:10
List of OSX settings
###############################################################################
# General UI/UX #
###############################################################################
# Set computer name (as done via System Preferences → Sharing)
scutil --set ComputerName "MacBook Pro"
scutil --set HostName "MacBook Pro"
scutil --set LocalHostName "MacBook-Pro"
# Menu bar: disable transparency