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
import datetime | |
# Set the config for the date iterator | |
start_date = datetime.datetime(2018, 9, 10) | |
end_date = datetime.datetime(2018, 11, 20) | |
d = start_date | |
delta = datetime.timedelta(days=1) | |
# Iterate from start date, adding delta with every iteration | |
while d <= end_date: |
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
%% | |
%% Full page table test | |
%% | |
\documentclass[12pt]{article} | |
\pagenumbering{gobble} | |
\usepackage{tabularx} | |
\newcolumntype{C}{>{\hsize=.5\hsize}X} | |
\usepackage[left=1cm, right=1cm, top=1cm, bottom=1cm]{geometry} |
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
# Program to enable avahi service discovery of printers and CUPS | |
# In Arch Linux | |
# | |
## First install the needed programs | |
sudo pacman -S cups nss-mdns | |
## Add user to cups group | |
sudo usermod -a -G cups <USER> | |
## Alter the hosts line to be like this | |
# hosts: ... mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns ... |
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 bash | |
# GET ARGS | |
while getopts ":r:c:o:w:hs:hd" o; do case "${o}" in | |
h) | |
echo -e "Optional arguments for custom use:" | |
echo -e " -r: Repository (local file or url)" | |
echo -e " -c: Config file" | |
echo -e " -o: Output file" | |
echo -e " -w: Worker program to call" |
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
################################ MY ARCH INSTALL ################################# | |
# Official install guide: https://wiki.archlinux.org/index.php/installation_guide | |
#################### NOTE: Dual booting with Windows 10 UEFI: #################### | |
## - Use the existing EFI partition made by Windows instead of creating a new one | |
## - Partition up empty space for Linux install in Windows | |
## - Configure GRUB to choose between Windows or Arch boot | |
################################################################################## | |
# Pre Install: | |
## Download arch from https://www.archlinux.org/download/ | |
## Flash to USB drive: |
NewerOlder