I hereby claim:
- I am lusentis on github.
- I am lanzone31 (https://keybase.io/lanzone31) on keybase.
- I have a public key ASBIIEKCc7o4vqph1MvOEpI-Y-hi22GsOaqb4WiOx7iUcQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // ==UserScript== | |
| // @name Account ID in Tab Title | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://*.console.aws.amazon.com/* | |
| // @grant none | |
| // ==/UserScript== |
| # usage: | |
| # $ curl https://cdn.ravenjs.com/3.22.3/raven.min.js | sri | |
| alias sri='openssl dgst -sha384 -binary | openssl base64 -A | cat <(echo -n "sha384-") - | xsel -bi && echo "SRI hash copied to clipboard :)"' |
| function parseS3URL(url) { | |
| const tokens = /^https:\/\/([\w\d-]+)\.s3(-(\w\w-\w+-\d))?\.amazonaws\.com\/(.*?)((#|%23).*)?$/.exec( | |
| url | |
| ); | |
| if (!tokens) { | |
| return false; | |
| } | |
| const [, bucket, , region = 'us-east-1', key] = tokens; | |
| return { bucket, region, key }; | |
| } |
| // Usage: | |
| // $ babel-node keepalive.js > keepalive-code.js && \ | |
| // zip keepalive-code.zip keepalive-code.js && \ | |
| // aws lambda update-function-code \ | |
| // --function-name DawsonKeepAliveProd \ | |
| // --zip-file fileb://./keepalive-code.zip && \ | |
| // rm keepalive-code* | |
| import execa from 'execa'; | |
| import assert from 'assert'; |
| export function replicator (replicatorInternalId, sourceLogicalName, destinationPhysicalName, destinationArn) { | |
| if (replicatorInternalId === false) { | |
| return {}; | |
| } | |
| const resourcesSuffix = sourceLogicalName[0].toUpperCase() + sourceLogicalName.slice(1) + '' + replicatorInternalId; | |
| const lambdaInlineCode = ` | |
| 'use strict'; | |
| console.log('Loading function'); |
| function replicator(replicatorInternalId, sourceLogicalName, destinationPhysicalName, destinationArn) { | |
| const lambdaInlineCode = ` | |
| 'use strict'; | |
| console.log('Loading function'); | |
| const AWS = require('aws-sdk'); | |
| const dynamo = new AWS.DynamoDB({}); | |
| exports.handler = (event, context, callback) => { |
| import React, { PropTypes as Type } from 'react'; | |
| import R from 'ramda'; | |
| const textFilter = str => | |
| R.filter( | |
| R.compose( | |
| R.test(new RegExp(str, 'i')), | |
| R.prop('text'), | |
| ) |
import addLifecycle from './addLifecycle';
const wrapLifecycle = addLifecycle({
handleComponentDidMount: triggerRequestFetch,
handleComponentWillReceiveProps: Function,
});
// ...
| Packages.zip | |
| (unzip in .config/sublime-text-3/) | |
| https://mega.co.nz/#!bU4wSTKS!kNw-I6ngCvsZwsD51MTxqavySG2z2aLgBS-B6BzlEZo |