This file contains hidden or 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/sh | |
filename=$(basename "$1") | |
filename=${filename%.*} | |
printf "Badr Interactive APK Signer V.1.0 \n" | |
printf "================================= \n" | |
if [ -z "$ANDROID_HOME" ]; then | |
printf "cannot find ANDROID_HOME environment variable \n" |
This file contains hidden or 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/sh | |
#COLORS | |
# Reset | |
Color_Off='\033[0m' # Text Reset | |
# Regular Colors | |
Red='\033[0;31m' # Red | |
Green='\033[0;32m' # Green | |
Yellow='\033[0;33m' # Yellow |
This file contains hidden or 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/sh | |
year=$(date +"%Y") | |
db_name="mydb_$year" | |
db_existing=$(mysql -B -e "SHOW DATABASES;" | grep "$db_name" | sed '$!d') | |
# test if db_name is exist on db. if true, generate another name | |
if [ ! -z $db_existing ]; then | |
db_name="$db_name""_"$(date +"%s") | |
fi |
This file contains hidden or 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
call plug#begin() | |
Plug 'artur-shaik/vim-javacomplete2' | |
Plug 'sbdchd/neoformat' | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'shougo/denite.nvim' | |
Plug 'majutsushi/tagbar' | |
Plug 'airblade/vim-rooter' | |
Plug 'scrooloose/nerdtree' |