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
#List available node releases | |
nvm ls-remote | |
#Install specific node version | |
nvm install <node_version> | |
#Install LTS release | |
nvm install --lts |
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
# Duplicate a line | |
Shift + Option + ArrowDown | |
Alt + Shift + D (To configure) | |
# Move a line | |
Alt + Up | |
Alt + Down | |
Option + Up | |
Option + Down |
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
#How to download a file | |
curl -O ${file_name} |
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
#!/usr/bin/env groovy | |
def request() { | |
println 'Starting health check' | |
try { | |
String response = "curl -H 'Content-Type: text/plain' https://webflux.josdem.io/sanity/ping".execute().text | |
assert response == 'pong' | |
println 'Up and running!' | |
} catch (AssertionError aex){ | |
println 'Service is not ready yet' |
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
//Change listen port | |
vim /etc/default/jenkins | |
HTTP_PORT=8081 | |
//Start Jenkins server | |
sudo systemctl start jenkins | |
//Setting NVM and nodeJS command | |
export NVM_DIR="$HOME/.nvm" | |
. ~/.nvm/nvm.sh |
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
#Open a File | |
Command + Shift + O | |
#Optimize imports in the current file | |
Control + Option + O | |
Control + Alt + O | |
#Duplicate a line | |
Command + D |
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
### SDKMANAGER | |
sdkmanager --list | |
sdkmanager "platform-tools" | |
sdkmanager "platforms;android-28" | |
sdkmanager "system-images;android-28;google_apis_playstore;x86" | |
### AVBMANAGER | |
avdmanager list | |
avdmanager create avd -n "Pixel" -k "system-images;android-28;google_apis_playstore;x86" -d 17 | |
avdmanager delete avd -n Pixel |
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
### Linux/Mac | |
sdk version | |
sdk list | |
sdk list java | |
sdk install java 8.0.202-amzn | |
sdk install gradle | |
sdk install maven | |
### Windows (Windows Server 2012 R2 Datacenter) | |
choco version |
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
#!/usr/bin/env groovy | |
@Grab('com.github.groovy-wslite:groovy-wslite:1.1.3') | |
import wslite.rest.RESTClient | |
def sanityStarter(){ | |
println 'Starting sanity check' | |
def client = new RESTClient("http://localhost:8080/") | |
def response = client.get(path:'/sanity/ping') |
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
Mac | |
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! | |
export SDKMAN_DIR="/Users/josdem/.sdkman" | |
[[ -s "/Users/josdem/.sdkman/bin/sdkman-init.sh" ]] && source "/Users/josdem/.sdkman/bin/sdkman-init.sh" | |
Linux | |
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! | |
export SDKMAN_DIR="/home/josdem/.sdkman" |
NewerOlder