Skip to content

Instantly share code, notes, and snippets.

# User specific aliases and functions
# Coloured prompt so you can find it in the wall of output
PS1='${debian_chroot:+($debian_chroot)}\[\033[02;33m\]\u@\h\[\033[01;31m\]
\w \$\[\033[00m\] '
# guess
alias ll='ls -alh'
@lukearmstrong
lukearmstrong / pear.txt
Created July 3, 2012 11:26
This is why I fucking hate PEAR
$> sudo pear install --alldeps pear.netpirates.net/phpDox
Failed to download theseer/phpDox within preferred state "stable", latest release is version 0.4.0, stability "alpha", use "channel://pear.netpirates.net/phpDox-0.4.0" to install
install failed
$> sudo pear install --alldeps pear.netpirates.net/phpDox-0.4.0
Failed to download theseer/DirectoryScanner, latest release is version 1.1.0, but it requires PHP version "5.3.0RC1", use "channel://pear.netpirates.net/DirectoryScanner-1.1.0" to install
Failed to download theseer/fDOMDocument, latest release is version 1.2.3, but it requires PHP version "5.3.3", use "channel://pear.netpirates.net/fDOMDocument-1.2.3" to install
Failed to download theseer/fXSL, latest release is version 1.0.4, but it requires PHP version "5.3.0", use "channel://pear.netpirates.net/fXSL-1.0.4" to install
@lukearmstrong
lukearmstrong / sad-panda.txt
Created July 3, 2012 13:54
Multiple versions of PHP make me a sad panda
~ $ php.54 installer.php dev
phpDocumentor installer for manual installations
> Downloading development application from Github
> Extracting application
> Preparing dependencies
Composer (http://www.getcomposer.org) is not installed, downloading temporary version for installation
> Downloading Composer installer to /tmp
> Installing composer to /tmp
@lukearmstrong
lukearmstrong / composer.txt
Created July 4, 2012 09:36
PHP Documentor Composer
~/code/phpDocumentor2 $ php /tmp/composer.phar install
Initializing PEAR repository http://pear.symfony-project.com
Installing dependencies from lock file
Your lock file is out of sync with your composer.json, run "composer.phar update" to update dependencies
- Installing symfony/finder (dev-master)
Cloning 4d6a965beae234bd0fa7f61681bd8a54df60f042
- Installing symfony/process (dev-master)
Cloning v2.1.0-BETA1
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if lte IE 8]>
<html class="no-js lt-ie9" lang="en">
<style type="text/css">
.rightside .sideTitle{
margin:4% 0 0% 7% !important;
@lukearmstrong
lukearmstrong / gist:3130159
Created July 17, 2012 15:38
ruby and rails on ubuntu
lukea@prop115:~$ sudo apt-get install ruby1.9.3
[sudo] password for lukea:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libruby1.9.1 libruby1.9.1-dbg libtcltk-ruby1.9.1 libyaml-0-2 ri1.9.1 ruby1.9.1 ruby1.9.1-dev ruby1.9.1-examples ruby1.9.1-full tk8.5
Suggested packages:
graphviz
The following NEW packages will be installed
ol {
list-style-type: none;
counter-reset: item;
}
ol li {
display: block;
}
ol li:before {
content: counters(item, ".") " ";
counter-increment: item;
@lukearmstrong
lukearmstrong / mysql-export-import.sh
Created September 27, 2012 11:57
Copy MySQL DB (with Status Indicator)
mysqldump db_name --single-transaction | pv | mysql new_db_name
@lukearmstrong
lukearmstrong / symfony.conf
Created October 8, 2012 22:10
Nginx Configuration: Symfony 2.1.2 (Development Mode)
server {
listen 80;
server_name .symfony.dev;
access_log /var/log/nginx/symfony.dev-access.log;
error_log /var/log/nginx/symfony.dev-error.log error;
root /var/www/symfony.dev/web;
# index app.php;
index app_dev.php;
@lukearmstrong
lukearmstrong / pdf.sh
Created October 10, 2012 13:13
Merge several PDFs together
sudo apt-get install pdftk;
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=all-the-things.pdf -dBATCH 001.pdf 002.pdf 003.pdf 004.pdf 005.pdf 006.pdf 007.pdf 008.pdf 009.pdf 010.pdf 011.pdf 012.pdf 013.pdf 014.pdf 015.pdf 016.pdf 017.pdf 018.pdf 019.pdf 020.pdf 021.pdf 022.pdf 023.pdf 024.pdf