Skip to content

Instantly share code, notes, and snippets.

View rvargs's full-sized avatar
💯

Ruben V. rvargs

💯
View GitHub Profile
@rvargs
rvargs / gist0.js
Created July 5, 2023 20:05 — forked from amb101/gist0.js
Nginx / Node Frontend / Load Balancer / Static Assets Caching
upstream project {
server 22.22.22.2:3000;
server 22.22.22.3:3000;
server 22.22.22.5:3000;
}
server {
listen 80;
location / {
@rvargs
rvargs / my-mac-setup.sh
Created March 14, 2020 18:38 — forked from nickytonline/my-mac-setup.sh
Mac Setup Scripts
#!/bin/sh
# More Mac setup at https://mac.iamdeveloper.com
# Log file
timestamp=$(date +%s)
logFile="./my-mac-setup-$timestamp.log"
# if true is passed in, things will reinstall
reinstall=$1
@rvargs
rvargs / setup.sh
Created March 14, 2020 02:25 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@rvargs
rvargs / AWS SLS example
Created October 5, 2019 15:09
AWS SLS example with Alexa fn.sh
# Create AWS credentials file in ~/.aws
serverless config credentials --provider aws --key <access-key-id> --secret <secret> --profile <profilename>
# Create a sls framework service from a template in a path called servicename
serverless create --t aws-nodejs --path servicename
# Deploy functions from serverless.yml to AWS Lambda
sls deploy

AWS Reference **WIP

Volumes

Describing volumes

aws ec2 describe-volumes
@rvargs
rvargs / bootstrap.sh
Created October 21, 2018 00:35
LAMP Stack
## Update Packages
apt-get update
## Upgrade Packages
apt-get upgrade
## Git
apt-get install -y git
## Apache
apt-get install -y apache2