Skip to content

Instantly share code, notes, and snippets.

View shelmus's full-sized avatar

Sean Helmus shelmus

  • US
View GitHub Profile
@shelmus
shelmus / mirrorlist
Last active October 20, 2020 01:00
archlinux_mirrorlist
# Mirror list updated 10-16-2020
# Created with:
# curl -s "https://www.archlinux.org/mirrorlist/?country=US&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 10 -
Server = http://10.0.0.3/archlinux/$repo/os/$arch
Server = https://iad.mirrors.misaka.one/archlinux/$repo/os/$arch
Server = https://mirror.wdc1.us.leaseweb.net/archlinux/$repo/os/$arch
Server = https://mirror.ette.biz/archlinux/$repo/os/$arch
Server = https://arch.mirror.constant.com/$repo/os/$arch
Server = https://mirrors.mit.edu/archlinux/$repo/os/$arch
@shelmus
shelmus / archbuilder.sh
Last active May 4, 2020 21:23
archlinux auto builder
#!/bin/bash
# Arch Installer (Server based installer)
# Built by sean@endorsystems.com
set -uo pipefail
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
### Set up logging ###
exec 1> >(tee "stdout.log")
exec 2> >(tee "stderr.log")
[colors]
# special
foreground = #e0e0e0
foreground_bold = #e0e0e0
cursor = #e0e0e0
background = #212121
# black
color0 = #212121
! special
*.foreground: #e0e0e0
*.background: #212121
*.cursorColor: #e0e0e0
! black
*.color0: #212121
*.color8: #757575
! red
@shelmus
shelmus / .bashrc
Created October 19, 2018 14:33
.bashrc (w/ Terminal Logging)
#
# ~/.bashrc
#
# Including .bash_aliases
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# If not running interactively, don't do anything
@shelmus
shelmus / .bash_aliases
Created October 19, 2018 14:33
.bash_aliases (w/ Terminal Logging)
# Execute "script" command just once
smart_script(){
# if there's no SCRIPT_LOG_FILE exported yet
if [ -z "$SCRIPT_LOG_FILE" ]; then
# make folder paths
logdirparent=~/.terminal_logs
logdirraw=raw/$(date +%F)
logdir=$logdirparent/$logdirraw
logfile=$logdir/$(date +%F_%T).$$.rawlog
@shelmus
shelmus / FreenasSetup.md
Created June 11, 2018 16:55 — forked from zenxedo/TrueNAS Setup.md
Ultimate FreeNAS 11.1 Setup

FreeNAS

This page was forked so be sure to check the Original for more and the links.

WARNING This page contains incomplete and possibly incorrect info. The page is constantly being edited and worked on. Many of these should work but some may be broken. Use at your own risk.

Create a "media" dataset

Create a dataset called "media" with directories for tv, movies, downloads
Give your dataset unix permissions to the default FreeNAS media user media:media