Skip to content

Instantly share code, notes, and snippets.

View bendangelo's full-sized avatar

Bendangelo bendangelo

View GitHub Profile
@bendangelo
bendangelo / Ubuntu Everpad
Created September 17, 2012 16:52
Install Everpad on Ubuntu
# curl -L gist.github.com/raw/3738442 | bash
sudo add-apt-repository ppa:nvbn-rm/ppa
sudo apt-get update && sudo apt-get install everpad -y
@bendangelo
bendangelo / ZRam
Created September 10, 2012 03:02
ZRam
# curl -L gist.github.com/raw/3688593 | bash
sudo add-apt-repository ppa:shnatsel/zram
sudo apt-get update
sudo apt-get install zramswap-enabler
@bendangelo
bendangelo / Ubuntu Cities
Created September 6, 2012 17:06
Ubuntu Cities Lense
# curl -L gist.github.com/raw/3658597 | bash
sudo add-apt-repository ppa:scopes-packagers/ppa
sudo apt-get update && sudo apt-get install unity-lens-utilities unity-scope-cities -y
@bendangelo
bendangelo / Ubuntu Calculator
Created September 6, 2012 17:01
Ubuntu Calculator Lense
# curl -L gist.github.com/raw/3658554 | bash
sudo add-apt-repository ppa:scopes-packagers/ppa
sudo apt-get update
sudo apt-get install unity-lens-utilities unity-scope-calculator -y
@bendangelo
bendangelo / Install Postgres 9.1
Created July 2, 2012 15:39
Install Postgres 9.1
# curl -L gist.github.com/raw/3033843 | bash
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:pitti/postgresql
sudo apt-get update
sudo apt-get install postgresql-9.1 libpq-dev -y
#su postgres
#psql -d postgres -U postgres
#alter user postgres with password 'a';
#\q
@bendangelo
bendangelo / Install Sublime Text
Created July 2, 2012 02:34
Install Sublime Text 2
# curl -L gist.github.com/raw/3030596 | bash
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text -y
@bendangelo
bendangelo / Install MongoDB
Created July 1, 2012 23:25
Install MongoDB
# curl -L gist.github.com/raw/3030000 | sudo bash
sudo -s
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" > /etc/apt/sources.list.d/10gen.list
apt-get update
apt-get install mongodb-10gen -y
@bendangelo
bendangelo / Ubuntu Packages
Created July 1, 2012 22:59
Copy Ubuntu Packages
sudo dpkg --get-selections | grep '[[:space:]]install$='| awk '{print $1}' > installedpackages
sudo aptitude update
cat installedpackages | xargs sudo aptitude install
@bendangelo
bendangelo / Redis Conf
Created June 23, 2012 16:31
Redis Conf
# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specifiy
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
@bendangelo
bendangelo / MongoDB Init
Created June 23, 2012 16:27
MongoDB Init.d
#!/bin/sh
#
# init.d script with LSB support.
#
# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
#
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.