Skip to content

Instantly share code, notes, and snippets.

View jasonmorganson's full-sized avatar

Jason Morganson jasonmorganson

View GitHub Profile
@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 / 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 / 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 / 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 / cvimrc
Last active August 29, 2015 14:07
cVim RC
let barposition = "bottom"
let mapleader = ","
<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">
### 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:
Verifying that +jasonmorganson is my openname (Bitcoin username). https://onename.com/jasonmorganson
let event = {
indexerScript: [
1, " yard"
],
userScript: [
"Ball on",
1
],
fields: {
1: Field,
let completionengines = ['google', 'wikipedia', 'imdb', 'amazon', 'wolframalpha', 'duckduckgo']
imap <C-o> editWithVim
map <C-o> :duplicate<CR>
map af createTabbedHint
map xx x
map $ g$
map 0 g0
map qq closeTab
map gs fullImageHint
map <Space> l