Skip to content

Instantly share code, notes, and snippets.

View Elektro1776's full-sized avatar

Austin Elektro1776

  • Denver, CO
View GitHub Profile
@Elektro1776
Elektro1776 / workflow.yml
Created November 30, 2021 17:37 — forked from AugustoCalaca/workflow.yml
example of workflow ci/cd for monorepo with github actions
name: CI/CD Monorepo
env:
AWS_REGION: us-east-1 # N. Virginia
on:
push:
branches:
- main
paths-ignore:

Bundle Analysis: image1


Out Dated Deps:

image2


@Elektro1776
Elektro1776 / Gemfile
Created February 22, 2021 20:15 — forked from rccursach/Gemfile
redis_pubsub_demo.rb
source "https://rubygems.org"
gem 'eventmachine'
gem 'sinatra'
gem 'yajl-ruby', require: 'yajl'
gem 'thin'
gem 'em-websocket'
@Elektro1776
Elektro1776 / install_nginx_macos_source.md
Created August 2, 2018 00:42 — forked from beatfactor/install_nginx_macos_source.md
Install Nginx on Mac OS from source (without brew)

Install Nginx on Mac OS from source

no Homebrew required

1. Download Nginx

$ cd /usr/local/src
$ curl -OL http://nginx.org/download/nginx-1.12.2.tar.gz
$ tar -xvzf nginx-1.12.2.tar.gz && rm nginx-1.12.2.tar.gz
@Elektro1776
Elektro1776 / global-variables-are-bad.js
Created May 6, 2017 13:09 — forked from hallettj/global-variables-are-bad.js
How and why to avoid global variables in JavaScript
// It is important to declare your variables.
(function() {
var foo = 'Hello, world!';
print(foo); //=> Hello, world!
})();
// Because if you don't, the become global variables.
(function() {
@Elektro1776
Elektro1776 / gs.nginx.conf
Created October 29, 2016 06:31 — forked from touhonoob/gs.nginx.conf
Nginx as Google Cloud Storage Cache
# Cache 10GB for 1 Month
proxy_cache_path /var/cache/nginx keys_zone=GS:10m inactive=720h max_size=10240m;
upstream gs {
server 'storage.googleapis.com:80';
keepalive 100;
}
server {
set $my_domain "yourdomain.com";
@Elektro1776
Elektro1776 / jekyll.nginxconf
Created September 1, 2016 07:18 — forked from rickharrison/jekyll.nginxconf
Nginx server config with clean URLs for Jekyll.
server {
listen 80;
server_name www.yourdomain.com;
return 301 $scheme://yourdomain.com$request_uri;
}
server {
listen 80;
root /var/www/yourdomain.com;
var webpack = require('webpack');
var path = require('path');
var BUILD_DIR = path.resolve(__dirname, 'src/client/public');
var APP_DIR = path.resolve(__dirname, 'src/client/app');
var config = {
entry:['webpack-dev-server/client?http://localhost:3000','webpack/hot/dev-server',
APP_DIR + '/index.jsx'],
output: {