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
// Saving file as root | |
w !sudo tee % | |
// Setting look and feel | |
:set syntax=apache | |
//Move NERDTree vertical panel to the left | |
Ctrl w | |
> |
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 hugo as localhost with hugo-artist-theme and automatic reload | |
hugo server --theme=hugo-artists-theme --buildDrafts | |
// Creating new markdown content | |
hugo new jmetadata/tutorials.md | |
or | |
hugo new techtalk/java/executors.md | |
// Build hugo in the server | |
hugo --baseUrl=http://josdem.io/ --theme=hugo-artists-theme --buildDrafts |
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 -g prefix C-a ### Cambiando prefijos | |
set -sg escape-time 1 ### Cambiando el delay de los commandos | |
set -g base-index 1 ### Cambiando la numeracion de las ventanas | |
setw -g pane-base-index 1 ### Cambiando la numeracion de los paneles | |
bind C-a send-prefix ### Compartiendo el prefijo con otras aplicaciones | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" ### Asignando comando para la recarga del archivo de configuracion | |
bind | split-window -h ### Asignando comando para dividir el panel de manera vertical | |
bind - split-window -v ### Asignando comando para dividir el panel de manera horizontal |
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
[Desktop Entry] | |
Type=Application | |
Name=sts | |
Comment=Spring Tool Suite | |
Icon=/home/josdem/STS/sts-3.7.3.RELEASE/icon.xpm | |
Exec=/home/josdem/STS/sts-3.7.3.RELEASE/STS | |
Terminal=false | |
Categories=Development;IDE;Java; | |
StartupWMClass=STS |
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
//Search and replace a word in a directory | |
Ctrl + Shift + f | |
//Delete a line | |
Ctrl + Shift + k | |
//Move a line up | |
Ctrl + Shift + UP | |
//Replace a word in a text |
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
//POST jugoterapia josdem.io | |
http --form POST http://jugoterapia.josdem.io/jugoterapia-server/beverage/beverages categoryId=1 | |
//GET with query params | |
http GET http://localhost:8080/sepomex/show cp==01270 |
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
//Copy in clipboard | |
xclip -sel clip < ~/.ssh/id_rsa.pub |
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 |
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
//Install specific grails version | |
sdk install grails 3.0.9 | |
//List grails versions | |
sdk list grails |