Skip to content

Instantly share code, notes, and snippets.

View kimyoutora's full-sized avatar

Kang Chen kimyoutora

  • Twitter, formerly Posterous
  • San Francisco, CA, USA
View GitHub Profile

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@shepting
shepting / .lldbinit
Created June 13, 2014 01:10
Sample LLDBInit
# Print all the views in the window
command regex rd 's/^[[:space:]]*$/po [[[UIApplication sharedApplication] keyWindow] recursiveDescription]/' 's/^(.+)$/po [%1 recursiveDescription]/'
# Print all the view controllers in the window
command regex rvc 's/^[[:space:]]*$/po [[[UIApplication sharedApplication] keyWindow] recursiveDescription]/' 's/^(.+)$/po [%1 _viewControllerForAncestor]/'
# Print an autolayout trace
command alias at expr -o -- [[UIWindow keyWindow] _autolayoutTrace]
# Load the dynamic code for Reveal
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 22, 2024 17:28
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@vincentchu
vincentchu / grr.sh
Created April 27, 2012 18:10
Growlnotifies you when your long running command is finished
#!/bin/bash
$@
if [ "$?" = "0" ]
then
growlnotify --image /Users/vince/bin/images/doom_succ.png --message "$1" Command Succeeded!
else
growlnotify --image /Users/vince/bin/images/doom_fail.png --message "$1" Command Failed!
fi
@mislav
mislav / aprompt.png
Last active February 11, 2024 06:40
My zsh prompt. No oh-my-zsh needed
aprompt.png
@tjhanley
tjhanley / ETag and Deflate Settings
Created March 10, 2011 19:01
Here are my goto settings for Apache Etags and Deflate filter
# etag configuration:
FileETag MTime Size
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ \
no-gzip dont-vary
SetEnvIfNoCase Request_URI \
\.(?:exe|t?gz|zip|bz2|sit|rar)$ \
no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
#!/bin/sh
#
# init.d script with LSB support.
#
# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
#
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.