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
//Delete unused imports | |
Ctrl Alt O | |
//Search a keyword in whole project | |
Ctrl Shift F | |
//Close a tab | |
Ctrl F4 | |
//Generate code |
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
//Set proxy environment | |
setx HTTPS_PROXY http://proxy-url:8080 | |
setx HTTP_PROXY http://proxy-url:8080 | |
//Delete a directory | |
Remove-Item ${directory} -Recurse -Force |
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
//Listing buckets | |
aws s3 ls | |
//List a bucket content | |
aws s3 ls s3://{BUCKET_NAME} | |
//Deploy a Jar file to a bucket | |
aws s3 cp {JAR_FILE} s3://{BUCKET_NAME} | |
//Create a Lambda function using s3 |
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
//Find out your Java heap memory size | |
java -XX:+PrintFlagsFinal -version | grep -iE 'HeapSize|PermSize|ThreadStackSize' | |
//Uninstall openjdk Debian | |
sudo apt-get purge openjdk-\* | |
//Uninstall openJDK RedHat | |
sudo yum remove java*-openjdk* | |
//Increace Heap Memory using jar |
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
//Print a list of all databases on the server | |
show dbs | |
//Switch or create database | |
use {database} | |
//Print a list of all collections for current database | |
db.getCollectionNames() | |
//Find all documents in the collection and returns a cursor |
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
// Calling functions dynamically | |
var str = 'fisica' | |
var actions = { | |
fisica: function() {console.log('Fisica')}, | |
moral: function() {console.log('Moral')} | |
} | |
actions[str]() |
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
//Column multyselection | |
alt shift Down | |
(Windows) hold down middle mouse button and drag | |
//Delete a row | |
ctrl shift k | |
//Find and replace in a folder | |
ctrl shift f |
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
//Install specific grails version | |
sdk install grails 3.0.9 | |
//List grails versions | |
sdk list grails |
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
//Run specific test | |
grails test-app -unit com.modulus.uno.UserServiceSpec | |
//Run all test | |
grails test-app | |
//Create controller and views from a domain class | |
grails generate-all com.modulus.uno.Telephone | |
//Create a Service |
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
//Generate a new changelog | |
dbm-generate-changelog changelog.groovy | |
//Generate a changelog | |
dbm-gorm-diff add-telephone.groovy --add | |
//Update database schema | |
dbm-update |