This file contains 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
# Setup | |
CUSTOMER="customer-name" | |
COUNTRY="NO" | |
CACHE_SERVER_FQDN="remote-cache.example.com" | |
# CA Certificate | |
# Step 1: Create CA private key | |
openssl genpkey -algorithm RSA -out ca_private_key.pem -pkeyopt rsa_keygen_bits:4096 | |
# Step 2: Create CA certificate |
This file contains 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: Deploy Functions | |
trigger: | |
- main | |
variables: | |
- group: Pulumi | |
- name: npm_config_cache | |
value: $(Pipeline.Workspace)/.npm | |
pool: |
This file contains 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: Visual Testing | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: | |
- opened | |
- reopened |
This file contains 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
const page = (await browser.pages())[0]; |
This file contains 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
/** | |
* # Instructions | |
* Run `BUGSNAG_KEY=vnjekfnvjkfeve APP_VERSION=1.0.0 PUBLIC_URL=https://example.com node upload_sourcemaps.js` | |
* to upload all sources to Bugsnag. This is very useful if your source is behind a firewall and Bugnsag can't access it | |
*/ | |
const path = require("path"); | |
const upload = require("bugsnag-sourcemaps").upload; | |
const walkSync = require("walk-sync"); |
This file contains 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
ps -ef | grep defunct | grep -v grep | cut -b8-20 | xargs sudo kill -9 |
This file contains 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
{ | |
"rows": [ | |
{ "name": "Afghanistan", "code": "AF" }, | |
{ "name": "Åland Islands", "code": "AX" }, | |
{ "name": "Albania", "code": "AL" }, | |
{ "name": "Algeria", "code": "DZ" }, | |
{ "name": "American Samoa", "code": "AS" }, | |
{ "name": "AndorrA", "code": "AD" }, | |
{ "name": "Angola", "code": "AO" }, | |
{ "name": "Anguilla", "code": "AI" }, |
This file contains 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
brew install libpq | |
bundle config --local build.pg --with-opt-dir="/usr/local/opt/libpq" | |
bundle install |
This file contains 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
export const queryStringSerialize = (obj, prefix) => { | |
var str = [], | |
p; | |
for (p in obj) { | |
if (obj.hasOwnProperty(p)) { | |
var key = isNaN(parseInt(p, 10)) ? p : ""; | |
var k = prefix ? prefix + "[" + key + "]" : p; | |
var v = obj[p]; | |
str.push( | |
v !== null && typeof v === "object" |
This file contains 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
import { createStore, compose } from "redux"; | |
import rootReducer from "./reducers"; | |
import { offline } from '@redux-offline/redux-offline'; | |
import config from '@redux-offline/redux-offline/lib/config'; | |
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; | |
export default createStore( | |
rootReducer, | |
composeEnhancers( |
NewerOlder