Skip to content

Instantly share code, notes, and snippets.

Ahmet Alp Balkan ahmetb

Block or report user

Report or block ahmetb

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
View -
disable_root: false
manage_etc_hosts: true
# The modules that run in the 'init' stage
- migrator
- ubuntu-init-switch
- seed_random
- bootcmd
ahmetb /
Created Feb 17, 2013
Quick SLoC counter in CLI
# Counts source lines of code in current directory. Replace *.java with your source extension.
# (ignores empty lines)
find . -type f -name '*.java' -exec cat {} \; | sed '/^\s*$/d' | wc -l
# to ignore comments (in languages where comments start with #)
find . -type f -name '*.java' -exec cat {} \; | sed '/^\s*#/d;/^\s*$/d' | wc -l
ahmetb / quora hack
Created Jul 13, 2013
clicks "Ask To Answer" Load More link a lot of times and finds people "Free to Ask" and clicks that button as well. I use that to get some initial free traction on my Quora questions.
View quora hack
var TOTAL_PAGES = 30;
var VOTING_INTERVAL = 10*1000;
var k = 0;
var l = setInterval(function(){
console.log('Loaded page ' + (++k));
ahmetb / tr.yml
Last active Dec 21, 2015 — forked from soffes/en.yml Turkish strings
View tr.yml
comment_on_twitter: "Twitter'da Yorum Yaz"
older: 'Daha Eskiler'
newer: 'Daha Yeniler'
feed: 'Feed'
share: 'Paylaş'
next_post: 'Sonraki Yazı'
previous_post: 'Önceki Yazı'
no_posts: 'Henüz bir yazı yazılmamış.'

Keybase proof

I hereby claim:

  • I am ahmetalpbalkan on github.
  • I am alp ( on keybase.
  • I have a public key whose fingerprint is BF91 C773 DD1E 2E87 AFE9 616F F84A 66B2 CBC2 9F60

To claim this, I am signing this object:

ahmetb / domains
Created Aug 26, 2012
List of domain names I discovered (bulabildigim kadariyla bir alan adlari listesi)
View domains
3158 GOV.TR domain names

Keybase proof

I hereby claim:

  • I am ahmetb on github.
  • I am alp ( on keybase.
  • I have a public key ASB3Us2SJzEmVMqSFuc4nHcOh1xbv3QZfwp0Izayulo8vgo

To claim this, I am signing this object:

ahmetb /
Created May 27, 2018
BSD grep segmentation fault

I'm getting garbage characters on my screen and eventually segmentation fault from BSD grep "2.5.1-FreeBSD".


Download attached files and run:

/usr/bin/grep -E --color -f dirs_pattern.txt rp_dirs_used_in_deps.txt
ahmetb /
Created Dec 18, 2017 — forked from andreyvit/
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a
ahmetb / probe.go
Created Aug 28, 2019
View probe.go
// Package handler (directory named 'api/') is recognized
// by ZEIT Now v2 Lambda platform.
package handler
import (
func init() { log.SetFlags(log.Lmicroseconds) }
You can’t perform that action at this time.