Skip to content

Instantly share code, notes, and snippets.

View joshwiens's full-sized avatar

Joshua Wiens joshwiens

View GitHub Profile

Philosophy: Focusing on essentials for competitive raiding / mythic+ / pvp. alcaras#6052 on discord if you have suggestions for things to add. I'll also be updating https://subcreation.net/ for Season 2 of Mythic+ and PvP and for Sanctum of Domination by July 10th.

every week

torghast

(you'll need to work your way up to layer 12; remember once you unlock layer 12 for one wing, it's automatically unlocked for the other -- not 100% clear what layers will be unlocked each week)

  • first week: can only do layer 9 (+120 soul cinders both wings)
  • heroic week: can only do up to layer 10 (+220 soul cinders both wings) or layer 11 (+300 soul cinders both wings)
  • mythic week: can go all the way up to layer 12 (+360 soul cinders both wings)
@joshwiens
joshwiens / ProfilingPlugin.js
Created December 27, 2017 14:22 — forked from TheLarkInn/ProfilingPlugin.js
Profiling Plugin
const chalk = require("chalk");
const { performance } = require("perf_hooks");
class ProfilingPlugin {
apply(compiler) {
// Compiler Hooks
Object.keys(compiler.hooks).forEach(hookName => {
compiler.hooks[hookName].intercept(makeInterceptorFor("Compiler")(hookName))
});
Object.keys(compiler.resolverFactory.hooks).forEach(hookName => {
if (typeof window!=='undefined' && navigator.serviceWorker && navigator.serviceWorker.controller) {
let reloadOnNext = false;
let pushState = history.pushState;
history.pushState = function(state, title, url) {
if (reloadOnNext===true) location.href = url;
else pushState.call(this, state, title, url);
};
navigator.serviceWorker.controller.addEventListener('statechange', e => {
@joshwiens
joshwiens / nvm-node-nightlies.md
Created July 12, 2017 18:59 — forked from chicoxyzzy/nvm-node-nightlies.md
Installing Node Nightlies via nvm

You can install Node Nightlies/RCs via nvm using NVM_NODEJS_ORG_MIRROR environment variable.

Install latest Node RC

NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/rc/ nvm i node

Install latest Node.js Nightly

NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm i node
@joshwiens
joshwiens / gist:f21e1462578451d1f0f365936f31b4fe
Created July 8, 2017 20:05 — forked from ivan-loh/gist:ee0d96c3795e59244063
Node.JS ( & pm2 ) Process Memory Limit
# Plain Ol' Node
node --max-old-space-size=1024 app.js # increase to 1gb
node --max-old-space-size=2048 app.js # increase to 2gb
node --max-old-space-size=3072 app.js # increase to 3gb
node --max-old-space-size=4096 app.js # increase to 4gb
node --max-old-space-size=5120 app.js # increase to 5gb
node --max-old-space-size=6144 app.js # increase to 6gb
# For pm2
pm2 start app.js --node-args="--max-old-space-size=1024" # increase to 1gb
@joshwiens
joshwiens / vscode-styles.css
Created June 15, 2017 01:24
vscode-styles for operator mono, fira code ligatures, and oceanic next italic
.type.storage,.type.storage.declaration, .storage.class.modifier {
font-family: 'Operator Mono Book';
}
.type.storage.arrow.function {
font-family: 'Fira Code'
}
.token.keyword.operator {
font-family: 'Fira Code'
@joshwiens
joshwiens / ngrxintro.md
Created November 5, 2016 17:08 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

#Comprehensive Introduction to @ngrx/store By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@joshwiens
joshwiens / nginx.conf
Created April 22, 2016 23:14 — forked from chrisallenlane/nginx.conf
This is an nginx configuration that does the following: - Implements a RESTful API using CORS between `example.com` and `api.example.com` - Uses SSL - Reverse-proxies SSL traffic from port 443 to a NodeJS application running on port 8000 Adapted from this page, with thanks to the original author: http://enable-cors.org/server_nginx.html
# Configure the reverse-proxy on port 443
server {
# general configs
keepalive_timeout 30;
listen 127.0.0.1:443 ssl;
server_name api.example.com;
# ssl configs
ssl_certificate /path/to/api.crt;
ssl_certificate_key /path/to/api.key;