Skip to content

Instantly share code, notes, and snippets.

View polds's full-sized avatar

Peter Olds polds

View GitHub Profile
@polds
polds / test.go
Last active August 29, 2015 14:14 — forked from ernesto-jimenez/test.go
package main
import (
"fmt"
"net/http"
"sync"
)
type LimitedRoundTripper struct {
inflight chan interface{}
@polds
polds / moshalias.pl
Last active August 29, 2015 14:04 — forked from lexande/moshalias.pl
#!/usr/bin/perl
my $ssh="/usr/bin/ssh";
my $mosh="/usr/bin/mosh";
my $host;
my $unsupported=0;
for (my $i=0; $i <= $#ARGV; $i++) {
if ($ARGV[$i] =~ /^-/) {
$ssh .= " \"$ARGV[$i]\"";
@polds
polds / notify.sh
Last active August 29, 2015 13:55 — forked from jehiah/notify.sh
#!/bin/bash
#
# *************************************************
# chkconfig: 2345 99 99
# description: send pushover notification on system boot.
# *************************************************
# Installing:
# 1) save as /etc/rc.d/init.d/notify
# 2) set the token and user in TOKEN and USER
# 3) chmod a+w /etc/rc.d/init.d/notify