Skip to content

Instantly share code, notes, and snippets.

@mathewpeterson
mathewpeterson / remove-old-kernels.sh
Created August 5, 2013 15:26
This snippet will remove old kernel in ubuntu/debian
#!/bin/bash
# http://www.unixmen.com/remove-all-unused-kernels-with-1-command-in-debian-based-systems/
sudo apt-get remove $(dpkg -l|egrep '^ii linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`)
<?php
use \Imagine;
use Avalanche\Bundle\ImagineBundle\Imagine\Filter\Loader\LoaderInterface;
class ThumbnailFilterService implements LoaderInterface, Imagine\Filter\FilterInterface
{
const DEFAULT_WIDTH = 120;
const DEFAULT_HEIGHT = 120;

Keybase proof

I hereby claim:

  • I am mathewpeterson on github.
  • I am mathewpeterson (https://keybase.io/mathewpeterson) on keybase.
  • I have a public key whose fingerprint is DB70 A3E3 E399 1194 048B A2C2 EB4C AC07 EA86 56A9

To claim this, I am signing this object:

sudo apt-get install libfakekey-dev libpng-dev libxft-dev autoconf libtool -y
sudo mkdir -p /usr/local/src/matchbox-keyboard
git clone https://github.com/xlab/matchbox-keyboard.git /usr/local/src/matchbox-keyboard
cd /usr/local/src/matchbox-keyboard && ./autogen.sh && make && sudo make install
sudo apt-get install libmatchbox1 -y
cat << EOF | sudo tee /usr/bin/toggle-matchbox-keyboard.sh
#!/bin/bash
#This script toggle the virtual keyboard