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
#!/bin/bash -l | |
set -e -x -u | |
# Below is a script to create and configure the chef cluster, provided as a reference and documentation for the steps. | |
# The steps are documented in the chef cluster docs: https://docs.chef.io/install_server_ha.html | |
# Created by Innovid.com | |
region=$1 | |
if [ -z "${region}" ]; then | |
echo "Please specify a region" | |
exit 1 |
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
security_groups: | |
- name: chef-alb | |
egress_entries: | |
- ip_protocol: TCP | |
from_port: '443' | |
to_port: '443' | |
source_security_group: chef-frontend | |
ingress_entries: | |
- ip_protocol: TCP |
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 function injectAsyncReducer(store, name, asyncReducer) { | |
if (store.asyncReducers[name]) { | |
return; | |
} | |
store.asyncReducers[name] = asyncReducer; | |
store.replaceReducer(createReducer(store.asyncReducers)); | |
} | |
export const configureStore = (initialState: AppState) => { | |
const enhancer = compose(applyMiddleware(...getMiddleware())); |
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 { reducer as formReducer } from "redux-form"; | |
const applicationReducer: Reducer<any> = combineReducers({ | |
user, | |
sidenav, | |
navigation, | |
//... | |
form: formReducer | |
}); |
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
mode: "production", | |
entry: { | |
app: path.join(__dirname, "index.tsx"), | |
}, | |
output: { | |
path: path.resolve(__dirname, "public/dist"), | |
publicPath: "", | |
chunkFilename: "[name].js", | |
filename: "[name].js" | |
}, |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es5", | |
"sourceMap": false, | |
"inlineSourceMap": true, | |
"module": "esnext", | |
"moduleResolution": "node", | |
"jsx": "react", | |
"preserveConstEnums": true, | |
"removeComments": false, |
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
class HelloWorld < Formula | |
desc "usefull script that prints Hello World to your Console" | |
homepage "https://bitbucket.org/user/repo" | |
def self.get_file_as_str(str) | |
return (File.read File.expand_path(str)).rstrip | |
end | |
url "https://#{get_file_as_str("~/git_user")}:#{get_file_as_str("~/git_password")}@bitbucket.org/user/repo/get/HEAD.zip", :using => :curl |
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
class HelloWorld < Formula | |
desc "usefull script that prints Hello World to your Console" | |
homepage "https://bitbucket.org/user/repo" | |
url "https://bitbucket.org/user/repo/get/HEAD.zip", :using => :curl | |
def install | |
bin.install "innovid/hello-world" | |
end |
OlderNewer