-
Install rEFIt: http://refit.sourceforge.net/doc/c1s1_install.html
-
Create a new FAT/DOS partition for the linux install (dual boot setup)
-
Download the linux ISO, in this case: http://www.ubuntu.com/download/
-
Convert the iso to a bootable img format:
cd ~/Downloads hdiutil convert -format UDRW -o ubuntu-13.10-desktop-amd64.img ubuntu-13.10-desktop-amd64.iso
-
Partition your USB stick as 'Free space' using Disk Uility
-
Find the name of your USB 'disk' with diskutil:
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
var lm = { | |
buildDefaultAccumulator: function() { | |
return new lm.Accumulator(0); | |
}, | |
version: '0.1' | |
}; | |
lm.Accumulator = function(initial) { | |
this.value = initial; | |
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
/* | |
If you are using dependency injection in Typescript/Javascript under the pretense that | |
you are doing anything other than overengineering and making your life and your team's life | |
harder, please read this. | |
*/ | |
// The code below doesn't care what `logger` is, only that it exports `log`! | |
// This creates a test seam / interface behind which you can replace it with ANYTHING! | |
// You only care that the thing being exported has a `log` function! | |
import { log } from './logger' |
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
/* | |
* PunyForth | |
* | |
* Copyright 2020(c) mtvee | |
* All rights reserved. | |
* | |
* MIT License | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
* software and associated documentation files (the "Software"), to deal in the Software |
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
// @MAP_IO port_out_00[0] 06 | |
// @MAP_IO port_out_00[1] 07 | |
// @MAP_IO port_out_00[2] 08 | |
// @MAP_IO port_out_00[3] 09 | |
// @MAP_IO port_out_00[4] 10 | |
// @MAP_IO port_out_00[5] 11 | |
// @MAP_IO port_out_00[6] 12 | |
// @MAP_IO port_out_00[7] 14 | |
// @MAP_IO reset 18 |
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 | |
if [[ $# -ne 1 ]]; then | |
echo "Usage: ./meeting_countdown.sh NUM_MINS" | |
exit 1 | |
fi | |
MINS=$1 | |
OUTFILE=~/src/obs/timer_out.txt | |
MESSAGE="time remaining in this meeting: " |
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
// Usage: | |
// Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread | |
// then use as follows: | |
// | |
// query(term | [term, term, ...], term | [term, term, ...], ...) | |
// | |
// When arguments are in an array then that means an "or" and when they are seperate that means "and" | |
// | |
// Term is of the format: | |
// ((-)text/RegExp) ( '-' means negation ) |
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 | |
# Raspberry Pi stress CPU temperature measurement script. | |
# | |
# Download this script (e.g. with wget) and give it execute permissions (chmod +x). | |
# Then run it with ./pi-cpu-stress.sh | |
# | |
# NOTE: In recent years, I've switched to using s-tui. See: | |
# https://github.com/amanusk/s-tui?tab=readme-ov-file#options | |
# Variables. |
OlderNewer