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
const http = require('http'); | |
const server = http.createServer((req, res) => { | |
if(req.url === '/health') { | |
res.setHeader('Content-Type', 'application/json'); | |
res.end(new Buffer.from(JSON.stringify({status: 'UP'}))); | |
} else { | |
res.statusCode = 404; | |
res.end('Not Found\n'); | |
} |
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
# for a vm install.... | |
sudo apt-get -y install open-vm-tools open-vm-tools-desktop | |
# | |
sudo apt-get install -y curl | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
sudo apt-get install -y build-essential | |
sudo apt-get install -y git |
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 | |
set -e | |
# make rcon variable for make cleany codey | |
rcon='docker exec -it mc rcon-cli' | |
# Let people know it's shutting down | |
$rcon say Server shutting down for backup. Be back in 1 minute or so. \;\) |
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
# Inside of vscode open the command pallete and run '>shell command install code in path' or something along those lines... | |
git config --global core.editor "code --wait" | |
git config --global -e | |
(add the lines below inside in the git config...) | |
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/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew tap caskroom/cask | |
brew install git | |
brew install node | |
brew cask install google-chrome | |
brew cask install firefox |