Skip to content

Instantly share code, notes, and snippets.

Avatar

Seth Calkins SethCalkins

  • United States
View GitHub Profile
@SethCalkins
SethCalkins / powerlevel9k.config
Created Sep 1, 2018 — forked from athityakumar/powerlevel9k.config
Powerlevel9k oh-my-zsh theme configuration for screenshots used in https://github.com/athityakumar/colorls
View powerlevel9k.config
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
View WindowsServer2016_Hardening.ps1
#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'
{
View PNI_Calkins.sql
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 Feb 7, 2018 — forked from giordanocardillo/README.MD
Remove Office 2016 Product Key
View README.MD
  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 Dec 29, 2017
Phil Delong 2017-12-16 1-of-96.txt
View 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 Nov 26, 2017 — forked from mlawrie/ssl_setup_example.sh
Create an SSL Certificate Signing Request on OSX with wildcard and alternate names
View ssl_setup_example.sh
# 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 Jun 19, 2017
Nested table solution
View index.html
<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>
View MacifyWindows10.txt
// 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
View remove-windows10-crap.ps1
<#
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 Apr 12, 2017 — forked from jamesrcounts/starter.txt
Boxstarter: Windows 10
View starter.cmd
# 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
You can’t perform that action at this time.