This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo hostname [hostname] | |
Edit entry in /etc/hosts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mo: (cb) -> | |
@getNewMOs((err, mos) => | |
results = [] | |
if mos.length > 0 | |
mos.forEach (item) => | |
@fwdToKannel(item, (err, result) -> | |
if err | |
logger.error "Error forwarding to kannel" | |
results.push result | |
if results.length == mos.length |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The number of addresses of a subnet defined by the mask or prefix can be calculated as 2address size - prefix size, in which the address size for IPv6 is 128 and 32 for IPv4. For example, in IPv4, a prefix size of /29 gives: 232-29 = 23 = 8 addresses. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nstead, you need to open up this file /etc/postgresql/9.1/main/pg_hba.conf in a text editor (with root privileges, of course) and change this line: | |
local all all peer | |
to this: | |
local all all md5 | |
Now, restart the postgres server: | |
sudo service postgresql restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git aliases | |
alias gst='git status' | |
alias gl='git pull' | |
alias gp='git push' | |
alias gd='git diff | mate' | |
alias gc='git commit -v' | |
alias gca='git commit -v -a' | |
alias gb='git branch' | |
alias gba='git branch -a' | |
alias gad='git add .' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://thepiratebay.se/torrent/7678431/Deadmau5_-_Album_Title_Goes_Here_(2012)_DutchReleaseTeam |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget [monit src] | |
tar xvf [monit archive] | |
cd monit_dir | |
sudo apt-get install libpam0g-dev | |
./configure --without-ssl | |
make && sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VMUUID=$(xe vm-install new-name-label="Ubuntu 12.04" template=de27dfda-c356-9641-0a28-5f2d7552f7af) | |
NETUUID=$(xe network-list bridge=xenbr0 --minimal) | |
xe vif-create vm-uuid=$VMUUID network-uuid=$NETUUID mac=random device=0 | |
xe vm-param-set uuid=$VMUUID other-config:install-repository=http://us.archive.ubuntu.com/ubuntu | |
xe vm-param-set uuid=$VMUUID PV-args="ks=http://s3.amazonaws.com/excitedmedia/kickstart-minimal-precise-x86_64.cfg ksdevice=eth0" | |
xe vm-param-set uuid=${VMUUID} other-config:disable_pv_vnc=1 | |
xe vm-memory-limits-set uuid="${VMUUID}" static-min="805306368" dynamic-min="805306368" dynamic-max="805306368" static-max="805306368" | |
xe vm-start uuid=$VMUUID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When starting a project that includes refinerycms-blog: | |
$ rake refinery:override view=refinery/pages/* | |
$ rake refinery:override view=layouts/* | |
$ rake refinery:override view=refinery/blog/shared/* | |
$ rake refinery:override view=refinery/blog/posts/* | |
$ rake refinery:override view=refinery/* | |
$ rake refinery:override controller=refinery/blog/* | |
$ rake refinery:override controller=refinery/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oct 17 17:29:30 syslogd started: BusyBox v1.18.5 | |
Oct 17 17:29:30 kernel: klogd started: BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) | |
Oct 17 17:29:30 kernel: [ 0.000000] Initializing cgroup subsys cpuset | |
Oct 17 17:29:30 kernel: [ 0.000000] Initializing cgroup subsys cpu | |
Oct 17 17:29:30 kernel: [ 0.000000] Linux version 3.2.0-23-generic (buildd@crested) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu4) ) #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 (Ubuntu 3.2.0-23.36-generic 3.2.14) | |
Oct 17 17:29:30 kernel: [ 0.000000] Command line: ks=http://s3.amazonaws.com/excitedmedia/kickstart-minimal-precise-x86_64.cfg ksdevice=eth0 | |
Oct 17 17:29:30 kernel: [ 0.000000] KERNEL supported cpus: | |
Oct 17 17:29:30 kernel: [ 0.000000] Intel GenuineIntel | |
Oct 17 17:29:30 kernel: [ 0.000000] AMD AuthenticAMD | |
Oct 17 17:29:30 kernel: [ 0.000000] Centaur CentaurHauls |