Skip to content

Instantly share code, notes, and snippets.

View scmorrison's full-sized avatar

Sam Morrison scmorrison

View GitHub Profile
#!/usr/bin/env perl6
use v6;
use HTTP::UserAgent;
my $ua = HTTP::UserAgent.new;
@scmorrison
scmorrison / WordPress NexGenGallery add images to search
Created April 3, 2015 00:54
wp-content/themes/THEME/functions.php
@scmorrison
scmorrison / updateff.sh
Created December 15, 2014 04:58
Install / update stock Firefox on debian
#!/bin/bash
cd /tmp/
wget ftp://ftp.mozilla.org/pub/firefox/releases/latest/linux-x86_64/en-US/firefox-*tar.bz2 -O firefox-latest.tar.bz2
tar xjf firefox-latest.tar.bz2
[ -d /opt/firefox ] && sudo rm -rf /opt/firefox
sudo mv firefox /opt/firefox
rm firefox-latest.tar.bz2
rm ~/bin/firefox
ln -s /opt/firefox/firefox ~/bin/firefox