mkdir -p ~/opt/packages/gradle && cd $_
wget https://services.gradle.org/distributions/gradle-3.1-all.zip
unzip gradle-3.1-all.zip
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
cd openwebnet-android | |
# lists all remotes | |
git remote -v | |
# add my remote to your repo (SSH) | |
git remote add niqdev [email protected]:openwebnet/openwebnet-android.git | |
# verify | |
git remote -v |
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
npm install -g npm-check-updates | |
npm-check-updates -u | |
npm install |
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
git clone https://github.com/openwebnet/openwebnet-site.git | |
cd openwebnet-site/ | |
mkdir dist | |
cd dist | |
echo "Hello World" > index.html | |
echo "openwebnet.xyz" > CNAME | |
cat index.html | |
cat CNAME | |
cd .. | |
git add . |
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
cd redux-timeout/ | |
# lists all remotes | |
git remote -v | |
# add another remote (SSH) | |
git remote add gpfunk [email protected]:gpfunk/redux-timeout.git | |
git remote -v | |
git fetch -p |
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
# lists/enumarates all angular application module | |
var allModules = angular.module('myApplication').requires; | |
# lists/enumarates all angular module service/controller/directive ... | |
angular.module('myApplication')['_invokeQueue'].forEach(function(value) { | |
console.log(value[1] + ": " + value[2][0]); | |
}); |
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
lsof -i -n -P | grep TCP |
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
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
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/env python | |
""" | |
sudo easy_install pip | |
pip search pypdf | |
sudo pip install PyPDF2 | |
chmod u+x pdf_meta.py | |
python pdf_meta.py | |
""" |
NewerOlder