Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:

Elijah Shackelford eshack94

:shipit:
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am eshack94 on github.
  • I am eshack94 (https://keybase.io/eshack94) on keybase.
  • I have a public key ASD6X637W5qIzP63BxND3WNQCZFsWFj1Ib_3_gul93hMBAo

To claim this, I am signing this object:

@eshack94
eshack94 / README.md
Created Jul 3, 2020 — forked from pdanford/README.md
Launching iTerm2 from macOS Finder
View README.md

Launching iTerm2 from macOS Finder

(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)

The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.

pdanford - April 2020


@eshack94
eshack94 / generate-ssh-key.sh
Created Jun 4, 2020 — forked from grenade/generate-ssh-key.sh
Correct file permissions for ssh keys and config.
View generate-ssh-key.sh
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View sed cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@eshack94
eshack94 / colorscheme-override.md
Created Jan 21, 2020 — forked from romainl/colorscheme-override.md
The right way to override any highlighting if you don't want to edit the colorscheme file directly
View colorscheme-override.md

Suppose you have weird taste and you absolutely want:

  • your visual selection to always have a green background and black foreground,
  • your active statusline to always have a white background and red foreground,
  • your very own deep blue background.

Your first reflex is probably to put those lines somewhere in your vimrc:

highlight Visual cterm=NONE ctermbg=76 ctermfg=16 gui=NONE guibg=#5fd700 guifg=#000000
highlight StatusLine cterm=NONE ctermbg=231 ctermfg=160 gui=NONE guibg=#ffffff guifg=#d70000
@eshack94
eshack94 / colorscheme-override.md
Created Jan 21, 2020 — forked from romainl/colorscheme-override.md
The right way to override any highlighting if you don't want to edit the colorscheme file directly
View colorscheme-override.md

Suppose you have weird taste and you absolutely want:

  • your visual selection to always have a green background and black foreground,
  • your active statusline to always have a white background and red foreground,
  • your very own deep blue background.

Your first reflex is probably to put those lines somewhere in your vimrc:

highlight Visual cterm=NONE ctermbg=76 ctermfg=16 gui=NONE guibg=#5fd700 guifg=#000000
highlight StatusLine cterm=NONE ctermbg=231 ctermfg=160 gui=NONE guibg=#ffffff guifg=#d70000
@eshack94
eshack94 / st2vim_themes.py
Created Jan 8, 2020 — forked from jojonas/st2vim_themes.py
Converter for Sublime Text themes to VIM themes
View st2vim_themes.py
from __future__ import print_function
import sys
import argparse
import os.path
import textwrap
import re
from pprint import pprint
import xml.etree.ElementTree as ET
@eshack94
eshack94 / .gitconfig
Created Oct 27, 2019 — forked from johnpolacek/.gitconfig
My current .gitconfig aliases
View .gitconfig
[alias]
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
br = branch
brd = branch -d
brD = branch -D
merged = branch --merged
st = status
aa = add -A .
@eshack94
eshack94 / songs.md
Created Oct 23, 2019 — forked from febuiles/songs.md
Fetching lyrics in Unix
View songs.md

Fetching lyrics in the command line

Objective: Print the lyrics for the current playing song.

How: We'll create a small bash script to do the fetching for us (using curl) and then we'll display it either in the terminal or in our $EDITOR

Get the current song

First we'll need to get the name of the current song and its artist:

You can’t perform that action at this time.