Skip to content

Instantly share code, notes, and snippets.

View alfredocambera's full-sized avatar

Alfredo Cambera alfredocambera

View GitHub Profile
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@glarizza
glarizza / gist:1841903
Created February 16, 2012 04:11
FPM and RPMS
RPM and FPM
Install rpm-build via yum (from CentOS Updates and Base)
Install fpm via rubygems (requires json gem)
Creating an RPM from the apache-tomcat-7.0.25 directory and installing to /opt/tomcat/${Packagestuff}
fpm -s dir -t rpm -n tomcat -v 7.0.25 --prefix /opt/tomcat -C apache-tomcat-7.0.25
Creating a Puppet Module
fpm -s dir -t puppet -n tomcat -v 7.0.25 -C apache-tomcat-7.0.25
@rowan-m
rowan-m / gist:1026918
Created June 15, 2011 11:34 — forked from jedi4ever/gist:898114
update jenkins Updatecenter from CLI
$ java -jar jenkins-cli.jar -s http://localhost:9000 install-plugin findbugs
findbugs is neither a valid file, URL, nor a plugin artifact name in the update center
No update center data is retrieved yet from: http://updates.jenkins-ci.org/update-center.json
findbugs looks like a short plugin name. Did you mean 'null'?
# Specifying a full URL works!
$ java -jar jenkins-cli.jar -s http://localhost:9020 install-plugin http://updates.jenkins-ci.org/download/plugins/AdaptivePlugin/0.1/AdaptivePlugin.hpi
# Get the update center ourself
@jedi4ever
jedi4ever / building nodejs with fpm
Created April 14, 2011 14:43
build .deb for nodejs with fpm
rm node-v0.4.5.tar.gz
rm -rf node-v0.4.5
apt-get -y install wget
wget http://nodejs.org/dist/node-v0.4.5.tar.gz
tar -xzvf node-v0.4.5.tar.gz
cd node-v0.4.5
./configure --prefix=/usr
rm -rf /tmp/node-v0.4.5.$$
mkdir /tmp/node-v0.4.5.$$
make install DESTDIR=/tmp/node-v0.4.5.$$