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 Brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Install Software from Brew | |
- switchaudio-osx | |
- springboot | |
- maven | |
# Install Software from Brew Cask | |
- iterm2 |
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
Ctrl + a – go to the start of the command line | |
Ctrl + e – go to the end of the command line | |
Ctrl + k – delete from cursor to the end of the command line | |
Ctrl + u – delete from cursor to the start of the command line | |
Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word) | |
Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor | |
Ctrl + xx – move between start of command line and current cursor position (and back again) | |
Alt + b – move backward one word (or go to start of word the cursor is currently on) | |
Alt + f – move forward one word (or go to end of word the cursor is currently on) | |
Alt + d – delete to end of word starting at cursor (whole word if cursor is at the beginning of word) |
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 recursive in file | |
svn propset svn:ignore -F svnignore . | |
# Remove all svnignore command recursively | |
svn propdel svn:ignore -R . | |
# Set global ignore in $HOME/.subversion/config | |
[miscellany] | |
global-ignores = *.o *.so *.so.[0-9]* .DS_Store [Tt]humbs.db |
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
HttpClientContext clientContext = HttpClientContext.create(); | |
// clientContext.setCredentialsProvider(credentialsProvider); | |
// clientContext.setAuthCache(authCache); | |
HttpPost post = new HttpPost(endpointUri); | |
HttpEntity entity = MultipartEntityBuilder.create() | |
.addBinaryBody("file", inputStream, ContentType.create("application/octet-stream"), fileName) | |
.build(); | |
post.setEntity(entity); |
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
/* Sqlplus */ | |
`ORACLE_SID=<SID> ORACLE_HOME=/oracle/CWDB01/product/12.1.0 /oracle/CWDB01/product/12.1.0/bin/sqlplus "sys as SYSDBA"` | |
/* Setting up directory for using import/export datapump */ | |
CREATE DIRECTORY db_restore AS '<MOUNT FOLDER IN CONTAINER>'; | |
GRANT read, write ON DIRECTORY db_restore TO sys; | |
GRANT DATAPUMP_EXP_FULL_DATABASE,DATAPUMP_IMP_FULL_DATABASE TO sys; | |
/* Import using data pump */ | |
expdp \"sys/passwd@localhost/ORCLCDB as sysdba\" full=Y DIRECTORY=db_restore dumpfile=export-db.dmp |
OlderNewer