Skip to content

Instantly share code, notes, and snippets.

View SethCalkins's full-sized avatar

Seth Calkins SethCalkins

View GitHub Profile
@SethCalkins
SethCalkins / note-on-osx-pingfang.md
Last active September 25, 2015 21:46 — forked from bitinn/note-on-osx-pingfang.md
A few notes on using OS X 10.11 (El Capitan)'s new Chinese font: PingFang

What's this about?

OS X 10.11, aka El Capitan, comes with a new system font for Chinese users, named PingFang, it includes 6 weights for both Simplified and Traditional Chinese. The same font also appear on iOS 9 as the default UI font, though Apple didn't mention it explicitly.

How to get it?

If you are in Apple Developer Program (costs 99 USD a year), then you can get them now at their developer resource site, otherwise you can wait for their public beta to come out in July or wait for the public release this fall (a free upgrade like previous release).

Or you can get PingFang.ttc from your developer friends, though you are probably violating its font license one way or another, but I am not a lawyer so freedom to you.

@SethCalkins
SethCalkins / material-theme.itermcolors
Created December 27, 2015 21:40 — forked from xinan/material-theme.itermcolors
Material Theme iTerm2 Port
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.25882352941176467</real>
<key>Green Component</key>
<real>0.21176470588235294</real>
@SethCalkins
SethCalkins / crack_rec.md
Last active March 30, 2017 09:35
OSX Software
一Software Crack Method
  1. Locate the corresponding version of the command
    1. Open a terminal or iterm2
  2. Close the software
  3. Run
  4. Reopen Software
Sublime Text

| Version | Command |

@SethCalkins
SethCalkins / 0_reuse_code.js
Created August 23, 2016 22:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@SethCalkins
SethCalkins / Requirements.md
Created October 13, 2016 19:02 — forked from corburn/Requirements.md
Requirements Document

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

SHALL follow the semantic versioning rules as layed out in the Semantic Versioning Specification version 2.0.0 SEMVER.

@SethCalkins
SethCalkins / wifipass.bat
Created April 12, 2017 00:02 — forked from matejskubic/wifipass.bat
Windows 10 WiFi password
netsh wlan show profiles
netsh wlan show profiles name="%1" key=clear
@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
<#
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 / 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
@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.: