Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block code2k

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am code2k on github.
  • I am code2klabs ( on keybase.
  • I have a public key ASCOEyqVvC5kvNwCaK_oRxsZXs25L2K1jtV24Ym_VvCC2wo

To claim this, I am signing this object:

code2k /
Created Jan 7, 2015
This script will cleanup your following list on Twitter. needs to be installed.
#!/usr/bin/env bash
set -o nounset
set -o errexit
KEEPFILE=`mktemp /tmp/$(basename $0).XXXXXX`
# create list with people who should not be removed in any case:
t list members $KEEPLIST | sed 's/ /\n/g' | sort -f > $KEEPFILE
code2k /
Created Oct 23, 2013
This script converts OpenMeta to OS X Mavericks tags.
# This script converts OpenMeta to OS X Mavericks tags.
# Copyright © 2013 CODE2K:LABS. All Rights Reserved.
mdfind "kMDItemOMUserTags == *" | while IFS= read -r file; do
echo "$file"
code2k / gist:2895434
Created Jun 8, 2012
logcat video camera GT-I9001 cm 7.2
View gist:2895434
/ActivityManager( 201): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 bnds=[125,416][235,534] } from pid 1794
I/ActivityManager( 201): Start proc for activity pid=13472 uid=10032 gids={1006, 1015}
I/WindowManager( 201): Setting rotation to 1, animFlags=1
I/ActivityManager( 201): Config changed: { scale=1.0 imsi=262/3 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=2 layout=34 uiMode=17 seq=35 themeResource=null}
I/ActivityManager( 201): Starting: Intent { flg=0x6000000 } from pid 13472
I/ActivityManager( 201): Starting: Intent { flg=0x6000000 } from pid 13472
E/AndroidRuntime(13472): FATAL EXCEPTION: Thread-17
E/AndroidRuntime(13472): java.lang.NullPointerException
E/AndroidRuntime(13472): at
code2k / deps.rb
Created Jun 2, 2012
Print dependency graph for
View deps.rb
#!/usr/bin/env ruby
def get_dependencies(library, indent)
if !library.match(/^\w.*\.so$/) || library.match(/^libstdc\+\$/) ||
library.match(/^$/) || library.match(/^$/) || indent == 4
for i in 0..indent-1
print(" ")
You can’t perform that action at this time.