Skip to content

Instantly share code, notes, and snippets.

View drandreaskrueger's full-sized avatar

drandreaskrueger

View GitHub Profile
@drandreaskrueger
drandreaskrueger / glances
Created January 8, 2018 16:38
glances init.d script - does not work ... yet
#! /bin/sh
### BEGIN INIT INFO
# Provides: glances
# chkconfig: 2345 80 80
# Short-Description: Start and stop the Glances server
### END INIT INFO
##############
######### from https://github.com/moumoul/scripting/blob/master/initd/glances
@drandreaskrueger
drandreaskrueger / gooeyCheckboxesProblem.py
Created January 29, 2016 01:56
Gooey: Some checkboxes do not react to user input at all
'''
gooeyCheckboxesProblem.py
@summary Some checkboxes do not react to user input at all.
@author https://github.com/drandreaskrueger
@bitcoin 1GdYteTSMUgiKdm1M4Yim7YdLoAoeME8kj
@since Created on 28 Jan 2016
@abstract This shows the combinations that are ill:
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbydir", shell=True)
import sys
sys.path.append(".")
import lockbydir.lockbydir_concurrent
lockbydir.lockbydir_concurrent.startMassive_ForGitPlayer()
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbydir", shell=True)
import sys
sys.path.append(".")
import lockbydir.lockbydir_concurrent
lockbydir.lockbydir_concurrent.startMassive()
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbydir", shell=True)
import sys
sys.path.append(".")
import lockbydir.lockbydir_concurrent
lockbydir.lockbydir_concurrent.startSpawner()
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbydir", shell=True)
import sys
sys.path.append(".")
import lockbydir.lockbydir
lockbydir.lockbydir.testDLock()
@drandreaskrueger
drandreaskrueger / gist:556d019a7a0fd9648403
Created February 15, 2015 22:26
GIT player: lockbyfile
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbyfile", shell=True)
import sys
sys.path.append(".")
import lockbyfile.testFLock
lockbyfile.testFLock()
@drandreaskrueger
drandreaskrueger / gist:2c7c0c471a335c40c126
Created February 15, 2015 22:39
GIT player for: lockbyfile
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbyfile", shell=True)
import sys
sys.path.append(".")
import lockbyfile.lockbyfile
lockbyfile.lockbyfile.testFLock()
@drandreaskrueger
drandreaskrueger / gist:08438b44cfbc031217f1
Created February 15, 2015 22:32
GIT player for: lockbyfile
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbyfile", shell=True)
import sys
sys.path.append(".")
import lockbyfile
lockbyfile.testFLock()
@drandreaskrueger
drandreaskrueger / gist:a22ae54e3e79828b0449
Created February 15, 2015 22:31
GIT player for: lockbyfile
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbyfile", shell=True)
import sys
sys.path.append(".")
import lockbyfile.testFLock
lockbyfile.testFLock()