brew install boot2docker
eval $(boot2docker shellinit)
boot2docker up
sudo pip install -U docker-compose
# put the docker-compose.yml file in a directory e.g. ~/Work/docker/cassandra
cd ~/Work/docker/cassandra
docker-compose up
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
set nocompatible | |
syntax on | |
filetype off | |
set colorcolumn=80 | |
set ignorecase | |
set laststatus=2 | |
set noshowmode | |
set hlsearch | |
set cul |
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
set-option -g prefix C-a | |
unbind-key C-a | |
bind-key C-a send-prefix | |
set -g base-index 1 | |
set-window-option -g pane-base-index 1 | |
set-option -g renumber-windows on | |
# vi is good | |
setw -g mode-keys vi | |
bind-key -t vi-copy v begin-selection |
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
alias ssl=openssl | |
ssl genrsa -aes256 -passout pass:x -out server.pass.key 2048 | |
ssl rsa -passin pass:x -in server.pass.key -out server.key | |
rm server.pass.key | |
ssl req -sha256 -new -key server.key -out server.csr | |
ssl x509 -sha256 -req -days 365 -in server.csr -signkey server.key -out server.crt |
This design must be aware of the OAuth2 thread models and mitigation strategies as described in the following resources:
- [OAuth 2.0 Threat Model and Security Considerations][1]
- [OAuth Security][2]
- [Common OAuth2 Vulnerabilities and Mitigation Techniques][3]
- [OAuth1, OAuth2, OAuth...?][4]
A host of vulnerabilities can be removed by pinning redirect_uri
, scope
, response_type
(read: allowed grants for each client) variables in client settings when registering clients (apps).
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 * as ra from 'redux-actions' | |
export const {createAction} = ra | |
export function createAsyncAction(name, worker) { | |
const request = `${name}_REQUEST` | |
const success = `${name}_SUCCESS` | |
const fail = `${name}_FAIL` | |
const stages = { | |
request: createAction(request), | |
success: createAction(success), |
I hereby claim:
- I am disintegrator on github.
- I am disintegrator (https://keybase.io/disintegrator) on keybase.
- I have a public key whose fingerprint is B27D E9C9 E08C A86E F46B 84FA F60F 7D8E 4BAD 4281
To claim this, I am signing this object:
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 axios, { AxiosRequestConfig, AxiosResponse } from 'axios'; | |
import { Observable } from 'rxjs'; | |
const fromRequest = (request: AxiosRequestConfig) => | |
new Observable<AxiosResponse>( | |
(o) => { | |
const source = axios.CancelToken.source(); | |
o.add(() => source.cancel('Operation canceled by the user.')); |
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
export type ActionType = string; | |
export interface Action<T extends ActionType> { | |
type: T; | |
} | |
export interface BasicAction<T extends ActionType, P> extends Action<T> { | |
payload: P; | |
} |
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
exports.config = { | |
capabilities: [ | |
{ | |
browserName: 'chrome', | |
chromeOptions: { | |
args: ['headless', 'disable-gpu'], | |
}, | |
}, | |
], | |
services: ['selenium-standalone'], |
OlderNewer