Skip to content

Instantly share code, notes, and snippets.

# Who am I?
git config --global user.name "Ian Lee"
git config --global user.email "IanLee1521@gmail.com
# Random Settings
git config --global color.ui always
git config --global http.sslVerify true
git config --global core.excludesfile ~/.gitignore
git config --global core.editor vim
git config --global push.default simple
@IanLee1521
IanLee1521 / foo.sh
Created July 27, 2017 03:37
Get pshtt commit history stats
#! /bin/bash
git clone git@github.com:dhs-ncats/pshtt.git && cd pshtt
git checkout 00ff246f40acbea185d478d838c7fcd6652b9aa8
git log --pretty=oneline | wc -l
# 292
git log --numstat --pretty="%H"| awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}'
# +6944, -5163
@IanLee1521
IanLee1521 / sans-sec-401-exfil.sh
Last active December 16, 2016 15:45
SANS SEC 401 - Exfiltration Example
#! /bin/bash
# Create file
echo "Input string to exfiltrate:"
read secret
echo $secret > secret.txt
# Hash file
md5sum secret.txt > secret.txt.hash
sha1sum secret.txt >> secret.txt.hash
@IanLee1521
IanLee1521 / code.json
Last active April 23, 2018 22:20
Code.gov code.json file for DOE LLNL projects
{
"agency": "DOE",
"measurementType": {
"ifOther": "",
"method": "other"
},
"releases": [
{
"contact": {
"URL": "https://github.com/LLNL",
@IanLee1521
IanLee1521 / Package Control.sublime-settings
Created February 24, 2015 07:20
Package Control Settings for Sublime Text 3
{
"installed_packages":
[
"Alignment",
"Anaconda",
"BracketHighlighter",
"CMake",
"Djaneiro",
"DocBlockr",
"Emmet",
@IanLee1521
IanLee1521 / Preferences.sublime-settings
Last active August 29, 2015 14:16
User Preferences for Sublime Text 3
{
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 500,
"color_scheme": "Packages/User/Monokai (SL).tmTheme",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"pylint_*.txt",