Skip to content

Instantly share code, notes, and snippets.

Adam Haymond AHaymond

Block or report user

Report or block AHaymond

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@AHaymond
AHaymond / arch_install.sh
Created Sep 13, 2018 — forked from danielcbaldwin/arch_install.sh
Arch Install Manual... dont try to run this file, just follow the steps.
View arch_install.sh
# 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 Jun 1, 2018 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.
View bash-colors.md

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
View gist:e40b21d106336da83ef7a61293856e6c
### 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 Mar 24, 2018 — forked from jniltinho/myip.go
Get My IP Golang
View myip.go
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 Feb 8, 2018
Keybase verification
View keybase.md

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:

View keybase.md

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 Feb 3, 2016
snake case a camel cased word in Go
View utils.go
package utils
import (
"strings"
@AHaymond
AHaymond / gist:11219512
Created Apr 23, 2014
Failed to patch Ruby 2.0.0-p353 install
View gist:11219512
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.
@AHaymond
AHaymond / gist:11218468
Last active Aug 29, 2015
Test patch for Ruby 2.0.0-p353 on Ubuntu 14.04
View gist:11218468
Index: ext/readline/readline.c
===================================================================
--- ext/readline/readline.c (revision 45224)
+++ ext/readline/readline.c (revision 45225)
@@ -1974,7 +1974,7 @@
rl_attempted_completion_function = readline_attempted_completion_function;
#if defined(HAVE_RL_PRE_INPUT_HOOK)
- rl_pre_input_hook = (Function *)readline_pre_input_hook;
+ rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook;
You can’t perform that action at this time.