Skip to content

Instantly share code, notes, and snippets.

View SethCalkins's full-sized avatar

Seth Calkins SethCalkins

View GitHub Profile
@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 / LittleSnitch_Block_List.md
Last active January 5, 2023 05:17
Little Snitch Script to block Ad Servers

Here is a script to take the hosts from From http://pgl.yoyo.org/adservers/ and convert them to rules for Little Snitch.

It has options to grab the entire list or grab new entries past a certain date.

Just grab the output and copy/paste into Little Snitch.

The script is written to block access to any process, any port. You can also delete those lines and it will only block Mail. Or use the options to enter any process, port or protocol you want to block.

Source

The best way to store your dotfiles: A bare Git repository

Disclaimer: the title is slightly hyperbolic, there are other proven solutions to the problem. I do think the technique below is very elegant though.

Recently I read about this amazing technique in an [Hacker News thread][1] on people's solutions to store their [dotfiles][2]. User StreakyCobra [showed his elegant setup][3] and ... It made so much sense! I am in the process of switching my own system to the same technique. The only pre-requisite is to install [Git][4].

In his words the technique below requires:

@SethCalkins
SethCalkins / .md
Created December 11, 2016 07:37
Fix for .app "is damaged and can't be opened"

This is a fix for MAC OS Complaining about Damaged App

Run Following on Application

Example

xattr -rc /Applications/MyApp.app
/Applications/Chatology.app/Contents/MacOS/Chatology:	file format Mach-O 64-bit x86-64

Mach header
      magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64  X86_64        ALL LIB64     EXECUTE    38       5032   NOUNDEFS DYLDLINK TWOLEVEL PIE
Load command 0
      cmd LC_SEGMENT_64
  cmdsize 72
@SethCalkins
SethCalkins / DockerFix.md
Created January 31, 2017 14:16
Fix for macOS 10.12 Docker Start Problem w/ Helper

sudo launchctl load -wF /Library/LaunchDaemons/com.docker.vmnetd.plist

@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