Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Hendrik Sollich hoodie

🎯
Focusing
View GitHub Profile
@hoodie
hoodie / wallsplit.sh
Last active Aug 29, 2015
split wallpapers for 12 screen display
View wallsplit.sh
#!/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))
View 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:

View schrödingers_cat.js
function cat_in_box(){
try{console.log("it's alive");return 0;}
finally{console.log("it's dead");}
}
@hoodie
hoodie / LICENSE.txt
Created Jun 24, 2011 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
View LICENSE.txt
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 / random_cage.rb
Last active Oct 24, 2015
give me a random nicolas cage movie
View random_cage.rb
#!/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
@hoodie
hoodie / setup_libavg.md
Last active Dec 6, 2015
Setting up Libavg
View setup_libavg.md

How to build libavg

tested on archlinux

# setup a special virtenv for python, e.g. here:
sudo mkdir /var/opt/virtenv/libavg
virtualenv -p /usr/bin/python2 /var/opt/virtenv/libavg --system-site-packages

# hopefully your virtualenv version is later than this https://github.com/pypa/virtualenv/pull/798
@hoodie
hoodie / README.md
Last active Dec 9, 2015
Servo Logo?
View README.md

Servo Logo proposal

I had this idea a minute ago, the rustacean logo "Ferris the Crab" has about the same colors as the firefox-fox. So why not integrate it into the firefox logo to make a Rustish/Firefoxish servo logo.

What do you think?

View gist:e369f874a7dd3ede76a4
[12:40:57] *** joerg is now Offline
*** 2015-12-10
[12:40:46] <joerg> ACTION=="add", SUBSYSTEM=="block", ENV{ID_PART_TABLE_UUID}=="819fbbd8-9b21-4cd6-aa7e-9c81cae2e37c", TAG+="systemd", ENV{SYSTEMD_WANTS}="backup.service"
[12:40:57] *** Contact has been switched: joerg@higgsboson.tk/turingmachine
[12:40:57] *** joerg is now Online [50]
[12:41:05] *** Unverified conversation started
[12:41:20] <joerg> /etc/udev/rules.d/99-backup.rules
@hoodie
hoodie / roboton.sh
Last active Dec 21, 2015
download sputnik roboton shows (needs debugging)
View roboton.sh
#!/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 Dec 28, 2015
Manually configuring Kate to look like vim with Monokai ruby looks alright so far could be better
View monokai.agave
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