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
public static string StripHtml(this string value) | |
{ | |
HtmlDocument htmlDoc = new HtmlDocument(); | |
htmlDoc.LoadHtml(value); | |
if (htmlDoc == null) | |
return value; | |
return htmlDoc.DocumentNode.InnerText; | |
} |
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 |