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
LoadModule php5_module libexec/apache2/libphp5.so |
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
curl http://pear.php.net/go-pear > go-pear.php | |
sudo php -q go-pear.php |
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 | |
$files = scandir(DOC_ROOT . IMG_PATH); | |
foreach($files as $fn) | |
{ | |
if(!in_array(substr($fn, -3), array('jpg', 'png', 'gif'))) continue; | |
$object = IMG_PATH . $fn; | |
$the_file = DOC_ROOT . IMG_PATH . $fn; | |
// Only upload if the file is different | |
if(!$s3->objectIsSame($bucket, $object, md5_file($the_file))) | |
{ |
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 | |
$gc = new GrandCentral('gc_username', 'gc_password'); | |
$gc->call($your_number, $their_number); |
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
ssh your_username@your-home-ip-address -N -f -L 3689:your-home-ip-address:3689 |
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
cmd -a -b -c // Single letter flags | |
cmd -abc // Same as above |
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
cd ~/Dropbox |
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
s3up myS3bucket js/somefile.js somefile.js |
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
<div class="block tabs spaces"> | |
<div class="hd"> | |
<ul> | |
<li class="active"><a href="#">Tab 1</a></li> | |
<li><a href="#">Tab 2</a></li> | |
<li><a href="#">Tab 3</a></li> | |
</ul> | |
<div class="clear"></div> | |
</div> | |
<div class="bd"> |
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
<div class="block tabs"> | |
<div class="hd"> | |
<ul> | |
<li class="active"><a href="#">Tab 1</a></li> | |
<li><a href="#">Tab 2</a></li> | |
<li><a href="#">Tab 3</a></li> | |
</ul> | |
<div class="clear"></div> | |
</div> | |
<div class="bd"> |