Skip to content

Instantly share code, notes, and snippets.

View sigma's full-sized avatar
🏠
Working from Home

Yann Hodique sigma

🏠
Working from Home
View GitHub Profile
@sigma
sigma / gist:e3191c324ecbf4896019
Created May 1, 2014 20:48
remote fleetctl issue
$ fleetctl --tunnel cluster list-machines
mainLoop: unhandled message *ssh.kexInitMsg: &{[14 161 26 14 37 61 28 35 18 21 221 235 94 153 11 243] [curve25519-sha256@libssh.org diffie-hellman-group-exchange-sha256 diffie-hellman-group-exchange-sha1 diffie-hellman-group14-sha1 diffie-hellman-group1-sha1] [ssh-rsa ssh-dss] [aes128-ctr aes192-ctr aes256-ctr arcfour256 arcfour128 aes128-gcm@openssh.com aes256-gcm@openssh.com chacha20-poly1305@openssh.com aes128-cbc 3des-cbc blowfish-cbc cast128-cbc aes192-cbc aes256-cbc arcfour rijndael-cbc@lysator.liu.se] [aes128-ctr aes192-ctr aes256-ctr arcfour256 arcfour128 aes128-gcm@openssh.com aes256-gcm@openssh.com chacha20-poly1305@openssh.com aes128-cbc 3des-cbc blowfish-cbc cast128-cbc aes192-cbc aes256-cbc arcfour rijndael-cbc@lysator.liu.se] [hmac-md5-etm@openssh.com hmac-sha1-etm@openssh.com umac-64-etm@openssh.com umac-128-etm@openssh.com hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com hmac-ripemd160-etm@openssh.com hmac-sha1-96-etm@openssh.com hmac-md5-96
@sigma
sigma / plop.txt
Last active August 29, 2015 14:10
vmw-test container run
$ docker run sigma/vmw-vmtest
You are running on VMware ESX(i)
An OVF environment is defined: <?xml version="1.0" encoding="UTF-8"?>
<Environment
xmlns="http://schemas.dmtf.org/ovf/environment/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:oe="http://schemas.dmtf.org/ovf/environment/1"
xmlns:ve="http://www.vmware.com/schema/ovfenv"
oe:id=""
ve:vCenterId="vm-96699">
@sigma
sigma / gist:4c2e61118ea8392e9958
Created December 17, 2014 20:44
coreos-cloudinit VMware integration
core@localhost ~ $ docker run sigma/vmw-vmtest
You are running on VMware Workstation/Fusion
An OVF environment is defined: <?xml version="1.0" encoding="UTF-8"?>
<Environment xmlns="http://schemas.dmtf.org/ovf/environment/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:oe="http://schemas.dmtf.org/ovf/environment/1"
oe:id="CoreOSNode1"> <PlatformSection>
<Kind>vapprun</Kind>
<Version>1.0</Version>
<Vendor>VMware, Inc.</Vendor>
@sigma
sigma / .gnus-local.el
Created April 19, 2009 09:11
.gnus-local.el
;;; Use smtp server for mail sending
(setq send-mail-function 'smtpmail-send-it) ; if you use `mail'
(setq message-send-mail-function 'message-smtpmail-send-it) ; if you use message/Gnus
(require 'smtpmail)
;; (setq smtpmail-default-smtp-server "smtp.vmware.com"
;; smtpmail-smtp-server "smtp.vmware.com"
;; smtpmail-smtp-service 25
;; smtpmail-local-domain "vmware.com")
@sigma
sigma / .xmodmap
Created August 20, 2009 12:07
.xmodmap
keycode 0x12 = 9 bracketleft
keycode 0x13 = 0 bracketright
keycode 0x22 = parenleft braceleft
keycode 0x23 = parenright braceright
remove Lock = Caps_Lock
remove Control = Control_L
remove Control = Control_R
remove Mod2 = Num_Lock
@sigma
sigma / ipy_user_conf.py
Created August 30, 2009 17:47
ipy_user_conf.py
""" User configuration file for IPython """
# Most of your config files and extensions will probably start with this import
import IPython.ipapi
ip = IPython.ipapi.get()
import ipy_defaults
import os
@sigma
sigma / nfs_force_umount
Created November 9, 2009 14:06
force umount NFS
ifconfig eth0:fakenfs <dead nfs server> netmask 255.255.255.255
umount -f /nfs/...
ifconfig eth0:fakenfs down
@sigma
sigma / etags-kill.el
Created November 30, 2009 16:20
etags-kill.el
;;; etags-kill.el --- kill useless buffers when browsing tags
;; Copyright (C) 2009 Free Software Foundation, Inc.
;; Author: Yann Hodique <yhodique@vmware.com>
;; Keywords:
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
@sigma
sigma / shovestore.py
Created December 16, 2009 16:57
recursive python shove
from shove import Shove
class ShoveStore(Shove):
""" usage: Shove('shove://(shove://(sqlite://data.db file://data_files) memory://)',
'simple://', shove_params={'shove_params': {}})
"""
def __init__(self, engine, **kw):
url = engine.partition('://')[2][1:-1]
@sigma
sigma / _workon
Created March 19, 2010 21:46
workon completion
#compdef workon
_workon_envs () {
local expl devs
envs=( $(workon) )
_wanted envs expl 'available envs' \
compadd "$@" - "${(@)envs%%:*}"
}