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
pacman -Syu --needed git python3 binutils | |
git clone https://github.com/raspberrypi/rpi-eeprom.git /opt/rpi-eeprom | |
mkdir -p /lib/firmware/raspberrypi | |
ln -s /opt/rpi-eeprom/firmware-2711/ /lib/firmware/raspberrypi/bootloader |
Ways to do things (from Peter Bourgon)
// Actor model (state machine)
type stateMachine struct {
state string
actionc chan func()
}
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 <Arduino.h> | |
#define MOIST_PIN_1 A5 | |
#define MOIST_PIN_2 A4 | |
#define MOIST_PIN_3 A3 | |
#define MOIST_PIN_4 A2 | |
#define MOIST_PIN_5 A1 | |
#define PWRBTN 7 | |
#define RELAYPIN 5 |
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
package main | |
import ( | |
"fmt" | |
"bufio" | |
"github.com/tarm/serial" | |
"log" | |
) | |
type Arduino struct { |
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
# Move to window in current workspace | |
cmd - left : yabai -m window --focus west | |
cmd - down : yabai -m window --focus south | |
cmd - up : yabai -m window --focus north | |
cmd - right : yabai -m window --focus east | |
# Shift window in current workspace | |
cmd + shift - left : yabai -m window --swap west || $(yabai -m window --display west; yabai -m display --focus west) | |
cmd + shift - down : yabai -m window --swap south || $(yabai -m window --display south; yabai -m display --focus south) | |
cmd + shift - up : yabai -m window --swap north || $(yabai -m window --display north; yabai -m display --focus north) |
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
#!/usr/bin/env sh | |
# *yabai --load-sa* is configured to run through sudo without a password | |
sudo yabai --load-sa | |
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" | |
# bar settings | |
yabai -m config top_padding 10 | |
# global settings |
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 prompt inspired by gf3, sindresorhus, alrra, and mathiasbynens. | |
# but customized to me. <3 | |
default_username='thomas' | |
# Colors | |
grey="\033[38;5;248m" | |
red="\033[38;5;196m" | |
orange="\033[38;5;208m" | |
blue="\033[38;5;75m" |
NewerOlder