Skip to content

Instantly share code, notes, and snippets.

View SethCalkins's full-sized avatar

Seth Calkins SethCalkins

View GitHub Profile
@SethCalkins
SethCalkins / powerlevel9k.config
Created September 1, 2018 20:53 — forked from athityakumar/powerlevel9k.config
Powerlevel9k oh-my-zsh theme configuration for screenshots used in https://github.com/athityakumar/colorls
export ZSH=$HOME/.oh-my-zsh
export DEFAULT_USER='athityakumar'
TERM=xterm-256color
ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_MODE='awesome-fontconfig'
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
#requires -Version 4.0
<#
Author: Luke Murray (Luke.Geek.NZ)
Version: 0.1
Purpose: Windows Server 2016 Baseline Hardening using DSC per DoD DISA STIG recommendations 22/06/18.
#>
Configuration 'Server2016'
{
@SethCalkins
SethCalkins / PNI_Calkins.sql
Created March 5, 2018 17:05
PNI_SCalkins_Project
CREATE TABLE IF NOT EXISTS account (
id integer PRIMARY KEY AUTOINCREMENT,
username text COLLATE NOCASE NOT NULL,
service text NOT NULL,
name text COLLATE NOCASE,
name_update_date integer
);
CREATE INDEX IF NOT EXISTS username_index ON account (username);
@SethCalkins
SethCalkins / README.MD
Created February 7, 2018 14:19 — forked from giordanocardillo/README.MD
Remove Office 2016 Product Key
  1. Open a command prompt as Administrator
  2. In the command prompt, type the following:
  • Office 2016 (32-bit) on a 32-bit version of Windows

    cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus

  • Office 2016 (32-bit) on a 64-bit version of Windows

    cscript "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /dstatus

  • Office 2016 (64-bit) on a 64-bit version of Windows

@SethCalkins
SethCalkins / Phil Delong 2017-12-16 1-of-96 .txt
Created December 29, 2017 21:41
Phil Delong 2017-12-16 1-of-96.txt
Chat on 12/16/17 at 7:09 AM
(7:09 AM) Lindsay Welch: Well I feel like a wuss because I’m nervous to be in the dark going in early.
(7:09 AM) Phil Delong: Are you there yet?
(7:09 AM) Lindsay Welch: Not yet
(7:10 AM) Phil Delong: I won’t ask you to do this again, I feel bad that you’re nervous.
(7:11 AM) Lindsay Welch: You didn’t ask me.
(7:12 AM) Lindsay Welch: I’d like to be comfortable to go in early regularly because I need to get shit done
(7:13 AM) Phil Delong: I certainly know that feeling. Well I’m here so you aren’t alone, just do what I said before you go in.
(7:14 AM) Lindsay Welch: Did you get some sleep?
@SethCalkins
SethCalkins / ssl_setup_example.sh
Created November 26, 2017 04:51 — forked from mlawrie/ssl_setup_example.sh
Create an SSL Certificate Signing Request on OSX with wildcard and alternate names
# First, generate the key. You will be prompted to enter a password, but we will strip it out in the next step:
openssl genrsa -des3 -out server.orig.key 2048
# Then, stip out the password:
openssl rsa -in server.orig.key -out server.key
# Edit the OSX openssl config file to include your alternate names.
# Edit the 'subjectAltName' field. E.g.:
@SethCalkins
SethCalkins / index.html
Created June 19, 2017 20:31
Nested table solution
<div class="container">
<table class="accordion-table">
<thead>
<tr>
<th class="expand"></th>
<th>Package No.</th>
<th>Weight (lbs)</th>
<th>Dimensions (in)</th>
<th>Value (USD)</th>
@SethCalkins
SethCalkins / MacifyWindows10.txt
Created April 12, 2017 00:03 — forked from Griffingj/MacifyWindows10.txt
Macify Windows 10
// Set the horiztal and vertial scrolling to inverse of Windows  
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopHScroll -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopHScroll 1 }
// Install Scoop Package Manager
set-executionpolicy unrestricted -s cu
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
scoop install curl 7zip git grep touch pshazz openssh
<#
This is a helpful script that will remove the default Windows 10 garbage from your computer
* Comment out any apps that you might want to keep
* Don't forget to run as admin
#>
# 3d Builder
@SethCalkins
SethCalkins / starter.cmd
Created April 12, 2017 00:02 — forked from jamesrcounts/starter.txt
Boxstarter: Windows 10
# http://boxstarter.org/package/url?
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
choco install googlechrome
choco install sublimetext3
choco install console2
choco install git.install -params '"/GitOnlyOnPath /NoAutoCrlf"'
choco install git-credential-winstore
choco install poshgit
choco install beyondcompare