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)

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@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
@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
### 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 / gist:11219512
Created April 23, 2014 15:16
Failed to patch Ruby 2.0.0-p353 install
Downloading ruby-2.0.0-p353.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/78282433fb697dd3613613ff55d734c1
Installing ruby-2.0.0-p353...
patching file ext/readline/readline.c
Hunk #1 succeeded at 1883 (offset -91 lines).
patching file ext/readline/extconf.rb
Hunk #2 FAILED at 98.
1 out of 2 hunks FAILED -- saving rejects to file ext/readline/extconf.rb.rej
patching file ext/readline/extconf.rb
Hunk #1 FAILED at 99.