I hereby claim:
- I am ajsharp on github.
- I am ajsharp (https://keybase.io/ajsharp) on keybase.
- I have a public key ASDjOxYpFxr14hQmOmeYo2Dre34nWzgtztY_cFQetIk_oAo
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| # Usage: migrate-eb-env FROM_ENV TO_ENV | |
| from, to = ARGV | |
| if !from || !to | |
| $stderr.puts "FROM_ENV and TO_ENV are required" | |
| exit(1) | |
| end |
| const AWS = require('aws-sdk'); | |
| const ec2 = new AWS.EC2(); | |
| const PROD_ENV_NAME = 'my-prod-env-name'; | |
| // Example Event | |
| // { | |
| // "version": "0", | |
| // "id": "ee376907-2647-4179-9203-343cfb3017a4", | |
| // "detail-type": "EC2 Instance State-change Notification", | |
| // "source": "aws.ec2", |
| var global = global || this; | |
| var self = self || this; | |
| var console = { history: [] }; | |
| ['error', 'log', 'info', 'warn'].forEach(function (fn) { | |
| console[fn] = function () { | |
| console.history.push({level: fn, arguments: Array.prototype.slice.call(arguments)}); | |
| }; | |
| }); | |
| function getStackTrace() { | |
| var stack; |
| TYPEMAP = { | |
| String => 'String', | |
| Integer => 'Int', | |
| DateTime => 'ISO8601DateTime', | |
| Boolean => 'Boolean', | |
| BSON::ObjectId => 'String' | |
| } | |
| def get_type(field_type) | |
| TYPEMAP[field_type] || "Types::#{field_type}Type" |
| { | |
| "dependencies": { | |
| "react": "^16.8" | |
| } | |
| } |
| heroku config -s -a SOURCE_APP | ruby -e '`heroku config:set #{$stdin.read.split("\n").join(" ")} -a DEST_APP`' |
| #!/bin/bash | |
| PROCESS_NAME='my-process' | |
| ps aux | pgrep -f $PROCESS_NAME > /dev/null | |
| if [ $? -eq 0 ]; then | |
| echo "Process is running." | |
| else | |
| echo "Process is not running." | |
| aws events put-events --entries '[{"Source":"com.myorg.server-name","DetailType":"$PROCESS_NAME","Detail":"{\"status\":\"down\"}"}]' |
| /// <reference path="passwordless-tokenstore.d.ts" /> | |
| declare module 'passwordless-mongostore' { | |
| import TokenStore from 'passwordless-tokenstore' | |
| export default class MongoStore extends TokenStore { | |
| constructor(connection: string, options?: any) | |
| } | |
| } |
| export declare class Passwordless { | |
| constructor(); | |
| acceptToken(options: any): any; | |
| addDelivery(name: any, sendToken: any, options: any): void; | |
| init(tokenStore: any, options: Passwordless.InitOptions): Passwordless; | |
| logout(options: any): any; | |
| requestToken(getUserID: any, options: any): any; | |
| restricted(options: any): any; |
I hereby claim:
To claim this, I am signing this object: