Skip to content

Instantly share code, notes, and snippets.

Dave orithena

Block or report user

Report or block orithena

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@orithena
orithena / tweetdeck-darkertheme.sh
Created Apr 2, 2015
Adds some CSS Definitions to Tweetdeck's Chrome Browser App to make the dark theme even darker.
View tweetdeck-darkertheme.sh
#!/bin/bash
# Adds some CSS Definitions to Tweetdeck's Chrome Browser App to make the dark theme even darker.
# The CSS definitions are simply downloaded from https://gist.github.com/orithena/8803947 and appended
# to the tweetdeck extension's app-dark-xxxxx.css
# You need to run it after every app update.
find ~/.config/chromium/Default/Extensions/ -iname "app-dark*.css" | while read f
do
if [ $(wc -l $f | awk '{ print $1; }') -lt 5 ]
@orithena
orithena / tweet-to-speech.py
Last active Aug 29, 2015
Tweet-to-Speech script, reading out your timeline. Moved to https://github.com/orithena/tweet-to-speech
View tweet-to-speech.py
#!/usr/bin/python
import alsaaudio
from subprocess import call
import twython
import guess_language
from twython import TwythonStreamer
import config
import thread
import uuid
@orithena
orithena / kiftweetbot.py
Created May 14, 2014
KIF42 Tweetbot pre-release. Not configurable enough yet for a normal release. Check the code for hardcoded stuff before running.
View kiftweetbot.py
#!/usr/bin/python
import twython, time, pprint, traceback
import config
from twython import TwythonStreamer
"""
Config: create a file named config.py with these lines:
app_key="<your app key>"
View whiteboard_clean.bat
@echo off
convert "%1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "%1.cleaned.png"
@orithena
orithena / tweetdeck-darker.css
Last active Jan 8, 2017
Make the Tweetdeck DarkTheme even darker, change font, wide Home column. Just append it to chromium/Default/Extensions/???/3.5.?_?/web/css/app-dark.???.css or use it in greasemonkey.
View tweetdeck-darker.css
html{
font-family:Droid Sans;
}
.is-wide-columns .column {
width:300px;
}
.is-wide-columns .column.column-type-home {
width:361px;
font-size:1.0rem;
}
@orithena
orithena / spacenight.sh
Created Nov 30, 2013
Parses the "Space Night Up To Date" box on http://www.br.de/fernsehen/bayerisches-fernsehen/sendungen/spacenight/index.html and downloads all linked media files (according to the website, they're all CC-licensed) into a directory. Won't re-download existing files, so you could set up a daily cron job or something like that.
View spacenight.sh
#!/bin/bash
# spacenight.sh
# Parses the "Space Night Up To Date" box on http://www.br.de/fernsehen/bayerisches-fernsehen/sendungen/spacenight/index.html
# and downloads all linked media files into a directory. Won't re-download existing files, so you could set up a daily cron job
# or something like that.
if [ -n "$1" ]
then
targetdir="$1"
@orithena
orithena / infotext.py
Created Sep 15, 2013
(moved to https://github.com/orithena/infotext) Text of mpd/cpu/mem status for display via text-capable xscreensaver (e.g. "Phosphor") --- I use it on my RaspberryPi. Just save it somewhere, edit it to your needs, make it executable and configure xscreensaver to use this program as text source for screensavers like Apple ][, Phosphor, GLText, Fl…
View infotext.py
#!/usr/bin/python
import mpd
import pickle
def getTimeList():
statFile = file("/proc/stat", "r")
timeList = statFile.readline().split(" ")[2:6]
statFile.close()
for i in range(len(timeList)) :
You can’t perform that action at this time.