Skip to content

Instantly share code, notes, and snippets.

@kevinelliott
kevinelliott / osx-10.11-setup.md
Last active Jun 14, 2021
Mac OS X 10.11 El Capitan Setup
View osx-10.11-setup.md

Mac OS X 10.11 El Capitan

Custom recipe to get OS X 10.11 El Capitan running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.10 Yosemite setup recipe (as found on this gist https://gist.github.com/kevinelliott/0726211d17020a6abc1f). Note that I expect this to change significantly as I install El Capitan several times.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

@cybertk
cybertk / NSData+HexString.swift
Created Aug 13, 2015
Print NSData into Hex format
View NSData+HexString.swift
//
// NSData+HexString.swift
// Cybertk
//
// Created by Quanlong He on 8/14/15.
// Copyright © 2015 Quanlong He. All rights reserved.
//
import Foundation
@cybertk
cybertk / git-copy
Last active Aug 29, 2015
Copy a remote git repo to another remote destination
View git-copy
#!/bin/sh
#
# Copy a remote git repo to another remote destination
# https://gist.github.com/cybertk/8a61ed9aca71a66cd711
#
# Copyright (C) 2015 Quanlong <kyan.ql.he@gmail.com>
set -e
# Options validation
@masonforest
masonforest / Dockerfile
Last active Mar 18, 2020
Test Drive Your Dockerfiles with RSpec and ServerSpec
View Dockerfile
FROM ubuntu:14.04
MAINTAINER Mason Fischer <mason@thoughtbot.com>
RUN apt-get update && apt-get install -y nodejs
@ttscoff
ttscoff / Automator Workflow.sublime-build
Last active Oct 22, 2018
A script to take input on STDIN and update a specified Automator (OS X) workflow action with it
View Automator Workflow.sublime-build
{
"shell_cmd": ["cat", "$file", "|", "/usr/bin/ruby", "/Users/ttscoff/scripts/update_workflow.rb"]
}
@frdmn
frdmn / osx-10-10-virtualbox.md
Last active Aug 2, 2021
Install OS X 10.10 Yosemite in VirtualBox
View osx-10-10-virtualbox.md
@cybertk
cybertk / mocha_runtime_tests.coffee
Created Sep 11, 2014
Create mocha test/suite at runtime
View mocha_runtime_tests.coffee
require('chai').should()
Mocha = require 'mocha'
Test = Mocha.Test
Suite = Mocha.Suite
mocha = new Mocha
suite = Suite.create mocha.suite, 'I am a dynamic suite'
suite.addTest new Test 'I am a dynamic test', ->
true.should.equal true
@cybertk
cybertk / md_github_issue_link.py
Last active Aug 29, 2015
Render github issue with link
View md_github_issue_link.py
@bzerangue
bzerangue / macs-on-active-directory.md
Last active Aug 2, 2021
Binding and Unbinding to Active Directory from Mac OS via Command Line
View macs-on-active-directory.md

Binding and Unbinding to Active Directory from Mac OS via Command Line

  • Open the Terminal Application
  • Type in sudo -i and type in your Mac Administrator account password. sudo gives you root level or administrator level privileges.

To View current Active Directory Settings

dsconfigad -show

To Unbind a Computer from an Active Directory Domain

@kavu
kavu / example.go
Created Sep 28, 2013
Minimal Golang + Cocoa application using CGO. Build with `CC=clang go build`
View example.go
package main
/*
#cgo CFLAGS: -x objective-c
#cgo LDFLAGS: -framework Cocoa
#import <Cocoa/Cocoa.h>
int
StartApp(void) {
[NSAutoreleasePool new];