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
alias annotate='annotate -p before -i -m' | |
alias aspell="aspell --lang=en_CA" | |
alias aurget="aurget --deps --noedit" | |
alias chown='chown --preserve-root' | |
alias chmod='chmod --preserve-root' | |
alias chgrp='chgrp --preserve-root' | |
alias cp="cp -i -v -u" | |
alias cpuinfo='lscpu' | |
alias df="df -h" | |
alias diff="colordiff" |
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
[alias] | |
br = branch | |
co = checkout | |
ct = commit | |
cam = commit -a -m | |
dc = diff --color | |
fix = commit --amend -C HEAD | |
head = !"git log -n1" | |
ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $1 >>.gitignore | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative |
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
/* | |
Copyright (C) 2011 Colin Faulkingham, http://3a2d29.com/ | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
# | |
# ~/.bash_prompt | |
# | |
#Prompt and prompt colors | |
# 30m - Black | |
# 31m - Red | |
# 32m - Green | |
# 33m - Yellow | |
# 34m - Blue |
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
if has('macunix') | |
set guifont=Monaco:h13 | |
set fuoptions=maxvert,maxhorz | |
elseif has('unix') | |
set guifont=Inconsolata\ Medium\ 12 | |
endif |
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 bash | |
if [ -x "/usr/bin/reflector" ]; then | |
DATE=`date +%Y%m%d` | |
sudo cp -f /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.${DATE} | |
sudo reflector --sort rate --protocol http --fastest 5 --age 36 --save /etc/pacman.d/mirrorlist | |
fi | |
sudo pacman -Syyu |
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
# | |
# post installation | |
# | |
# login as ‘root’ and with the password set above | |
# connect if using wifi - eth should just work | |
nmcli dev wifi list | |
nmcli dev wifi connect “Hearth 5GHz" password [somepasswordhere] | |
# if it fails, try it again - it often fails for me on the 1st attempt (not sure why) | |
ping -c 3 www.google.ca |
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
"" | |
"" | |
"" Mappings / Keybindings | |
"" | |
"" leader is ',' | |
"" | |
"" Manipulate $MYVIMRC | |
"" Use <leader>ev to edit .vimrc | |
"" Use <leader>sv to reload .vimrc | |
"" |
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
# | |
# ~/.bash_prompt | |
# | |
# Call this file from ~/.bashrc or ~/.bash_profile with | |
# source ~/.bash_prompt# | |
# | |
# Required Bash version 4.x or above | |
# Works on OSX, Linux and Cygwin | |
# Prints the git branch (if any) |
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
# | |
# Using LUKS on LVM is different than LVM on LUKS | |
# | |
# idea is to create the root encrypted system, then use a password file to mount the others | |
# so for the initial install, do this instead of the above | |
# | |
# load this module | |
modprobe dm-mod | |
# | |
pvcreate /dev/sda3 |
OlderNewer