Skip to content

Instantly share code, notes, and snippets.

View goude's full-sized avatar

Daniel Goude goude

View GitHub Profile
@goude
goude / bootstrap.sh
Last active December 15, 2015 12:58
bootstrap.sh
#!/bin/sh
#
# Inspired by https://gist.github.com/andsens/2913223
#
# curl -sL https://gist.github.com/goude/5263576/download | tar -xzO | /bin/bash -ex
#
# sudo apt-get install iotop iftop parallel wget curl lsof lftp nmap netcat multitail mtr dstat dtrx pv ngrep sysstat
#aptget='sudo apt-get'
#chsh='sudo chsh'
@goude
goude / Random figlet phrase
Last active December 16, 2015 08:08
Produce a banner with some random phrase on stdout
perl -e '@a=split(/:/, "Hello, World!:Foobar:Kamelaase!");print @a[rand @a]' | figlet
@goude
goude / Count Characters in Tibco Spotfire String
Last active December 12, 2018 16:37
How do you create a calculated column in Tibco Spotfire to count occurences of a specific character in a string from another column?
Len(RXReplace([Column 1], "[^x]", "", "g"))
Replace x with the character you wish to count.
@goude
goude / motd
Last active August 29, 2015 14:07
motd
Ctrl-O / Ctrl-I - move in edit history (vim)
It's all in a day's work for Bicycle Repair Man.
@goude
goude / proxy
Created October 11, 2014 16:00
VirtualBoxed Linux proxy configuration for host's cntlm
# http://stackoverflow.com/questions/1261975/addressing-localhost-from-a-virtualbox-virtual-machine
# /etc/apt/apt.conf.d/95proxies
Acquire::http::proxy "http://10.0.2.2:3128";
Acquire::ftp::proxy "http://10.0.2.2:3128";
Acquire::https::proxy "http://10.0.2.2:3128";
# setup environment variables using https://github.com/goude/yaprox
$ yaprox -q 10.0.2.2:3128
@goude
goude / index.html
Last active August 29, 2015 14:19 — forked from WilliamQLiu/index.html
<!DOCTYPE html>
<html>
<head>
<!-- Load D3 from site -->
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
</head>
<!-- CSS (Styling) -->
<style type="text/css">
/* Format X and Y Axis */
@goude
goude / uninstall_wacom_drivers_with_elevated_command_prompt.md
Created January 25, 2016 09:14
How do you uninstall Wacom tablet drivers from an elevated command prompt in Windows?
  • search for uninstallation command in the Registry
  • execute the uninstallation command in an elevated command prompt

Not tested: Wacom recommends that you also search your computer for tablet.dat and friends and manually delete these files.

@goude
goude / cntlm-setup-win-lin.md
Created February 5, 2016 11:59
Minimal setup instructions for cntlm (Windows/Linux)

Minimal setup instructions for cntlm (Windows/Linux)

Problem

λ git clone https://github.com/mbostock/d3.git
Cloning into 'd3'...
fatal: unable to access 'https://github.com/mbostock/d3.git/':
Failed to connect to github.com port 443: Connection refused

Solution

@goude
goude / index.html
Last active June 3, 2016 13:19
D3 Variable Width Lines (copy of http://bl.ocks.org/larskotthoff/1642835, currently not working)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="line-variable.js"></script>
</head>
<body>
<div id="linevar"></div>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://gist.githubusercontent.com/goude/a71dbb47995c1ae768bdfb963d1cbcf9/raw/cb83771ca99bf600adc02f032dda2c8b3d344793/line-variable.js"></script>
</head>
<body>
<div id="linevar"></div>