This file contains hidden or 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 2017 Taeber Rapczak | |
* | |
* Simple countdown timer | |
* | |
* EXAMPLES | |
* $ timer 10 # sets timer for 10 seconds | |
* $ timer 1m # sets timer for 1 minute | |
* $ timer 3h5m2 # sets timer for 3 hours, 5 minutes, 2 seconds | |
*/ |
This file contains hidden or 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 | |
# Copyright 2017 Taeber Rapczak | |
# Reminds the user to stand up or sit down on the hour and half-hour | |
# Uses timer from https://gist.github.com/taeber/20d6b000ae68f5f623f3467233017f34 | |
seconds=$(date +%T | cut -d: -f3) | |
minutes=$(date +%T | cut -d: -f2) | |
if [[ $minutes -ne 0 ]] || [[ $seconds -ne 0 ]] |
This file contains hidden or 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
function envload { | |
if [ "$#" -ne 1 ] | |
then | |
echo "usage: envload <envfile>" | |
echo "" | |
echo "Reads an environment file (lines of key=value pairs) into the current Environment" | |
return | |
fi | |
case $(uname) in |
This file contains hidden or 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
// Fake say program | |
// | |
// Author: | |
// Taeber Rapczak <[email protected]> | |
// | |
// Compile: | |
// $ cc -o say fakesay.c | |
// Example: | |
// $ ./say hi | |
// $ ./say alexa unlock front door |
This file contains hidden or 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
// mousectl - Swap mouse buttons from the macOS Terminal | |
// From https://superuser.com/a/1782251 | |
// with changes by [email protected] | |
// Compile: | |
// clang -framework IOKit -framework Foundation -o mousectl mousectl.c | |
#include <IOKit/hidsystem/IOHIDLib.h> | |
#include <IOKit/hidsystem/IOHIDParameter.h> |
OlderNewer