Skip to content

Instantly share code, notes, and snippets.

Hasan Keklik keklikhasan

Block or report user

Report or block keklikhasan

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
keklikhasan / .bash_profile
Created Aug 1, 2019
Common bash profile file I used
View .bash_profile
##### COMMON
alias al='vi ~/.bash_profile'
alias ap='source ~/.bash_profile'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias gradle='./gradlew'
alias ll='ls -al'
alias l='ls'
alias p='lsof -i | grep LISTEN'
keklikhasan /
Created Aug 28, 2018 — forked from sdabet/
Send simple HDMI-CEC commands from an Android app via Pulse-Eight's USB-CEC adapter
import android.hardware.usb.UsbDevice;
import android.hardware.usb.UsbDeviceConnection;
import android.util.Log;
import com.felhr.usbserial.UsbSerialDevice;
import com.felhr.usbserial.UsbSerialInterface;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
keklikhasan /
Created Jul 25, 2018
document your database via schemaspy
dt=$(date "+%Y_%m_%d_%H_%M_%s")
echo $dt
if [ -d "$folder" ]; then
mv "$folder" "${folder}_backup_$dt"
mkdir "$folder"
# for more info
docker run -v "$folder:/output" schemaspy/schemaspy:snapshot -hq -t pgsql -u postgres -db postgres -host host.docker.internal -port 5432 -all
keklikhasan /
Created Jul 25, 2018
clean docker via spotify docker-gc
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc -e REMOVE_VOLUMES=1 spotify/docker-gc
keklikhasan /
Created Jul 25, 2018
git fetch and pull all projects
# TODO get params from arguments add git command for pass prompt vs..
#trim branch
#trim working directory
#remove last '/' from working directory
View .bash_alieses
alias al='vi ~/.bash_aliases'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias ll='ls -la'
alias up='cd ..'
alias home='cd ~'
alias desktop='cd ~/Desktop'
alias dev='cd ~/dev'
alias projects='cd ~/dev/projects'
View .gitconfig
email =
name = Hasan Keklik
autocrlf = input
diff = auto
status = auto
branch = auto
You can’t perform that action at this time.