Skip to content

Instantly share code, notes, and snippets.

View nfarrar's full-sized avatar

Nathan Farrar nfarrar

View GitHub Profile
@brendano
brendano / autolog.py
Created October 10, 2008 23:00
python decorators to log all method calls, show call graphs in realtime too
# Written by Brendan O'Connor, brenocon@gmail.com, www.anyall.org
# * Originally written Aug. 2005
# * Posted to gist.github.com/16173 on Oct. 2008
# Copyright (c) 2003-2006 Open Source Applications Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@grugq
grugq / sshclient.py
Created December 6, 2011 02:58
twisted ssh client (based on conch.py) with an embedded cmd.Cmd shell for controllng the SSH session
from twisted.internet import reactor, defer, endpoints, task, stdio
from twisted.conch.client import default, options, direct
from twisted.conch.error import ConchError
from twisted.conch.ssh import session, forwarding, channel
from twisted.conch.ssh import connection, common
from twisted.python import log, usage
import signal
import tty
import struct
import fcntl
@tsurushuu
tsurushuu / open_with.py
Created December 12, 2011 14:47
for Sublime Text 2
###########################
# windows only
###########################
#import sublime
import sublime_plugin
import os
import os.path
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active February 16, 2024 04:32 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.
@ChaosData
ChaosData / unfuckup.sh
Created April 11, 2016 16:37
fix vmware shared folders in ubuntu 16.04
#!/bin/sh
sudo apt-get install open-vm-tools-desktop git build-essential
git clone https://github.com/vmware/open-vm-tools.git
cd open-vm-tools/open-vm-tools/
sudo apt-get install autoconf libtool
autoreconf -i
sudo apt-get install libmspack-dev libglib2.0-dev libprocps4-dev libdumbnet-dev
./configure --without-x --without-pam --without-ssl --without-icu
make MODULES=vmhgfs