This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# System-wide .bashrc file for interactive bash(1) shells. | |
# To enable the settings / commands in this file for login shells as well, | |
# this file has to be sourced in /etc/profile. | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# check the window size after each command and, if necessary, | |
# update the values of LINES and COLUMNS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adb aliases | |
alias adb='/opt/android-sdk/platform-tools/./adb' | |
alias adb-start='adb start-server' | |
alias adb-stop='adb kill-server' | |
alias adb-restart='adb kill-server start-server' | |
adbfind() { | |
package=$(adb -d shell pm list packages | grep -wE "$1($|\s)" | sed "s/package://g"); | |
pathtopackage=$(adb -d shell pm path $package | sed "s/package://g"); | |
echo $pathtopackage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from subprocess import Popen, PIPE | |
import re | |
terminal_call = ['xinput', 'list'] | |
regex_pattern = re.compile(r'.+TouchPad.+id=(\d+)') | |
sec_regex_pattern = re.compile(r'.*Device (Enabled|Disabled).+:\s(\d+)') | |
pp = Popen(terminal_call, stdout=PIPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# TODO: backup from existing installation | |
# TODO: backup host file | |
# TODO: hplib | |
# TODO: sass | |
# TODO: install sublime plugins | |
# TODO: install atom plugins | |
# TODO: install pycharm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import subprocess, sys, os, getopt, os.path | |
''' | |
This is a tool to create a apns certificate without passphrase. | |
You need these kind of certificate for the django push server (https://github.com/jleclanche/django-push-notifications). | |
''' | |
def print_help(): | |
print ''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Xlib.display import Display | |
from Xlib import X | |
class KeyBinder(object): | |
def __init__(self): | |
self.cancel = False | |
self.xdisp = Display() | |
self.xroot = self.xdisp.screen().root | |
self.key_code = 71 # F5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"id": 1, | |
"name": "test 1", | |
"description": "meine description test 1", | |
"example": "test 1 example long long words" | |
},{ | |
"id": 2, | |
"name": "test 2", | |
"description": "meine description test 2", | |
"example": "test 2 example long long words" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | |
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
<module name="Checker"> | |
<!-- See: http://checkstyle.sourceforge.net/config_sizes.html --> | |
<module name="FileLength"> | |
<property name="max" value="500"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2015 Markus Paeschke | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import subprocess, time, json | |
import urllib2 | |
def main(): | |
print "Starting notifier..." | |
message = ["notify-send", "Deine Nummer Digga, geh los!"] | |
while True: |
OlderNewer