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 | |
PUSH_URL="https://www.pushbullet.com/api/pushes" | |
function pb_pushnote { | |
/usr/bin/curl "${PUSH_URL}" \ | |
-u "$1:" \ | |
-d "device_id=$2" \ | |
-d "type=note" \ | |
-d "title=$3" \ |
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/sh -ex | |
losetup /dev/loop0 && exit 1 || true | |
image=arch-linux-$(date +%Y%m%d).img | |
wget -N http://archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz | |
truncate -s 1G $image | |
losetup /dev/loop0 $image | |
parted -s /dev/loop0 mklabel msdos | |
parted -s /dev/loop0 unit MiB mkpart primary fat32 -- 1 32 | |
parted -s /dev/loop0 set 1 boot on | |
parted -s /dev/loop0 unit MiB mkpart primary ext2 -- 32 -1 |