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
if [[ -e "$1" ]];then | |
cp $1 app-debug.apk | |
rm app-debug2.apk | |
rm ~/.android/debug.keystore | |
~/android/sdk/build-tools/21.1.1/zipalign -v 4 app-debug.apk app-debug2.apk | |
keytool -genkey -v -keystore ~/.android/debug.keystore \ | |
-alias sample -keyalg RSA -keysize 2048 -validity 20000 | |
jarsigner -verbose -keystore ~/.android/debug.keystore app-debug2.apk sample | |
jarsigner -verify app-debug2.apk | |
~/android/sdk/platform-tools/adb install app-debug2.apk |
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
IPADD=$(ip addr show | grep inet) | |
echo "\S | |
Kernel \r on an \m | |
$IPADD | |
" > /etc/issue |
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 | |
function check { | |
if [ $debug = false ];then error=$($@ 2>&1);exitcode=$?;fi | |
if [ $debug = true ];then $@;exitcode=$?;fi | |
if [ $exitcode -ne 0 ] ; | |
then | |
echo $error; | |
exit $exitcode ; |
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 | |
function args { | |
d=false; | |
while getopts ":h:g:d" opt "$@"; do | |
case $opt in | |
h) | |
h=$OPTARG; | |
;; |
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
function args { | |
d=false; | |
while getopts ":h:g:d" opt "$@"; do | |
case $opt in | |
h) | |
h=$OPTARG; | |
;; | |
g) | |
g=$OPTARG; |
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 | |
ssh -l root 0.0.0.0 "mysql --host=127.0.0.1 --port=8887 --user=root --password=password --execute='exit'"; | |
exitcode1=$?; | |
if [ $exitcode1 -ne 0 ] | |
then | |
nohup ssh -l root 0.0.0.0 "nohup ssh -N -l root 0.0.0.2 -L 8887:127.0.0.1:3306 &" & | |
PID1=$!; | |
echo "1" |
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 | |
#author : Rémi Jouannet | |
#Date : 29/07/2015 | |
##################################################################################################################### | |
#before launching this script, don't forget to kill gunicorn that you may have previously launch without this script# | |
##################################################################################################################### | |
PID='/tmp/yolo_gunicorn.pid'; | |
VENV='~/venv-demo/yolo/'; | |
SRC_WWW='~/www-demo/yolo/'; |
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 | |
#author : Rémi Jouannet | |
#Date : 31/10/2015 | |
SRC_WWW="$(dirname "$0")" | |
DATE_FORMAT="%Y-%m-%d %H:%M:%S" | |
PROGRAM="demo_program" | |
#this function will execute any cmd pass to it | |
#if the exitcode of the cmd isn't 0 the script exit |
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 | |
#author : Rémi Jouannet | |
#Date : 30/10/2015 | |
which sudo;exitcode=$? | |
if [ $exitcode -ne 0 ] | |
then | |
apt-get install sudo | |
fi |
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 | |
#author : Rémi Jouannet | |
#Date : 31/10/2015 | |
SRC_WWW='"$(dirname "$0")"' | |
DATE_FORMAT="%Y-%m-%d %H:%M:%S" | |
PROGRAM="demo_project" | |
#this function will execute any cmd pass to it | |
#if the exitcode of the cmd isn't 0 the script exit |
OlderNewer