Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am curtismckee on github.
  • I am curtismckee (https://keybase.io/curtismckee) on keybase.
  • I have a public key ASBTYxY_qV7dBDqCMZ-7w7bLDNSS4u_gfpvcfrcQFwLIwQo

To claim this, I am signing this object:

@curtismckee
curtismckee / init.vim
Created October 24, 2019 03:54 — forked from danmikita/init.vim
File preview with FZF, RG, Bat, and Devicons
nnoremap <silent> <leader>e :call Fzf_dev()<CR>
" ripgrep
if executable('rg')
let $FZF_DEFAULT_COMMAND = 'rg --files --hidden --follow --glob "!.git/*"'
set grepprg=rg\ --vimgrep
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>).'| tr -d "\017"', 1, <bang>0)
endif
" Files + devicons

Security Groups


aws ec2 describe-security-groups
aws ec2 create-security-group --description "Security group for Napster services." --group-name napster --vpc-id vpc-be4f5bdb sg-01c495c1e361abd30

EC2


@curtismckee
curtismckee / github-corner.less
Created April 12, 2019 03:57
Github Corner Badge
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out
}
.github-corner svg {
fill: gray;
color: #fff;
}
.github-corner:hover svg {
@curtismckee
curtismckee / git-stash.md
Last active March 9, 2021 02:46
Git Stash Cheatsheet

git stash list

  • Lists all stashes on stack.

git stash apply stash@{0}

  • Applies the changes from stash but does not delete from stack.

git stash pop stash@{3}

  • Applies the changes from stash and deletes from the stack.

git stash -m "Message goes here." -- $(git diff --staged --name-only)

@curtismckee
curtismckee / debian-security.md
Created December 3, 2018 20:28
Guideline for locking down your debian installation to be more secure.

Debian Security Guideline

Encryption/ Device Lock Down

  • Revoke GRUB shell access
  • UEFi setup menu supervisor password protected
  • All Boot devices disabled
  • LUKS hard drive encryption

TPM Module

  • Storing LUKS key and doing pre-boot integrity checks
@curtismckee
curtismckee / unix-notes.md
Last active September 14, 2019 00:27
Useful commands while working with Unix

Add User:
useradd -m -g [group] -G [additional_group] [username]

The -m flag creates /home directory for user

Expire User:
usermod --expiredate [YYYY-MM-DD] [username]

If user try to login, he or she will get the following message:

Your account has expired; please contact your system administrator Authentication failure