Skip to content

Instantly share code, notes, and snippets.

View jackhickey's full-sized avatar

Jack Hickey jackhickey

View GitHub Profile
@jackhickey
jackhickey / server.js
Created June 21, 2018 10:34
native nodejs health endpoint
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');
}
# 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
#!/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. \;\)
@jackhickey
jackhickey / vsCodeGitMac.txt
Last active August 7, 2023 16:45
Enabled vscode as your git editor on mac
# 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...)
@jackhickey
jackhickey / newMac.sh
Last active February 3, 2018 11:35
Mac setup script
/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