Skip to content

Instantly share code, notes, and snippets.

View fm's full-sized avatar

Faisal Misle fm

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>TAP URL Decoder</title>
</head>
<style type="text/css">
pre {
display: block;
padding: 9.5px;
## Adapted from the Grav Troubleshooting Documentation
#!/bin/sh
chown faisal:apache .
chown -R faisal:apache *
find . -type f | xargs chmod 664
find ./bin -type f | xargs chmod 775
find . -type d | xargs chmod 775
find . -type d | xargs chmod +s
umask 0002

Keybase proof

I hereby claim:

  • I am fm on github.
  • I am fm (https://keybase.io/fm) on keybase.
  • I have a public key whose fingerprint is 73A2 217A F254 0349 7FF4 ED52 33AE BE16 2F9A DB79

To claim this, I am signing this object:

@fm
fm / tweetbot_upload_rax.php
Created July 31, 2014 14:16
Script to upload tweetbot images to Rackspace's Cloud Files CDN and then tweet the URL. Special thanks to Scott Smith, Jesse Noller and Mikey Salazar.
<?php
require 'vendor/autoload.php'; //requires composer, for more information visit developer.rackspace.com
use OpenCloud\Rackspace;
// Instantiate a Rackspace client.
$client = new Rackspace(Rackspace::US_IDENTITY_ENDPOINT, array(
'username' => 'XXX',
'apiKey' => 'XXX'
));