Skip to content

Instantly share code, notes, and snippets.

View afresh1's full-sized avatar

Andrew Hewus Fresh afresh1

View GitHub Profile
@jnovack
jnovack / pushover.pl
Last active March 28, 2018 19:08
pushover.pl - Sends irssi notifications to Pushover
use strict;
use warnings;
# {{{ DOCUMENTATION
#####
# A lot of code borrowed from the prowlnotify.pl script at
# http://www.denis.lemire.name/2009/07/07/prowl-irssi-hack/
# and pushovernotify.pl (Daniel Johansson <donnex@donnex.net>)
# and http://www.geekfarm.org/wu/muse/scripts/growl-notify.txt
#
@zeloff
zeloff / dzen.rc
Created March 22, 2013 13:44
dzen2 rc
#!/bin/sh
sleep 2
# Get screen width
SCRN_WIDTH=`xrandr --prop | grep "^Screen 0" | cut -d, -f2 | awk '{print $2}'`
#HALF_SCRN=`dc -e "$SCRN_WIDTH 2 / p"`
DZEN_WIDTH=740
# Settings
@persson
persson / tmuxed_pipelines.sh
Created October 4, 2011 04:28
tmux script to create single local tmux session attached to many remote tmux sessions
#!/bin/sh
#Yes, there is no six
hosts=(pipe1 pipe2 pipe3 pipe4 pipe5 pipe7 pipe8 pipe9)
names=(pipe1 pipe2 pipe3 pipe4 pipe5 pipe7 pipe8 pipe9)
sessions=(1 2 3 4 5 7 8 9)
tmux new-session -d -s pipelines
i=0
@yaniv-aknin
yaniv-aknin / muroku.py
Created April 3, 2012 09:50
muroku: small utility to aid syncing staging/testing/live heroku environments
#!/usr/bin/env python
# Written by @aknin
# https://gist.github.com/gists/2290744
# This code has been placed in the public domain, no strings attached either way.
from __future__ import print_function
import platform
import os