Skip to content

Instantly share code, notes, and snippets.

View tylerhall's full-sized avatar

Tyler Hall tylerhall

View GitHub Profile
LoadModule php5_module libexec/apache2/libphp5.so
curl http://pear.php.net/go-pear > go-pear.php
sudo php -q go-pear.php
<?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)))
{
<?PHP
$gc = new GrandCentral('gc_username', 'gc_password');
$gc->call($your_number, $their_number);
ssh your_username@your-home-ip-address -N -f -L 3689:your-home-ip-address:3689
cmd -a -b -c // Single letter flags
cmd -abc // Same as above
cd ~/Dropbox
s3up myS3bucket js/somefile.js somefile.js
<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">
<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">