Skip to content

Instantly share code, notes, and snippets.

View robotmachine's full-sized avatar

Bee Carter robotmachine

View GitHub Profile
@robotmachine
robotmachine / Unzipper.sh
Created April 8, 2017 19:18
Locate any .zip file below the current, create a directory based on the filename, unzip the contents in to the new directory, and remove the original .zip.
#!/bin/bash
# Unzipper
# Usage: $> Unzipper.sh /directory/to/search
# Unzipper will locate any .zip files and extract them in their current folder within a new directory taken from the filename.
if [[ "$@" ]]; then
findDir="$@"
else
findDir="$(echo $PWD)"
fi
@robotmachine
robotmachine / demo.sh
Last active January 13, 2017 02:17
Demonstration of a Gist
#!/bin/bash
echo "This is a test"
for x in {1..5} ; do
echo "$x"
done
@robotmachine
robotmachine / file.txt
Created January 13, 2017 01:57
A Test
This is a test.
@robotmachine
robotmachine / gist:fec2143ca6bec1c18440
Created January 1, 2016 20:46
OpalWrite-2016-Jan-01.txt
9,, kbh,,0u
mmv
v
v
c
v mvvmm
~ ~ x // n nnn cccccc .
E486: Pattern not found: holt 7,476
I like living in a bungalow. It’s a nice little house but it does have one major flaw.
@robotmachine
robotmachine / keybase.md
Last active August 29, 2015 13:57
keybase.md

Keybase proof

I hereby claim:

  • I am robotmachine on github.
  • I am robotmachine (https://keybase.io/robotmachine) on keybase.
  • I have a public key whose fingerprint is 8F32 E92C 6CA3 AD3C C7E2 9831 CC64 5668 F066 3BB8

To claim this, I am signing this object:

@robotmachine
robotmachine / killrem.sh
Last active December 26, 2015 10:59
KILLREM
#!/bin/bash
REMPID=$(pgrep rem)
REMCOUNT=$(echo $REMPID | wc -w | tr -d ' ')
if [[ -z "$REMPID" ]]; then
exit
else
killall rem
if [[ "$REMCOUNT" -gt 2 ]]; then

French Press Method

  1. Put the kettle on.
  2. Fill the French press with hot water from the tap.
  3. Weigh out 35g of coffee beans.
  4. Grind coarsely.
  5. Once you have a rolling boil, dump the hot water from the press.
  6. Add the coffee to the empty French press .
  7. Place the press on the scale and zero it.
  8. Add 500g of water.
It is public. You can read it!