Skip to content

Instantly share code, notes, and snippets.

Shane Cooke githubber

Block or report user

Report or block githubber

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@githubber
githubber / gist:f2e7b569d85e1a2f7ac7
Last active Aug 29, 2015 — forked from Wysie/gist:03934b6a79a715772abd
Upload to Amazon S3 Instead of Server for Sendy Email Image Uploads
View gist:f2e7b569d85e1a2f7ac7
//Using S3.php from https://github.com/tpyo/amazon-s3-php-class. Place it in includes/helpers
//Replaces Sendy's includes/create/upload.php
<?php
include('../functions.php');
include('../login/auth.php');
require_once('../helpers/S3.php');
//Init
$file = $_FILES['file']['tmp_name'];
View nokogiri_libxml_homebrew_lion_installation.sh
FIXME:
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
or
ERROR -: Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0
gem uninstall nokogiri libxml-ruby
brew update
brew uninstall libxml2
View gist:c5259bfecae19df72a2f
#Insall Ajenti
apt-get update
wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
apt-get update
apt-get install ajenti
service ajenti restart
# Uninstall Apache2
sudo apt-get autoremove && sudo apt-get remove apache2*
View install.sh
#!/bin/bash
#------------------------------------------------------------------------------
# SETTINGS
#------------------------------------------------------------------------------
MYSQL_ROOT_PASSWORD=password
MYSQL_GITORIOUS_PASSWORD=password
GITORIOUS_HOST=gitorious
SYSADMIN=sysadmin
View more.md

The script below is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing. You can exclude folders if you want to. You probably want to exclude giant cache folders.

You should have a similar script.

View gist:fecb933bdcd2c4bbeeef286042933367
### Keybase proof
I hereby claim:
* I am githubber on github.
* I am scooke (https://keybase.io/scooke) on keybase.
* I have a public key ASCZyjOHA56RBBwcx87sSCmTBVxcsAc-ZHsT1OEPRKWe0go
To claim this, I am signing this object:
@githubber
githubber / backup.sh
Created Sep 16, 2016 — forked from n2j3/backup.sh
simplified backup script utilising Fabrizi's dropbox uploader. Based on Dave Hope's backup script ( http://davehope.co.uk/Blog/backup-your-linux-vps-to-dropbox/ )
View backup.sh
#!/bin/bash
BACKUP_SRC="/root /etc /home"
BACKUP_DST="/tmp"
MYSQL_SERVER="127.0.0.1"
MYSQL_USER="mysql username"
MYSQL_PASS="mysql password"
#VPS_ID="vpsidentifier"
# Stop editing here.
NOW=$(date +"%Y.%m.%d")
@githubber
githubber / thankyou-eth
Created May 27, 2017
ETHfaucet-rinkeby.io
View thankyou-eth
0x178625f276907019BdAc70078ff79cF49249DdbF
@githubber
githubber / MyEW-ETH
Created May 27, 2017
ETHfaucet-rinkeby.io
View MyEW-ETH
0xF866360C68cf0ad85dCCD0871765a6B87177BB4C
You can’t perform that action at this time.