Skip to content

Instantly share code, notes, and snippets.

@AHaymond
AHaymond / gist:25587a93094fdffdcdbfeaa90f21337c
Last active March 20, 2024 13:40
Setting up Arch Linux LXC on ProxMox
1. Edit the mirror list located at /etc/pacman.d/mirrorlist and uncomment a preferred mirror (preferrably closest to you)
2. Initialize Pacman GPG Keys
- $> pacman-key --init
- $> pacman-key --populate archlinux
- $> pacman-key --refresh-keys -u --keyserver hkps.pool.sks-keyservers.net
*The use of the --keyserver flag is due to an error that currently occurs when using the default keyserver
3. Reinstall Arch keyring
- $> pacman -S archlinux-keyring
4. Install Yay (if desired)
- Create a user (you cannot run makepkg as root, you must be signed in as a user)
@AHaymond
AHaymond / bash-colors.md
Last active January 28, 2024 19:38 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@AHaymond
AHaymond / arch_install.sh
Last active November 19, 2019 21:25 — forked from danielcbaldwin/arch_install.sh
Arch Install Manual... dont try to run this file, just follow the steps.
# Boot from the usb, make sure that secure boot is disabled in the BIOS
# Default keymap is set to US
# Connect to wifi
wifi-menu
# Create partitions using cgdisk or fdisk
1 500MB EFI partition # Hex code ef00
2 100% size partition # Hex code 8300

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

### Keybase proof
I hereby claim:
* I am ahaymond on github.
* I am adamhaymond (https://keybase.io/adamhaymond) on keybase.
* I have a public key ASAONF_SBZ4nVVVTgEgWtyyhEmHSiHc3f08csroQ-nomnAo
To claim this, I am signing this object:
@AHaymond
AHaymond / myip.go
Created March 24, 2018 18:27 — forked from jniltinho/myip.go
Get My IP Golang
package main
/*
URL: https://github.com/mccoyst/myip/blob/master/myip.go
URL: http://changsijay.com/2013/07/28/golang-get-ip-address/
*/
import (
"net"
"os"
@AHaymond
AHaymond / keybase.md
Created February 8, 2018 19:32
Keybase verification

Keybase proof

I hereby claim:

  • I am ahaymond on github.
  • I am ahaymond (https://keybase.io/ahaymond) on keybase.
  • I have a public key ASCqo-i7oP0LrO7fCHKBnkfj4rdevgZzn8194cXCqcqJvQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am AHaymond on github.
  • I am ode (https://keybase.io/ode) on keybase.
  • I have a public key whose fingerprint is 11BC 3CDF 217F 7907 DBA1 5B93 A8AF 6008 6778 4325

To claim this, I am signing this object:

@AHaymond
AHaymond / utils.go
Created February 3, 2016 20:19
snake case a camel cased word in Go
package utils
import (
"strings"
@AHaymond
AHaymond / Sublime Text Command Line
Created February 22, 2012 16:28
Set up sublime text for command line operation Mac OS X
Run this command in your terminal to add command line functionality for Sublime Text.
ln -s /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl ~/usr/local/bin/subl
This will create a symlink to the command line tool using your /usr/local/bin directory which should be in your PATH environment variable by default.
Once you create the symlink you can now open any text file by typing "subl textfile.txt"