⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
# startup server | |
mongod --fork --rest --logpath=/usr/local/mongo/log/mongodb.log --logappend --dbpath=/usr/local/mongo/data/ | |
# shutdown server | |
$ ./mongo | |
> use admin | |
> db.shutdownServer() |
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
export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8" |
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/sh | |
export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4001,server=y,suspend=n" | |
mvn tomcat:run |
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
javascript: var d=document,s=d.createElement('script'); s.src='https://github.com/thiagocaiubi/twiground/raw/master/twiground-min.js'; d.head.appendChild(s) ;void(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
(function(){ | |
var AMOUNT_REGULAR_EXPRESSION = new RegExp("R\\$\\s+(\\d{0,3}\\.)*(\\d{0,3},\\d{2})"); | |
function getAmount(item) { | |
var searchResult = AMOUNT_REGULAR_EXPRESSION.exec(item); | |
if (searchResult) { | |
return searchResult[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
CALL mysql.rds_rotate_slow_log; | |
CALL mysql.rds_rotate_general_log; | |
rds-modify-db-parameter-group GROUP_PARAMETERS --parameters "name=general_log,value=true|false,method=immediate" -I KEY -S SECRET |
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 | |
mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create \ | |
-DarchetypeGroupId=org.scala-tools.archetypes \ | |
-DarchetypeArtifactId=scala-archetype-simple \ | |
-DarchetypeVersion=1.2 \ | |
-DremoteRepositories=https://oss.sonatype.org/content/groups/scala-tools/ \ | |
-DgroupId=group.id -DartifactId=artifactId |
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
#Colors | |
git config --global color.branch auto | |
git config --global color.diff auto | |
git config --global color.interactive auto | |
git config --global color.status auto | |
#User | |
git config --global user.name "Thiago Caiubi" | |
git config --global user.email thiago.caiubi@gmail.com |
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
sudo tcpdump -i en1 -n -s 1024 -A | grep YEAH |