Skip to content

Instantly share code, notes, and snippets.

View quinncnl's full-sized avatar

Quinn quinncnl

  • Eindhoven
  • 12:23 (UTC +01:00)
View GitHub Profile
@quinncnl
quinncnl / tmux.cheat
Created May 22, 2017 13:00 — forked from afair/tmux.cheat
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@quinncnl
quinncnl / lldb_cheat_sheet.md
Created August 24, 2016 02:48 — forked from ryanchang/lldb_cheat_sheet.md
LLDB Cheat Sheet

LLDB Cheat Sheet

A complete gdb to lldb command map.

Print out

  • Print object
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
  • p - Print primitive type
@quinncnl
quinncnl / gist:4765db56b5db4729c3d5
Last active August 29, 2015 14:27 — forked from rgcottrell/gist:fdc7dd7cf5bc3ed61010
Thread safe shared instance "singletons" in Swift.
class Singleton {
class var sharedInstance: Singleton {
struct Static {
static var token: dispatch_once_t = 0
static var instance: Singleton!
}
dispatch_once(&Static.token) {
Static.instance = Singleton()
}
return Static.instance
//
// Geohash.swift
// mn_ios
//
// Created by Alex Bosworth on 11/26/14.
// Copyright (c) 2014 adylitica. All rights reserved.
//
import Foundation
import MapKit
@quinncnl
quinncnl / network
Last active December 18, 2015 18:59
interface=eth0
address=192.168.0.8
netmask=24
broadcast=192.168.0.255
gateway=192.168.0.1
@quinncnl
quinncnl / vsftpd.conf
Created February 20, 2013 03:14 — forked from stas/vsftpd.conf
###
# VSFTPD.CONF for virtual users with write/read/delete permissions
###
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES