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 | |
# prepend i3status with wb01 | |
# metrics | |
i3status | while : | |
do | |
apache1=`ssh apache1 'ps -ef | grep httpd | wc -l'` | |
apache2=`ssh apache2 'ps -ef | grep httpd | wc -l'` | |
read line |
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
* | |
** | |
*** | |
** * | |
***** | |
** * | |
*** ** | |
** * *** | |
******* * | |
** *** |
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
* | |
********************************************** *********************************************** | |
** | |
******************************************** ************************************************* | |
** | |
****************************************** *************************************************** | |
** | |
**************************************** ***************************************************** | |
** | |
************************************** ******************************************************* |
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/bash | |
echoerr() { echo "$@" 1>&2; } | |
upper() { echo "$@" | tr [a-z] [A-Z]; } | |
if [ $# -lt 5 ]; then | |
echoerr "Exports data from mysql database in tables matching a like pattern e.g. 'table_%'" | |
echoerr "Usage: $0 host dbname dbuser dbpass pattern" | |
exit 1 |
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
escape = (str) -> | |
return '' if str is '' | |
first = str[0] | |
rest = str[1..-1] | |
first = if first is "'" or first is "\\" | |
"\\#{first}" | |
else | |
first | |
return first + escape(rest) | |
str = [ |
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
#include <Stepper.h> | |
// change this to the number of steps on your motor | |
#define STEPS 64 | |
#define SWITCH_PIN A0 | |
// create an instance of the stepper class, specifying | |
// the number of steps of the motor and the pins it's | |
// attached to | |
Stepper stepper(STEPS, 8, 10, 9, 11); |
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
"-64431" | |
| | |
------------------------- | |
/ \ | |
"13169" "-50918" | |
| | | |
--------------------- -- | |
/ \ / \ | |
"60088" "50455" ∅ ∅ | |
| | |
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
import XMonad | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageHelpers | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Hooks.UrgencyHook | |
import XMonad.Hooks.FadeInactive | |
import qualified XMonad.StackSet as W | |
import XMonad.Util.Run (spawnPipe, hPutStrLn) | |
import XMonad.Util.EZConfig | |
import XMonad.Util.WorkspaceCompare |
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/bash | |
echoerr() { echo "$@" 1>&2; } | |
upper() { echo "$@" | tr [a-z] [A-Z]; } | |
if [ $# -lt 5 ]; then | |
echoerr "Exports data from mysql database in tables matching a like pattern e.g. 'table_%'" | |
echoerr "Usage: $0 host dbname dbuser dbpass pattern" | |
exit 1 |
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
### Keybase proof | |
I hereby claim: | |
* I am gnidan on github. | |
* I am gnidan (https://keybase.io/gnidan) on keybase. | |
* I have a public key whose fingerprint is 6367 610C 69EB 17CE 8E31 C08E 821C 6650 1D62 1E63 | |
To claim this, I am signing this object: |