This file contains hidden or 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
puts "niggersaed" |
This file contains hidden or 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
module DSI | |
class Message | |
attr_accessor :body | |
def initialize body, private = false | |
@body = body | |
@private = private | |
end | |
def private? |
This file contains hidden or 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
#include <stdio.h> | |
#include <unistd.h> | |
#include "oculus.hpp" | |
Oculus::Oculus() { | |
if ((disp = XOpenDisplay(":0")) == NULL) | |
printf("Could not connect to X server\n"); | |
Window active = this->getActiveWindow(); | |
printf("%s - %dx%d\n", this->getWindowName(&active), this->getWindowWidth(&active), this->getWindowHeight(&active)); |
This file contains hidden or 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 ruby1.9 | |
# encoding: utf-8 | |
require 'pp' | |
module Boyfriend | |
class Client | |
# http://boyfriend.dk/xml/newsticker.php | |
# http://boyfriend.dk/xml/onlinestatus.php | |
# http://boyfriend.dk/xml/statusbar.php | |
# http://boyfriend.dk/xml/list_additional.php?member=<int> |
This file contains hidden or 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 | |
# encoding: utf-8 | |
begin | |
require 'curb' | |
rescue LoadError | |
puts "This utillity depends on the curb library. (gem install curb)" | |
exit 1 | |
end | |
max = ARGV.map{ |p| File.basename p }.map(&:length).max |
This file contains hidden or 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
#!/bin/bash | |
OSD=true # Notify when the screenshot has been uploaded (requires imagemagick and libnotify) | |
name="`date +%s`.png" # The local file name of the screenshot | |
function save { | |
case "$1" in | |
selection) | |
`scrot -bs /tmp/$name 2> /dev/null` | |
;; |
This file contains hidden or 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
<?php | |
$row = FALSE; | |
// show the first row in the table. | |
print "<tr> | |
<td colspan=\"3\" class=\"sechead\"><span>C</span>ontact <span>I</span>nfo</td> | |
</tr>"; | |
// now foreach the bastards array... | |
foreach($contactArray as $key=>$value) { | |
if ($value == NULL || $key == "user_id" || $key == "pc_id" || trim($value) == "") | |
continue; |
This file contains hidden or 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 | |
# encoding: utf-8 | |
oldrev, newrev, refname = gets.split | |
repository = File.expand_path($0)[/([^\/]*?)\.git/] | |
refs, type, name = refname.split ?/ |
This file contains hidden or 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
# encoding: utf-8 | |
module Grooveshark | |
module Players | |
class MPlayer | |
attr_accessor :stream | |
def initialize stream = nil | |
@stream = stream | |
@streaming = false |
This file contains hidden or 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
set source to POSIX path of "/tmp/it.metabox.png" | |
do shell script "screencapture -i " & source | |
tell application "Finder" | |
if exists source as POSIX file then | |
set response to do shell script "curl -F file=@" & source & " metabox.it" | |
if response starts with "http" then | |
set the clipboard to response & ".png" |