Skip to content

Instantly share code, notes, and snippets.

View jansendotsh's full-sized avatar
🎃
Spoopy

Garrett Jansen jansendotsh

🎃
Spoopy
View GitHub Profile
@jansendotsh
jansendotsh / vimrc
Last active June 1, 2017 15:47
My rolling vimrc file
set nocompatible
set t_Co=256
set laststatus=2
set showtabline=2
set noshowmode
execute pathogen#infect()
call pathogen#helptags()
syntax on
set background=dark
filetype plugin indent on
@jansendotsh
jansendotsh / apa.tex
Last active March 15, 2019 07:15
APA LaTeX template
% APA 6th edition LaTeX template. Use this as a basis for writing documents that have to meet guidelines for the American Psychological Association. This has been optimized for "man" option, or manuscript format, which outputs a double-spaced, single column document that is designed for coursework or journal submissions. The inline comments assume you have some minimal working knowledge of LaTeX. Further, this is currently set up for managing references with biblatex and biber.
% To be clear, this template is not endorsed by the American Psychological Association, the maintainers of the apa6 document class for LaTeX, or anyone else of great importance. For more documentation on using apa6, refer to its page at CTAN <http://www.ctan.org/tex-archive/macros/latex/contrib/apa6>.
% ==============================================================
% Copyright (C) 2015 Jacob Long
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public
#!/bin/bash
USERNAME=garrettjj
mkdir -p ~/.ssh
if ! [[ -f ~/.ssh/authorized_keys ]]; then
echo "Creating new ~/.ssh/authorized_keys"
touch ~/.ssh/authorized_keys
fi
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC2QmkAnre0CrePyR6I0GCLtZmCW1rm/v3MWhxKa5MyDBc24nAr/v+eVTVeP0CncT46QHd6emzCyifwvV4Ui8luRnTkU62VGdqp76psWhOe+LWI5YhPPSDqHewoMZMA3SkK5L1K/xFFYbUvdGzCeOOiTXWAGC1y4KDDqU0hNbxaK5JjPNszPYju+I3vhj2C3dmK5hpSWd0lO+LT57m5KBpKV3U29O9F6hW1W5ePvzQtOchphlKZDiB5hOUPnDCUcBjV5zQcb5MpIbyfM47hp2fakN5G3i9RrG15KK5TADs5zqfSzZIz9OYLij18Z7Nsic9U6Fa5f5KhtrddXkcMm/ntQ86aEOm0B2OZjp3syCs+HbopI9EobjnK01q1sIcZEm4GA293XpOncf6v9g0yrRCpMwLWf85taAzJ+DOC+sFIlvjFSY29LSsQkehBXeskx88ch9lIuFJbBbPBZb8mhA6GOka0O4yIkD48cl1tTiVQz2WwmnJzjLdTU7lQYYbbawkU6cGGFUYBSOhggUMS+BuxcgaihKW+M3WYrkJaPRU5w1HS2tdVoAy+jjxoIwdhSo7q2hBlRYeht6BxzrZOUXs1/7kZgXJfeuuUmb+YOlZZDWO8W6fVU/EedZBNjvfDFz9gu+bLalUO/6bX8w9FQzBgmODuW61SUqNQZ7nai+m4rQ==
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDAfqa/mi4dqWZ0yYqULZoWbj0poCRA+veb1BWMrZlnLmkc14MsfYbLcVII61bT0WJ5OQXGwdUxPiQzNoBvnUHWNDKAssJKf9cP1GFiHelKbhKFnx4r0QIrF+AaQTdpzgSwAMVPG6WBfQNXu4pxbZbIePwAEm+x0lVKuDDHtG+vnZA0dJMsCdvOwCcaWK9CO6BXcW69+2ZjNFbScTfINlyepTLxNnqd1JEiA3Yr7QljfPMK1Zh9lgSKg94e2Xnh8/xbeAN
@jansendotsh
jansendotsh / hello-friend.sh
Created September 23, 2019 19:57
hello-friend.sh
#!/bin/bash
touch /root/hello-friend.md
@jansendotsh
jansendotsh / keybase.md
Created November 13, 2019 01:37
keybase.md

Keybase proof

I hereby claim:

  • I am jansendotsh on github.
  • I am garrettj (https://keybase.io/garrettj) on keybase.
  • I have a public key ASBKBqnrRgxmPjyjr-JXufMNZXLG8Mh69Em_N-GYcc3gKgo

To claim this, I am signing this object:

#!/bin/bash
# Variables
DO_TOKEN=SANITIZED
EFF_EMAIL="garrett@jansen.sh"
CUSTOM_DOMAIN="s.jnsn.link"
CFLARE_EMAIL=SANITIZED
CFLARE_TOKEN=SANITIZED
# Check to see if certbot directories have been made here before
map cg shell bash -c "git add %s"
map ch shell bash -c "git diff"
map cj shell bash -c "git commit"
map ck shell -w read -p "Commit message: " msg && bash -c "git commit -m $msg"
➜ Git wget https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_linux_amd64.zip
--2020-05-23 08:56:33-- https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_linux_amd64.zip
Resolving releases.hashicorp.com (releases.hashicorp.com)... 151.101.53.183, 2a04:4e42:d::439
Connecting to releases.hashicorp.com (releases.hashicorp.com)|151.101.53.183|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 37207074 (35M) [application/zip]
Saving to: ‘vagrant_2.2.9_linux_amd64.zip’
vagrant_2.2.9_linux_amd64.zip 100%[========================================================================================================================================>] 35.48M 84.5MB/s in 0.4s
@jansendotsh
jansendotsh / fuckoff.html
Created August 22, 2020 02:59
Default page for servers that shouldn't be looked at.
<head>
<style>
.container {
position: absolute;
top: 50%;
left: 50%;
-moz-transform: translateX(-50%) translateY(-50%);
-webkit-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
}