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 php -q | |
<?php | |
/** | |
* Photo Booth Plist Rebuilder / Repair | |
* @author Jesse G. Donat <donatj@gmail.com> http://donatstudios.com | |
* @license http://opensource.org/licenses/mit-license.php | |
*/ | |
# Update this path with your username | |
$libraryPath = getenv('HOME') . '/Pictures/Photo Booth Library/'; |
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
<?php | |
class ColorCLI { | |
static $foreground_colors = array( | |
'bold' => '1', 'dim' => '2', | |
'black' => '0;30', 'dark_gray' => '1;30', | |
'blue' => '0;34', 'light_blue' => '1;34', | |
'green' => '0;32', 'light_green' => '1;32', | |
'cyan' => '0;36', 'light_cyan' => '1;36', |
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 -q | |
<?php | |
if(isset($argv[1]) && strlen($argv[1])) { | |
$file = $argv[1]; | |
}else{ | |
echo 'Please Specify a File'; | |
exit(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
#!/usr/bin/php | |
<?php | |
$file = false; | |
$defaults = array( | |
'maxQueryTime' => pow(2,32), | |
'minQueryTime' => 0, | |
'maxLockTime' => pow(2,32), | |
'minLockTime' => 0, | |
'maxRowsSent' => pow(2,32), | |
'minRowsSent' => 0, |
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 'cinch' | |
bot = Cinch::Bot.new do | |
configure do |c| | |
c.server = "" | |
c.channels = ["#"] | |
c.password = "" | |
c.nick = "" | |
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 -q | |
<?php | |
include('pinch.php'); | |
$pinch = new Pinch('irc.----.com', 'Manbot', '#channel', 'password'); | |
$pinch->on('/:test ([a-z0-9 ]+)/i', function($msg, $obj){ | |
$obj->msg( $msg[1], '#capdig' ); | |
}); |
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
DECLARE SUB where (d#, pants#) | |
DECLARE SUB look (d#) | |
DECLARE SUB lookat (d#) | |
DIM level#(4, 4) | |
CLS | |
FOR c# = 1 TO 4 | |
FOR b# = 1 TO 4 | |
level#(b#, c#) = a# | |
a# = a# + 1 | |
NEXT |
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
*[class]:before { | |
position: absolute; | |
background: rgba(10,10,10,.6); | |
padding: 10px; | |
border-radius: 4px; | |
color: white; | |
font-size: 10px; | |
display: block; | |
content: "[" attr(class) "] " ; | |
} |
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
javascript:location.href='googlechrome://'+location.host+location.pathname; |
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
class Dir | |
class << self | |
def exists? (path) | |
File.directory?(path) | |
end | |
alias_method :exist?, :exists? | |
end | |
end |