Skip to content

Instantly share code, notes, and snippets.

@orithena
orithena / tweetdeck-darkertheme.sh
Created April 2, 2015 00:02
Adds some CSS Definitions to Tweetdeck's Chrome Browser App to make the dark theme even darker.
#!/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 August 29, 2015 14:17
Tweet-to-Speech script, reading out your timeline. Moved to https://github.com/orithena/tweet-to-speech
#!/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 15:18
KIF42 Tweetbot pre-release. Not configurable enough yet for a normal release. Check the code for hardcoded stuff before running.
#!/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>"
@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 January 8, 2017 15:08
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.
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 November 30, 2013 13:35
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.
#!/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 September 15, 2013 00:57
(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…
#!/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)) :