This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# TODO get params from arguments add git command for pass prompt vs.. | |
WORKING_DIRECTORY="[WORKING_DIRECTORY]" | |
TARGET_BRANCH="develop" | |
#trim branch | |
TARGET_BRANCH="$(echo $TARGET_BRANCH| xargs)" | |
#trim working directory | |
WORKING_DIRECTORY="$(echo $WORKING_DIRECTORY| xargs)" | |
#remove last '/' from working directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dt=$(date "+%Y_%m_%d_%H_%M_%s") | |
echo $dt | |
folder="[PATH]/schmaspy" | |
if [ -d "$folder" ]; then | |
mv "$folder" "${folder}_backup_$dt" | |
fi | |
mkdir "$folder" | |
# for more info http://schemaspy.org/ | |
docker run -v "$folder:/output" schemaspy/schemaspy:snapshot -hq -t pgsql -u postgres -db postgres -host host.docker.internal -port 5432 -all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### COMMON | |
export PROFILE_FILE='~/.zshrc' # for zshrc | |
#export PROFILE_FILE='~/.bash_profile' # for bash | |
alias al="vi $PROFILE_FILE" | |
alias ap="source $PROFILE_FILE" | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias grep='grep --color=auto' | |
alias gradle='./gradlew' | |
alias ll='ls -al' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc -e REMOVE_VOLUMES=1 spotify/docker-gc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = keklikhasan@gmail.com | |
name = Hasan Keklik | |
[core] | |
autocrlf = input | |
excludesfile = /Users/h.keklik/.gitignore_global | |
[color] | |
diff = auto | |
status = auto | |
branch = auto |