- partitions
- use the tool of your choice (fdiks/gdisks/parted)
- filesystems
mkfs -t <fs-type> /dev/<partition>
- mount partitions on /mnt
- setup network
ip address add <IP>/<CIDR> dev eth0
ip route add default via <GW>
- add dns in /etc/resolve.conf
- select pacman mirror
This file contains hidden or 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 python3 | |
# average-incident.py | |
# requires python >= 3 | |
import os | |
import sys | |
import math | |
import csv | |
import itertools |
This file contains hidden or 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 | |
echo "Latitude,Longitude,Heading" | |
tail -n+2 "$1" | shuf -n 6 |
This file contains hidden or 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 | |
echo "Latitude,Longitude,Heading" | |
while read line; do | |
echo $line | cut -f1-3 -d' '|sed 's/°//'|tr ' ' ',' | |
done < "$1" |
This file contains hidden or 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
LATEXMK = latexmk | |
.PHONY: pdf | |
all: pdf | |
pdf: | |
$(LATEXMK) -pdf -pdflatex="pdflatex -interactive=nonstopmode" | |
clean: |
This file contains hidden or 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
LATEX = latex | |
BIBTEX = bibtex | |
PS2PDF = ps2pdf | |
DVIPS = dvips | |
DVI_VIEWER = xdvi | |
PS_VIEWER = evince | |
PDF_VIEWER = evince | |
PS2PDF_OPTIONS = -sPAPERSIZE=a4 |
This file contains hidden or 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 | |
# calculate screen DPI | |
# supports both python 2 and 3 | |
import re | |
import argparse | |
from math import sqrt | |
from subprocess import check_output |
This file contains hidden or 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
PHP = php | |
MEM = -d memory_limit=256M | |
CON = app/console | |
ENV = dev | |
all: | |
@echo "" | |
@echo "usage:" | |
@echo "" | |
@echo "* make assets: update application assets" |
This file contains hidden or 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
%% | |
%% IEEEtran.bst | |
%% BibTeX Bibliography Style file for IEEE Journals and Conferences (unsorted) | |
%% Version 1.13 (2008/09/30) | |
%% | |
%% Copyright (c) 2003-2008 Michael Shell | |
%% | |
%% Original starting code base and algorithms obtained from the output of | |
%% Patrick W. Daly's makebst package as well as from prior versions of | |
%% IEEE BibTeX styles: |
This file contains hidden or 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
[Unit] | |
Description=Fix excessive HDD parking frequency | |
[Service] | |
Type=oneshot | |
ExecStart=/sbin/hdparm -B 220 /dev/sda | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |