Skip to content

Instantly share code, notes, and snippets.

View brimstone's full-sized avatar

Matt Robinson brimstone

View GitHub Profile
@brimstone
brimstone / raspi.sh
Last active April 27, 2022 01:17 — forked from superswan/raspi.sh
Script for raspberry pi emulation. Will create a QEMU vm with fresh raspian. https://azeria-labs.com/emulate-raspberry-pi-with-qemu/
#!/bin/bash
set -euo pipefail
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m'
GIB_IN_BYTES="1073741824"

Hi!

I'm Matt

<team><?
$fruits = array(
'Bahhumbug' => '40',
'rattle' => '35',
'irongeek' => '30',
'Mirage' => '25',
'SuMo_D' => '20',
'timoguin' => '15',
'oddball' => '10',
'NotLarry' => '5',

Keybase proof

I hereby claim:

  • I am brimstone on github.
  • I am brimstone (https://keybase.io/brimstone) on keybase.
  • I have a public key whose fingerprint is B4DF 106D 7563 CD7B BA76 DC20 C5A2 1DBA A7BB 0D70

To claim this, I am signing this object:

@brimstone
brimstone / gist:8205166
Created January 1, 2014 04:44
Add operations to and solve: 10 9 8 7 6 5 4 3 2 1 = 2014
#!/bin/bash
s=$1
e=$[ $s + 1 ]
for a in $(seq $(echo "4^8 * $s" | bc -l) $(echo "4^8 * $e" | bc -l)); do
n=$(echo "obase=4;$a" | bc)
f=$(
( for b in $(seq 1 $[ 9 - ${#n} ]); do
printf "0"; done; echo "$n"
) | sed -e 's/\(.\)/\1\n/g' | tr '0123' '+\-*/' | for a in {10..1}; do
read o