Skip to content

Instantly share code, notes, and snippets.

View starlocke's full-sized avatar
:shipit:
Guaranteed to work behind the scenes, so you don't have to!

Victor Yap starlocke

:shipit:
Guaranteed to work behind the scenes, so you don't have to!
View GitHub Profile
@samuell
samuell / zoom_xfce4_terminal.sh
Created October 3, 2014 14:51
Place this in your ```~/.bash_aliases``` file.
zi() {
if [[ ! -z $1 ]]; then
steps=$1;
SIZE=`grep 'FontName' ~/.config/Terminal/terminalrc | cut -d' ' -f 2`
NEWSIZE=$((SIZE + steps))
REGEXPR='s/FontName.*/FontName=Monospace '$NEWSIZE'/g'
sed -i "$REGEXPR" ~/.config/Terminal/terminalrc
else
echo "Usage: zi [zoom steps]";
fi;
@matt448
matt448 / slack_nagios.sh
Last active February 13, 2023 15:38
Script to post Nagios notifications into a Slack channel
#!/bin/bash
# This script is used by Nagios to post alerts into a Slack channel
# using the Incoming WebHooks integration. Create the channel, botname
# and integration first and then add this notification script in your
# Nagios configuration.
#
# All variables that start with NAGIOS_ are provided by Nagios as
# environment variables when an notification is generated.
# A list of the env variables is available here:
@scarolan
scarolan / movein.sh
Created June 12, 2013 14:25
movein.sh - Nice little "move in" script from O'Reilly's excellent Linux Server Hacks book.
#!/bin/sh
# movein.sh - shamelessly stolen from O'Reilly's excellend "Linux Server Hacks"
# http://oreilly.com/pub/h/72
# Version 0.2 - Added some comments and error checking
if [ -z "$1" ]; then
echo "Usage: `basename $0` hostname"
exit
fi
@mklooss
mklooss / 99-sites-enabled.conf
Created November 28, 2012 09:29
lighttpd sites enabled
# File in: /etc/lighttpd/conf-available/99-sites-enabled.conf
include_shell "/usr/local/share/lighttpd/include-sites-enabled.pl"
@x-Code-x
x-Code-x / readme_install_node
Created April 30, 2012 20:52
Install npm node.js on Debian Squeeze / Wheezy / Linux Mint Debian Edition
#Quick cp from http://sekati.com/etc/install-nodejs-on-debian-squeeze
#
#Needed to install TileMill from MapBox
#
#Installs node.js which has npm bundled
#
#Build Dependencies
sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev