Skip to content

Instantly share code, notes, and snippets.

View goude's full-sized avatar

Daniel Goude goude

View GitHub Profile
@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 / 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 / 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'