Skip to content

Instantly share code, notes, and snippets.

View xhochy's full-sized avatar

Uwe L. Korn xhochy

View GitHub Profile
@imjasonh
imjasonh / markdown.css
Last active February 12, 2024 17:18
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@xhochy
xhochy / okhubot.coffee
Created November 28, 2013 21:02
Still think it is revolutionary to shout "Ok, <app>!" at your screen? Already annoyed but your friends don't realize? Just show them how ridiculous it can get :P
# Description:
# Annoy people who still think shouting "Ok, <app>!" at their device is revolutionary.
module.exports = (robot) ->
robot.hear /^(?!Ok, .*!).*/i, (msg) ->
msg.send "Ok, #{msg.message.user.name}! You should start your messages with \"Ok, ..\" or they will not be recognised."
@dysinger
dysinger / ubuntu-13.10-docker-0.6.5.sh
Created October 31, 2013 22:40
ok the steps for ubuntu 13.10 w/ docker are a tiny bit debian-tricky but easy enough. You have to add saucy-proposed to your repos & pin * at 400 from that repo. then you install lxc from that repo. So the install goes like this:
cat >/etc/apt/preferences.d/saucy-proposed <\EOF
Package: *
Pin: release a=saucy-proposed
Pin-Priority: 400
EOF
cat >/etc/apt/sources.d/saucy-proposed.list <\EOF
deb http://us.archive.ubuntu.com/ubuntu/ saucy-proposed main restricted universe
deb-src http://us.archive.ubuntu.com/ubuntu/ saucy-proposed main restricted universe
@xhochy
xhochy / gist:5377824
Created April 13, 2013 10:08
Tomahawk Web-API Auth Process

(Client == Process talking to the Tomahawk instance)

  • Client requests auth via GET /2/access/request_auth
  • Client indicates that it requires Authorization in the running Tomahawk instance and provides it UUID to the User
  • User sees authorization request in JobView and accepts it (for headless instances: tomahawk --grant-api-access <UUID>
  • Tomahawk indicates granted access to the client / Client polls if it has been granted access.
  • Tomahawk stores the UUID and some additional information (e.g. client name) in its DB
@xhochy
xhochy / Proposal.md
Last active December 16, 2015 02:49
Control API and Tomahawk Apps

Tomahawk Apps

  • Integrate the same concept as Spotify Apps, but a bit more flexible (not only Apps, but more of a plugin-system)
  • HTML5+JavaScript
  • QWebkit View inside Tomahawk
  • Can have an entry in the TreeView on the left side in "Apps -> " and declare subentries
  • Add addtional functionality such as: ** Custom sharing ** Charts