Skip to content

Instantly share code, notes, and snippets.

kecebongsoft kecebongsoft

Block or report user

Report or block kecebongsoft

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
@kecebongsoft
kecebongsoft / ga_aggregate_report
Created Jan 10, 2013
Aggregates number of page views from individual URLS based on arguments in GA. Uses CSV.
View ga_aggregate_report
import operator
import csv
import sys
import re
source = sys.argv[1]
output = sys.argv[2]
column = sys.argv[3]
reader = csv.reader(open(source, 'rb'), delimiter=',', quotechar='"')
@kecebongsoft
kecebongsoft / gist:3051434
Created Jul 5, 2012
Bash: Copy files with list of excluded files.
View gist:3051434
Say you need to copy files in a folder to somewhere else, except that you have a list of files that might be exist in the source folder but you don't want them to be copied. Your text file that has this list is named list.txt:
------------------------
exclude1.mp3
dont_copy.mpeg
nyancat.jpg
------------------------
$ cd source/
$ cat /path/to/list.txt | tr '\n' '#' | sed 's/.$//g' | sed 's/#/\\\\|/g' | xargs -i sh -c "ls | grep -v '{}'" | xargs -i cp -v -u {} /path/to/dest/
@kecebongsoft
kecebongsoft / gist:1809045
Created Feb 12, 2012
vim relocate swap & undo files
View gist:1809045
set dir=~/.vim/swaps//,/var/tmp//,/tmp//,.
set undodir=~/.vim/undos//,/var/tmp//,/tmp//,.
@kecebongsoft
kecebongsoft / gist:1809013
Created Feb 12, 2012
VIM indent/outdent with tab
View gist:1809013
vnoremap <silent><S-TAB> <gv
vnoremap <silent><TAB> >gv
@kecebongsoft
kecebongsoft / 10fastfinger_bot.js
Created Dec 22, 2011
BOT for 10fastfingers, automatic typing with adjustable speed
View 10fastfinger_bot.js
/*
* BOT for 10fastfingers, automatic typing with adjustable speed
* ================================================================
*
* bored in my apartment and decided to hack this game: http://indonesian-speedtest.10fastfingers.com/
* just start the game, when you're ready to type, DON'T TYPE ANYTHING, open up
* your Developer Tools in Chrome (CTRL+SHIFT+J) and click Console tab, and
* then paste the whole code below, then press enter, and enjoy the show.
*
* twitter.com/kecebongsoft
@kecebongsoft
kecebongsoft / gist:1291857
Created Oct 17, 2011
GVIM custom background
View gist:1291857
style "vim-background" {
bg[NORMAL] = "#202020"
}
widget "vim-main-window.*.GtkForm" style "vim-background"
View gist:1290777
def __init__(self, *args, **kwargs):
print "Hello world"
You can’t perform that action at this time.