Skip to content

Instantly share code, notes, and snippets.

View MartinSeeler's full-sized avatar
🤖
Leading Robo Advisors

Martin Seeler MartinSeeler

🤖
Leading Robo Advisors
View GitHub Profile

Keybase proof

I hereby claim:

  • I am MartinSeeler on github.
  • I am martinseeler (https://keybase.io/martinseeler) on keybase.
  • I have a public key whose fingerprint is 7044 7B47 E373 C7D5 405E 43CB EC07 FFE7 0FFD CD99

To claim this, I am signing this object:

@MartinSeeler
MartinSeeler / problem-08.rs
Last active August 29, 2015 14:10
Euler Problems
fn main() {
let input = "73167176531330624919225119674426574742355349194934969835203127745063262395783180169848018694788518438586156078911294949545950173795833195285320880551112540698747158523863050715693290963295227443043557668966489504452445231617318564030987111217223831136222989342338030813533627661428280644448664523874930358907296290491560440772390713810515859307960866701724271218839987979087922749219016997208880937766572733300105336788122023542180975125454059475224352584907711670556013604839586446706324415722155397536978179778461740649551492908625693219784686224828397224137565705605749026140797296865241453510047482166370484403199890008895243450658541227588666881164271714799244429282308634656748139191231628245861786645835912456652947654568284891288314260769004224219022671055626321111109370544217506941658960408071984038509624554443629812309878799272442849091888458015616609791913387549920052406368991256071760605886116467109405077541002256983155200055935729725716362695618826704282524836008232575304207529
@MartinSeeler
MartinSeeler / speak-logs
Created September 10, 2014 08:39
Parses text and trims only log message and speaks it out on terminal
head ./foo-bar-log.log | grep -i 'warn' | cut -d '-' -f 4 | awk '{print "Prefix " $0}' | say -v "Zarvox" -r 200
@MartinSeeler
MartinSeeler / install-jdk.sh
Created December 29, 2013 19:05
Some utility scripts for the commandline in Linux.
#!/bin/zsh
if [[ -z $1 ]]; then
echo "Please specify the home path of your jdk!"
exit
fi
if [[ ! (-d $1) ]]; then
echo "The directory to the jdk does not exist!"
exit
@MartinSeeler
MartinSeeler / screen-dimensions.sh
Created August 6, 2013 15:03
some sed and grep games to extract screen dimensions
#!/bin/sh
screen_dim=$(xdpyinfo | grep dimension | awk '{print $2}')
echo "screen size is $screen_dim"
screen_dim_x=$(echo ${screen_dim} | sed -e 's/x/\n/g' | sed -n '1p' )
screen_dim_y=$(echo ${screen_dim} | sed -e 's/x/\n/g' | sed -n '2p' )
echo "screen width is $screen_dim_x"
echo "screen height is $screen_dim_y"
exit 0