Skip to content

Instantly share code, notes, and snippets.

@Neoklosch
Neoklosch / .bashrc
Last active May 9, 2017 08:35
Linux Mint Terminal Config
# 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.
#!/usr/bin/env python
import argparse
import os
import time
import signal
import sys
import gi
gi.require_version('Notify', '0.7')
@Neoklosch
Neoklosch / matrix-effect.py
Created March 28, 2017 12:57
Simple Matrix rain effect for the linux terminal
import fcntl
import time
import random
import struct
import signal
import sys
import termios
import argparse
DEFAULT_SPEED = 0.05
@Neoklosch
Neoklosch / foe_bot.py
Last active March 12, 2017 18:29
Simple Forge of Empires Collect Bot
#!/usr/bin/env python
import os
import sys
import signal
import time
import pyscreenshot as ImageGrab
import ImageOps
from numpy import *
@Neoklosch
Neoklosch / teatimer.py
Created January 31, 2017 11:25
python tea timer
#!/usr/bin/env python
import argparse
import os
import time
import signal
import sys
import gi
gi.require_version('Notify', '0.7')
@Neoklosch
Neoklosch / android_icon_resizer.py
Last active May 14, 2016 09:06
Android Icon Resizer - Resizes an input image to android specific drawable images
#!/usr/bin/python
# The MIT License (MIT)
#
# Copyright (c) 2016 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
@Neoklosch
Neoklosch / install_script.sh
Last active April 19, 2016 11:13
Install script for new Linux Mint
#!/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
#!/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:
@Neoklosch
Neoklosch / crlfHelper.js
Last active December 3, 2015 13:59
Helps to convert line endings from one type to the other.
// 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
@Neoklosch
Neoklosch / checkstyle.xml
Last active November 13, 2015 17:14
Android Checkstyle Config
<?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"/>