Skip to content

Instantly share code, notes, and snippets.

View tsalzer's full-sized avatar

Till Salzer tsalzer

  • Dresden, Germany
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tsalzer on github.
  • I am ketchup (https://keybase.io/ketchup) on keybase.
  • I have a public key whose fingerprint is E43E 705E A732 47E4 548C 0161 1BCD 79F6 7CE0 393E

To claim this, I am signing this object:

@tsalzer
tsalzer / provoke_scp_error.rb
Created April 16, 2010 11:32
Provoke an SCP error in Net::SSH 2.0.21
#!/usr/bin/env ruby
#
# Provoke the SCP error on large files.
# You must provide the remote resource location to download as SCP would accept it:
#
# provoke_scp_error user@host:/path/to/large/file
#
require 'rubygems'
gem 'net-ssh', '2.0.21'
gem 'net-scp', '1.0.2'
@tsalzer
tsalzer / lsof-solaris.sh
Created November 6, 2009 11:06
Solaris: Poor man's lsof
#!/bin/sh
# Something like lsof.
#
# Original code found at:
# http://blog.pebcak.de/archives/913-Solaris-Poor-mans-lsof-unter-Solaris.html
if [ -n "$1" ] ; then
for pid in $(ls /proc) ; do
pfiles $pid | grep AF_INET | grep $1 >/dev/null && \
echo "PID $pid is listening on port $1";
@tsalzer
tsalzer / install_git_on_centos.sh
Created July 13, 2009 15:50
Install git on CentOS 5.x
#!/bin/bash
#
# install git on CentOS 5.x
# see https://gist.github.com/gists/146206
#
# originally found at
# http://www.how-to-linux.com/2009/01/install-git-161-on-centos-52/
#
# You need to run this as root (at least the yum and make install bits).
#