Skip to content

Instantly share code, notes, and snippets.

View kogir's full-sized avatar

Nick Sivo kogir

  • Denver, CO, USA
View GitHub Profile
@kogir
kogir / configuration.xml
Last active May 14, 2017 01:36
Slimmer Office 365
<!--
First, download the Office 2016 Deployment Tool from https://www.microsoft.com/en-us/download/details.aspx?id=49117
Then update this XML file:
* Update OfficeClientEdition to 32 for 32-bit, and 64 for 64-bit. Most users will want 32.
* Replace Product ID with correct value for your subscription, from https://support.microsoft.com/en-us/kb/2842297
* Scan the full documentation for more options: https://technet.microsoft.com/en-us/library/jj219426.aspx
Now, run the Deployment Tool. You don't need to uninstall first.
@kogir
kogir / HN ZFS Hang
Created February 16, 2015 23:01
procstat -kk -a
Last login: Mon Feb 16 20:04:37 2015 from 12.23.34.45 via mosh [1028]
FreeBSD 9.3-RELEASE-p9 (GENERIC) #0: Tue Jan 27 10:43:40 UTC 2015
____________________________________
< Welcome to the Hacker News server. >
------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
@kogir
kogir / zfs-stathat.awk
Last active August 29, 2015 14:03
ZFS StatHat
BEGIN {
FS = "\t";
print "{\n \"ezkey\": \"<key>\",\n \"data\": [";
}
{ COMMA = ""; }
NR > 1 { COMMA = ","; }
$2 == "available" && match($1, "/") == 0 {
@kogir
kogir / Still Can't Access Hacker News.md
Created October 30, 2013 18:04
Still Can't Access Hacker News?

Still Can't Access Hacker News?

Back Story:

Last night our old IP address became unroutable. We've since swtiched to a new one, and updated DNS. You shouldn't still be seeing timeouts, but some ISPs' caching name servers aren't observing our 30 minute TTL.

What Can You Do?

  1. Restart your computer, your router, and your WLAN link.
@kogir
kogir / aero-restore-state.sh
Last active December 16, 2015 09:59
Simple sync scripts for symlinks in AeroFS. Create and run them from the root of your AeroFS folder.
#!/bin/bash
tar -xzf .aero-meta/symlinks.tgz
rm .aero-meta/symlinks.tgz
cat .aero-meta/exec.list | xargs -0 chmod +x
rm .aero-meta/exec.list
rm -rf .aero-meta
@kogir
kogir / GithubLauncher.cmd
Created May 9, 2012 22:14
Github Launcher
@ECHO OFF
REM Launches Github For Windows and then deletes the Git Shell desktop shortcut.
REM We don't want our pesky window to be visible the whole time.
IF "Continue"=="%1" (
GOTO Continue
)
START "Github Launcher" /MIN %0 Continue
GOTO EXIT
@kogir
kogir / gist:2638011
Created May 8, 2012 17:59
Sam on Garbage Collection

GARBAGE COLLECTING

##1. REFERENCE COUNTING * Keep a count of the number of pointers to each object, incrementing/decrementing it as variable come in/go out of scope.

##2. CYCLE DETECTION * Use any one of various methods in the literature to detect cyclical references.

##3. FREEING UNUSED MEMORY

  • Periodically, go through the memory use table and free all objects with reference count 0.