Skip to content

Instantly share code, notes, and snippets.

mix do deps.get, firmware, firmware.burn
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
beam_notify 1.0.0
castore 0.1.16
circular_buffer 0.4.1
cowboy 2.9.0
cowboy_telemetry 0.3.1
cowlib 2.11.0
sudo parted /dev/sdb -- mklabel gpt
sudo parted /dev/sdb -- mkpart primary 512MiB -8GiB
sudo parted /dev/sdb -- mkpart primary linux-swap -8GiB 100%
sudo parted /dev/sdb -- mkpart ESP fat32 1MiB 512MiB
sudo parted /dev/sdb -- set 3 boot on
mkfs.ext4 -L nixos /dev/sdb1
mkswap -L swap /dev/sdb2
swapon /dev/sdb2
mkfs.fat -F 32 -n boot /dev/sdb3
mount /dev/disk/by-label/nixos /mnt
@guillaumebreton
guillaumebreton / keybase.md
Created September 9, 2015 09:20
keybase.md

Keybase proof

I hereby claim:

  • I am guillaumebreton on github.
  • I am guillaumebreton (https://keybase.io/guillaumebreton) on keybase.
  • I have a public key whose fingerprint is 84FF 0E31 D664 A9A5 D114 9B72 3C16 0560 F6AD 066E

To claim this, I am signing this object:

@guillaumebreton
guillaumebreton / toutf8.sh
Created September 26, 2011 21:12
Converts files from Latin1 (ISO-8859-1) to UTF-8
#!/bin/bash
for file in *
do
if [ -f "$file" ]
then
iconv -f latin1 -t utf8 "$file" > "utf8_$file"
continue
fi
done