Skip to content

Instantly share code, notes, and snippets.

View jasonmorganson's full-sized avatar

Jason Morganson jasonmorganson

View GitHub Profile
### Keybase proof
I hereby claim:
* I am jasonmorganson on github.
* I am jasonmorganson (https://keybase.io/jasonmorganson) on keybase.
* I have a public key whose fingerprint is 1E83 845F 42FC 784C 0536 E95E C3E3 93F2 5232 22D4
To claim this, I am signing this object:
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@jasonmorganson
jasonmorganson / cvimrc
Last active August 29, 2015 14:07
cVim RC
let barposition = "bottom"
let mapleader = ","
@jasonmorganson
jasonmorganson / misc.sh
Created August 13, 2013 20:25
Misc installables
#!/usr/bin/env sh
#
#
# Run with the following command:
#
#
# wget -q -O - https://gist.github.com/jasonmorganson/4733446/raw/user.sh | sh
# wget -q -O - http://user.morganson.net | sh
@jasonmorganson
jasonmorganson / git.sh
Created August 12, 2013 18:14
Git setup and configuration
# Trust github
echo "Add github public keys to known hosts"
sudo -u $USER touch $USERHOME/.ssh/known_hosts
cat <<EOF >> $USERHOME/.ssh/known_hosts
|1|6WX8FDwncDK8tfyfkLLbvyepVRw=|15RHFpHg3GHML7eJqvNL/yVYChI= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
|1|cccEMXs7ur0u/JXs4NQYv4A9Xb8=|Pddv+wa776NKeZ4v1yMn1cZWt4s= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43J
@jasonmorganson
jasonmorganson / UML
Created April 7, 2013 16:07
Security
/* http://bramp.github.io/js-sequence-diagrams/ */
title: SSH Login Security
participant Attempt
participant iptables
participant fail2ban
participant denyhosts
participant openssh
Attempt->iptables:
iptables-->Attempt:Blacklisted
Note left of Attempt: Limit to 1 per minute
@jasonmorganson
jasonmorganson / pam.sh
Created February 23, 2013 04:40
Download and install PAM modules
function isdone() {
if [ $? -eq 0 ];then
echo "done."
else
echo ""
echo "Something went wrong!"
exit 1
fi
}
@jasonmorganson
jasonmorganson / world
Last active December 14, 2015 00:09
Gentoo world configuration
app-admin/eselect
app-admin/logrotate
app-admin/sudo
app-admin/syslog-ng
app-admin/ulogd
app-editors/nano
app-editors/vim
app-misc/ca-certificates
app-misc/pax-utils
app-misc/tmux
#!/usr/bin/env sh
# Location of executables
IPSET=/usr/sbin/ipset
IPTABLES=/sbin/iptables
# Common definitions
COMMENT="-m comment --comment"
LOG="ULOG --ulog-nlgroup 1 --ulog-prefix"
DONT_LOG=""
@jasonmorganson
jasonmorganson / user.sh
Last active August 15, 2018 18:31
User configuration
#!/usr/bin/env sh
#
#
# Run with the following command:
#
#
#   wget -q -O - https://gist.github.com/jasonmorganson/4733446/raw/user.sh | sh
#   wget -q -O - http://user.morganson.net | sh