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
#!/bin/bash | |
INRES="1920x1200" # input resolution | |
OUTRES="640x480" | |
OFFSET="0,0" | |
FPS="15" # target FPS | |
QUAL="fast" # one of the many FFMPEG preset | |
STREAM_KEY="your_key_here_sexy" | |
URL="rtmp://live.justin.tv/app/$STREAM_KEY" | |
ffmpeg -f x11grab \ |
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
local foo = {} | |
foo.color = "blue" | |
function foo.tell() | |
print(foo.color.." is my favorite color.") | |
end | |
return foo |
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
local fooclass = {} | |
function fooclass:setColor(color) | |
self.color = color | |
end | |
function fooclass:getColor() | |
return self.color | |
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/php | |
<?php | |
$file = $argv[1]; | |
if(is_file($file)){ | |
$raw=php_strip_whitespace($file); | |
$pattern = array(); | |
$replacement = array(); | |
$chars = array(";","}","{","=",",","=>","<",">","<=",">=",".="); | |
foreach($chars as $char){ | |
$pattern[] = "@\s$char@"; |
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/php | |
<?php | |
$urls = array( | |
"http://bijo-linux.com/wp-content/uploads/2012/02/batch.jpg", | |
"http://bijo-linux.com/wp-content/uploads/2012/02/change.jpg", | |
"http://bijo-linux.com/wp-content/uploads/2012/02/chatter.jpg", | |
"http://bijo-linux.com/wp-content/uploads/2012/02/dpkg.jpg", | |
"http://bijo-linux.com/wp-content/uploads/2012/02/netconfig.jpg", | |
"http://bijo-linux.com/wp-content/uploads/2012/02/zipgrep.jpg", |
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/php | |
<?php | |
$log = "../server.log"; | |
$watch = array(); | |
$watch[] = array('regex'=>"@\\[INFO\\] Starting minecraft server version@",'icon'=>'./Grass.png'); | |
$watch[] = array('regex'=>"@\\[INFO\\] Done \\((.){1,8}s\\)! For help, type \"help\" or \"\\?\"@",'icon'=>'./Grass.png'); | |
$watch[] = array('regex'=>"@\\[INFO\\] (.){1,}\\[/(.){1,}\] logged in with entity id@",'icon'=>'./Head.png'); |
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/php | |
<?php | |
$xml = simplexml_load_file('http://musicforprogramming.net/rss.php'); | |
$songs = array(); | |
foreach($xml->channel->item as $item){ | |
$songs[] = (string)$item->comments; | |
} |
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
love=$(/usr/bin/env love) | |
zip=$(/usr/bin/env zip) | |
luac=$(/usr/bin/env luac) | |
# path to win and osx distributions | |
windir=~/Stuff/love-win-x86 | |
osxapp=~/Stuff/love.0.8.app | |
game=TITLE-OF-THE-GAME.love |
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
Index: interface.c | |
=================================================================== | |
--- interface.c (revision 2526) | |
+++ interface.c (working copy) | |
@@ -2593,7 +2593,12 @@ | |
} | |
} | |
-/* Move the current playlist item (direction: 1 - up, -1 - down). */ | |
+/* Move the current playlist item directions: |
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/php | |
<?php | |
/* Transmission to Deluge export script | |
* | |
* Transmission - transmission-gtk 2.77 (14031) | |
* Deluge - deluge: 1.3.6 | |
* Script - PHP 5.4.14 (cli) | |
* | |
* How to use this script; | |
* 1) Run `php trans_to_deluge.php` and make sure there aren't any errors. |