debian

Updating Packages Using Apt On Old Debian Installs

When attempting to install a new package or update an existing package if you are presented with the error 1E: Release file expired, ignoring http://archive.debian.org/debian-archive/debian/dists/squeeze-lts/Release (invalid since 189d 0h 42min 32s) You will need to execute the following command as root: 1$ echo ‘Acquire::Check-Valid-Until "false";’ > /etc/apt/apt.conf.d/90ignore-release-date And then perform… Read more…

Development Tools

Profiling PHP with XHProf & XHGui

For a well described tutorial on basic PHP profiling and optimization I would recommend the 3 part article written by Davey Shafik: Profiling PHP Part 1: Intro to Xhprof & Xhgui Profiling PHP Part 2: Xhgui In-Depth Profiling PHP Part 3: Practical Performance Tuning

Mac OS X

OpenSSH Public Key Authentication

Key Generation ssh-keygen -q -f ~/.ssh/id_rsa -t rsa Enter passphrase (empty for no passphrase): … Enter same passphrase again: … Key Distribution # first, upload public key from client to server scp ~/.ssh/id_rsa.pub user@server.example.org: # next, setup the public key on server cat ~/id_rsa.pub >> ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys rm Read more…