Skip to content

Instantly share code, notes, and snippets.

View hoodie's full-sized avatar
🎯
Focusing

Hendrik Sollich hoodie

🎯
Focusing
View GitHub Profile
@hoodie
hoodie / LICENSE.txt
Created June 24, 2011 07:42 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@hoodie
hoodie / dvb.sh
Created June 8, 2013 15:26
calls the vvo api
#!/bin/bash
station=${@:-Slub}
exec 6<> /dev/tcp/widgets.vvo-online.de/80
printf "GET /abfahrtsmonitor/Abfahrten.do?ort=Dresden&hst=$station&vz=0 HTTP/1.0
Host: widgets.vvo-online.de
User-Agent: Ach ja, die 61
Connection: close\n\n" >&6
#cat <&6 | grep '\[\[' | sed -e 's/\],\[/\n/g' -e 's/\[\[\|\]\]//g' -e 's/\",\"/ /g' -e 's/\"//g'
#!/bin/bash
# Programm Bashtuner
# Autor Karsten Weidenfeld
# OS Linux Mint 14, Ubuntu 12.04
# Abhängigkeiten curl, vlc, zenity, streamripper
# Bashtuner ist ein Radio Abspielprogramm das wahlweise Sender aus einer lokalen Favouritenliste
# oder einer Onlineliste abspielt. Es können auch Sender aus der Onlineliste übernommen werden.
@hoodie
hoodie / roboton.sh
Last active December 21, 2015 15:39
download sputnik roboton shows (needs debugging)
#!/bin/bash
function cget(){
curl $* --silent --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0"
}
# | xargs wget -nc -q -P /home/hendrik/roboton
station=${@:-https://www.sputnik.de/programm/programmschema}
#showpage="http://www.sputnik.de/musik/sendungen/sputnik-roboton-mi-22-00-23-00-cet"
showpage=$(cget $station --silent | sed -n 's/.*href="\(http[^"]*\).*/\1/p' | grep roboton)
shows=$(cget $showpage --silent | sed -n 's/.*href="\(http[^"]*\).*/\1\n/p' | grep mp3)
@hoodie
hoodie / monokai.agave
Last active December 28, 2015 01:38
Manually configuring Kate to look like vim with Monokai ruby looks alright so far could be better
GIMP Palette
Name: Favorite Colors, exported 2013/11/11
Columns: 0
39 40 34 #272822
102 217 239 #66d9ef
117 113 94 #75715e
144 144 138 #90908a
166 226 46 #a6e22e
174 129 255 #ae81ff
230 219 116 #e6db74
@hoodie
hoodie / wallsplit.sh
Last active August 29, 2015 13:56
split wallpapers for 12 screen display
#!/bin/bash
FORMAT=png
RESIZE_NAME="FULL"
RESIZE_OUTPUT=$RESIZE_NAME.$FORMAT
CUTOUTPUT="CUT"
SCREEN_WIDTH=$(( 1920))
SCREEN_HEIGHT=$((1081))
WIDTH=$(( $SCREEN_WIDTH *4))
HEIGHT=$(( $SCREEN_HEIGHT *3))
@hoodie
hoodie / keybase.md
Created April 26, 2014 16:15
keybase.md

Keybase proof

I hereby claim:

  • I am hoodie on github.
  • I am hoodie (https://keybase.io/hoodie) on keybase.
  • I have a public key whose fingerprint is 092B BA65 4F07 387C 858D 6823 9AC6 BB12 CC1C 6351

To claim this, I am signing this object:

function cat_in_box(){
try{console.log("it's alive");return 0;}
finally{console.log("it's dead");}
}
@hoodie
hoodie / .gitignore
Last active January 7, 2016 17:35
links for pentacast "rust"
*.swp
@hoodie
hoodie / random_cage.rb
Last active October 24, 2015 15:30
give me a random nicolas cage movie
#!/bin/env ruby
require "net/http"
require "nokogiri"
puts Nokogiri::HTML(Net::HTTP.get(URI("https://en.wikipedia.org/wiki/Nicolas_Cage_filmography")))
.css("table.wikitable.sortable tr")
.map{|line| line.css("td i a").text}
.keep_if{|e|!e.strip.empty?}
.sample