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
# =============== # | |
# Unity generated # | |
# =============== # | |
[Tt]emp/ | |
[Oo]bj/ | |
[Bb]uild | |
/[Ll]ibrary/ | |
sysinfo.txt | |
*.stackdump | |
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
testando |
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 filter-branch --env-filter ' | |
oldname="(old name)" | |
oldemail="(old email)" | |
newname="(new name)" | |
newemail="(new email)" | |
[ "$GIT_AUTHOR_EMAIL"="$oldemail" ] && GIT_AUTHOR_EMAIL="$newemail" | |
[ "$GIT_COMMITTER_EMAIL"="$oldemail" ] && GIT_COMMITTER_EMAIL="$newemail" | |
[ "$GIT_AUTHOR_NAME"="$oldname" ] && GIT_AUTHOR_NAME="$newname" | |
[ "$GIT_COMMITTER_NAME"="$oldname" ] && GIT_COMMITTER_NAME="$newname" | |
' HEAD |
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
Android SDK | |
$ | |
wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip?hl=pt-br | |
unzip -d sdk-tools-linux-3859397.zip | |
cd tools/bin/ | |
./sdkmanager "build-tools;android-26" "platform-tools" "build-tools;26.0.2" |
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
To list any process listening to the port 8080: | |
lsof -i:8080 | |
To kill any process listening to the port 8080: | |
kill $(lsof -t -i:8080) | |
or more violently: | |
kill -9 $(lsof -t -i:8080) |
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
"use strict" | |
const fs = require("fs") | |
const path = require("path") | |
const Sequelize = require('sequelize') | |
const basename = path.basename(__filename) | |
const config = require(__dirname + '/../../config/config.js')[process.env.NODE_ENV || 'production'] | |
const sequelize = new Sequelize(config.database, config.username, config.password, config) | |
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
openssl x509 -pubkey -noout -in cert.pem > pubkey.pem |
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 | |
sudo php -f bin/magento cache:clean | |
sudo rm -rf pub/static/*; | |
sudo rm -rf var/*/*; | |
sudo php -f bin/magento setup:static-content:deploy pt_BR en_US | |
sudo chown -R :www-data . | |
sudo find ./var -type d -exec chmod 777 {} \; | |
sudo find ./pub/media -type d -exec chmod 777 {} \; |
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
mysqldump -u root -p dbname > ~/"dbname_$(date +"%Y_%m_%d_%I_%M_%p" | |
).sql" | |
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
mysqldump -u root -p --no-create-db --no-create-info DBNAME > ~/DBNAME_noddl_$(date +%Y_%m_%d_%I_%M_%p).sql |
OlderNewer