Skip to content

Instantly share code, notes, and snippets.

@eerohele
eerohele / mosh-cygwin.md
Last active March 3, 2024 04:20
Compiling Mosh (http://mosh.mit.edu/) under Cygwin

NOTE: You don't need to compile Mosh on Cygwin yourself anymore; just install the package with Cygwin's setup.exe.

  1. Download Cygwin.

  2. Run setup.exe and install the following packages in addition to the default ones:

    • make
    • boost
    • libncurses-devel
    • pkg-config
  • perl
@mizzy
mizzy / set_localtime_to_vm_clock_offset.py
Last active September 30, 2015 10:08
A script to change clock setting of all vms on a specified host
#!/usr/bin/python
import sys
import libvirt
from xml.etree.ElementTree import *
host = sys.argv[1]
conn = libvirt.open("qemu+tcp://%s/system" % host)
vms = []
@kyanny
kyanny / gist:1727338
Created February 3, 2012 02:52
system-wide installation rbenv + ruby-build @/usr/local
MY_GROUP=""
if [ "$MY_GROUP" = "" ] ; then
echo '!!! undefined variable MY_GROUP.'
echo '!!!'
echo '!!! ex.) MY_GROUP=staff'
echo '!!!'
exit 1
fi
cd /usr/local