Skip to content

Instantly share code, notes, and snippets.

View phouverneyuff's full-sized avatar

Paulo Henrique phouverneyuff

  • Sao Paulo, SP
View GitHub Profile
@phouverneyuff
phouverneyuff / generate-all-icons-size-android.sh
Last active February 7, 2016 17:12
generate-all-icons-size-android.sh
#!/bin/bash
INKSCAPE="/usr/bin/inkscape"
OPTS="--without-gui --export-background-opacity=0"
if [ -z $1 ]; then
echo "File not found"
exit 0
fi
JHIPSTER_LOCATION=/mnt/dados/projetos/generator-jhipster
mkdir -p ${JHIPSTER_LOCATION}
cd ${JHIPSTER_LOCATION}
git checkout master
git pull jhipster master
git push
git checkout develop
git merge master develop
git push
JHIPSTER_LOCATION=/mnt/dados/projetos/generator-jhipster-ci
mkdir -p ${JHIPSTER_LOCATION}
cd ${JHIPSTER_LOCATION}
git checkout master
git pull jhipster master
git push
npm link
if [ -z $1 ]; then
echo "Version not informed. E.G: './update-gradle.sh 2.8'"
exit 0
fi
GRADLE_VERSION=$1
GRADLE_FILE=gradle-${GRADLE_VERSION}-bin
GRADLE_LOCATION=/opt/gradle
@phouverneyuff
phouverneyuff / gist-upload
Last active May 4, 2019 16:29
gist-upload
#!/bin/bash
# Upload a file informed to gist.github.com. Before use, install gist 'gem install gist' - https://github.com/defunkt/gist and login with gist --login
if [ -z $1 ]; then
echo "File not informed. E.G: 'gist-upload file1.txt'"
exit 0
fi
FILE=$1
BASENAME=$(basename -- $1)
mkdir -p ~/.nvm
cd ~/.nvm
git pull origin master
git checkout `git describe --abbrev=0 --tags`
JAVA_HOME=/usr/java/latest
export JAVA_HOME
M2_HOME=/opt/apache-maven-3.2.3
export M2_HOME
GRADLE_HOME=/opt/gradle/latest
export GRADLE_HOME
ANDROID_SDK=/opt/android-sdk-linux
export ANDROID_SDK
PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools
export PATH
#!/bin/bash
/mnt/dados/programs/cloud9/server.js -p 45789 -w .
#!/bin/bash
INKSCAPE="/usr/bin/inkscape"
OPTS="--without-gui --export-background-opacity=0"
if [ -z $1 ]; then
echo "File not found"
exit 0
fi