- Date: <DATE - when the decision was made>
- Deciders: <DECIDERS - list everyone involved in the decision>
- Status: [PROPOSED | ACCEPTED | SUPERSEDED | DEPRECATED]
- Category: <CATEGORY - use a simple grouping to help organize the set of decisions (e.g. backend, payment, user management, ...)>
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
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import { Provider } from "react-redux"; | |
import { createBrowserHistory } from "history"; | |
import configureStore from "./redux/configureStore"; | |
import * as serviceWorker from "./serviceWorker"; | |
import App from "./App"; | |
import ErrorBoundary from "./pages/ErrorBoundary"; | |
const store = configureStore(); |
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
#!/bin/bash | |
set -e | |
repos=$(bb list -u $BB_USERNAME -p $BB_PASSWORD --private | grep $BB_ORG | cut -d' ' -f3 | cut -d'/' -f2) | |
for repo in $repos; do | |
echo | |
echo "* Processing $repo..." | |
echo | |
git clone --bare [email protected]:$BB_ORG/$repo.git | |
cd $repo.git | |
echo |
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
################## | |
# Usage | |
# brew install https://gist.githubusercontent.com/satnami/b32aaa0ac95224accb4c1ebf1d3f29f8/raw/59db14e8f317adb9159992c1192162dee2d7ac50/openssl.rb | |
################## | |
# This formula tracks 1.0.2 branch of OpenSSL, not the 1.1.0 branch. Due to | |
# significant breaking API changes in 1.1.0 other formulae will be migrated | |
# across slowly, so core will ship `openssl` & `[email protected]` for foreseeable. | |
class Openssl < Formula | |
desc "SSL/TLS cryptography library" |
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
############################################################################ | |
# # | |
# ------- Useful Docker Aliases -------- # | |
# # | |
# # Installation : # | |
# copy/paste these lines into your .bashrc or .zshrc file or just # | |
# type the following in your current shell to try it out: # | |
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash | |
# # | |
# # Usage: # |
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
# https://stackoverflow.com/a/61574295/2118504 | |
# .github/workflows/example.yml | |
name: Merge upstream branches | |
on: | |
schedule: | |
# actually, ~5 minutes is the highest | |
# effective frequency you will get | |
- cron: '* * * * *' | |
jobs: |
These are the Kickstarter Engineering and Data role definitions for both teams.
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
# Prepare a hash. We need it to identify our container. | |
$ uuid="ps_$(shuf -i 42002-42254 -n 1)" | |
# Prepare a root dir for all the containers. | |
$ btrfs_path='/var/bocker' && cgroups='cpu,cpuacct,memory'; | |
# Prepare root filesystem based on the given `$image`. | |
$ btrfs subvolume snapshot "$btrfs_path/$image" "$btrfs_path/$uuid" > /dev/null | |
# Create a cgroup |
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
require 'rack/utils' | |
Rack::Utils.module_eval do | |
def self.set_cookie_header!(header, key, value) | |
case value | |
when Hash | |
domain = "; domain=" + value[:domain] if value[:domain] | |
path = "; path=" + value[:path] if value[:path] | |
max_age = "; max-age=" + value[:max_age] if value[:max_age] | |
expires = "; expires=" + |
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
#!/bin/sh | |
# Usage: | |
# eval $(/dir/to/file/aws_ssm_env.sh PRODUCTION/POSTGRES) | |
# PRODUCTION/POSTGRES can be changed to the need path, and the script will truncate that path | |
# AWS Systems Manager -> Parameter Store will be stored like this | |
# /PRODUCTION/POSTGRES/POSTGRES_DATABASE_HOST = 10.10.10.10 | |
# /PRODUCTION/POSTGRES/POSTGRES_DATABASE_PORT = 0000 |