I hereby claim:
- I am monstermunchkin on github.
- I am monstermunchkin (https://keybase.io/monstermunchkin) on keybase.
- I have a public key ASC8CKvJTRkMx8pP45f5tXjb_-5k_xMjgBVxMjkhbqHwWAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
import signal | |
import subprocess | |
import time | |
import sys | |
test = False | |
#!/bin/bash -e | |
monsetup="$(xrandr)" | |
int_mon="$(grep -Eo 'LVDS[[:digit:]]' <<< "${monsetup}")" | |
ext_mon="$(grep -Eo 'VGA[[:digit:]]' <<< "${monsetup}")" | |
if grep -Eq 'VGA[[:digit:]] connected' <<< "${monsetup}"; then | |
# where am I? | |
at_work=0 | |
for conn in $(sudo netcfg current); do |
#!/bin/bash -e | |
factory_img='soju-jro03e-factory-c9f5a67d.tgz' | |
su_bin='su-bin-3.1.1-arm-signed.zip' | |
mkdir -pv ~/custom_rom | |
cd ~/custom_rom | |
wget -nc "https://dl.google.com/dl/android/aosp/${factory_img}" |
#!/bin/bash | |
KEY_NEXT=XF86AudioNext # keycode: 171 | |
KEY_PLAY=XF86AudioPlay # keycode: 172 | |
KEY_PREV=XF86AudioPrev # keycode: 173 | |
# the window id of Spotify | |
SPOTIFY_WID=$(xdotool search --name "Spotify - Linux Preview") | |
if [[ -n ${SPOTIFY_WID} ]]; then |
#!/usr/bin/python | |
# Copy function with progress display using a callback function. | |
# The callback function used here mimics the output of | |
# 'rsync --progress'. | |
# Copyright (C) 2012 Thomas Hipp | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
# This program plots a graph with sunrises and sunsets. | |
# | |
# Copyright (C) 2012 Thomas Hipp | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 2 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, |
#!/usr/bin/python3 | |
# Copyright 2011 Thomas Hipp | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
import socketserver | |
import ssl | |
import xmlrpc.server | |
try: | |
import fcntl | |
except ImportError: | |
fcntl = None | |
class SecureXMLRPCServer(socketserver.TCPServer, | |
xmlrpc.server.SimpleXMLRPCDispatcher): |
#!/bin/bash | |
if ! [[ -f "$1" ]]; then | |
exit 1 | |
fi | |
ftype=$(ffmpeg -i "$1" 2>&1 | grep -o 'Audio:[^,]*' | awk '{print $2}') | |
fflags='-vn -acodec copy' | |
case "$ftype" in |