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
# lsblk: show devices | |
parted /dev/sda | |
mklabel msdos | |
mkpart primary ext4 1MiB 100MiB | |
set 1 boot on | |
mkpart primary ext4 100 15GiB | |
mkpart primary linux-swap15 16 | |
mkpart primary ext4 16 100% | |
mkfs.ext4 /dev/sda1 | |
mkfs.ext4 /dev/sda2 |
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 python | |
import re | |
import sys | |
with open(sys.argv[1]) as f: | |
lines = f.readlines() | |
rx = re.compile(r"[\w\s]") | |
d = {} |
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 file was automatically generated by 'stack init' | |
# | |
# Some commonly used options have been documented as comments in this file. | |
# For advanced use and comprehensive documentation of the format, please see: | |
# http://docs.haskellstack.org/en/stable/yaml_configuration/ | |
# A warning or info to be displayed to the user on config load. | |
user-message: ! 'Warning (added by new or init): Some packages were found to have | |
names conflicting with others and have been commented out in the packages section. |
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
karl@satellite:~/w/autobahn$ stack init | |
Looking for .cabal or package.yaml files to use to init the project. | |
Using cabal packages: | |
- Autobahn.cabal | |
Selecting the best among 9 snapshots... | |
Downloaded lts-7.1 build plan. | |
Fetching package index ...remote: Counting objects: 41, done. | |
remote: Compressing objects: 100% (32/32), done. |