Skip to content

Instantly share code, notes, and snippets.

View frastel's full-sized avatar

Frank Stelzer frastel

View GitHub Profile
@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active July 14, 2024 19:27
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@dky
dky / gist:4595997
Last active December 11, 2015 11:48
Puppet exec code to edit fstab only if acl support doesn't already exist.
exec { "add_fstab_acl":
command => "/bin/sed -i.backup '/srv/s/defaults/defaults,acl/g' /etc/fstab",
unless => "/bin/grep -E '/srv.*ext4.*defaults,acl' /etc/fstab",
path => "/usr/local/bin/:/bin/",
}
@VMBindraban
VMBindraban / varnish-cheatcheet.md
Last active September 5, 2020 22:49
Varnish 3 cheatsheet

###Some don't work yet.

Get the top request methods

varnishtop -i RxRequest

Top urls that missed the cache.

varnishtop -i TxURL