Out Dated Deps:
This file contains hidden or 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
| name: CI/CD Monorepo | |
| env: | |
| AWS_REGION: us-east-1 # N. Virginia | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: |
This file contains hidden or 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
| source "https://rubygems.org" | |
| gem 'eventmachine' | |
| gem 'sinatra' | |
| gem 'yajl-ruby', require: 'yajl' | |
| gem 'thin' | |
| gem 'em-websocket' |
This file contains hidden or 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
| // 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() { |
This file contains hidden or 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
| # 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"; |
This file contains hidden or 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
| server { | |
| listen 80; | |
| server_name www.yourdomain.com; | |
| return 301 $scheme://yourdomain.com$request_uri; | |
| } | |
| server { | |
| listen 80; | |
| root /var/www/yourdomain.com; |
This file contains hidden or 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
| 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: { |

