I hereby claim:
- I am psaia on github.
- I am iisthesloth (https://keybase.io/iisthesloth) on keybase.
- I have a public key ASDWvdSLS_4WoEJI27h9plisLadYERmpIdyQn92mBWOEgwo
To claim this, I am signing this object:
apiVersion: v1 | |
data: | |
database.json: | | |
{ | |
"defaultConnection": "default", | |
"connections": { | |
"default": { | |
"connector": "mongoose", | |
"settings": { | |
"uri": "mongodb://..." |
# Note: Lower the -crf, higher the quality. | |
# Good for screencasts: | |
ffmpeg -i INPUT.mov -preset veryslow -tune stillimage -y -vcodec h264 -crf 29 -an OUTPUT.mp4 | |
# Cropping (84px from top, 555 height): | |
ffmpeg -i INPUT.mov -filter:v "scale=-1:700,crop=iw:555:0:84" -preset veryslow -tune stillimage -y -vcodec h264 -crf 29 -an OUTPUT.mp4 |
FRUIT = "fruit" | |
VEGGIE = "veggie" | |
class Product: | |
def __init__(self, name, kind): | |
self.name = name | |
self.kind = kind | |
def __repr__(self): | |
return "(name: %s / kind: %s)" % (self.name, self.kind) |
const EnvironmentProvider = environment => props => { | |
return ( | |
<ReactRelayContext.Provider | |
{...props} | |
value={{ environment: environment, variables: {} }} | |
/> | |
); | |
}; | |
async function createRelayEnvironment(req) { |
/** | |
* A decent observer class. | |
*/ | |
export type PayloadFn = (payload?: any) => void | Promise<void>; | |
export interface Subscription { | |
name: string; | |
fn: PayloadFn; | |
} |
I hereby claim:
To claim this, I am signing this object:
docker run --rm -P -v ~/Desktop/test/prod0-shard-0-1538600622-5bb55f5aff7a255af95eba75/:/data/db mongo:3.4 |
#!/usr/bin/env node | |
const fs = require("fs"); | |
const path = require("path"); | |
const express = require("express"); | |
const jsdom = require("jsdom"); | |
const isBot = require("isbot"); | |
const { Script } = require("vm"); | |
const app = express(); |
#!/bin/sh | |
NODE_ENV=test mocha --recursive ./**/*_test.js |
f=$(date +%Y-%m-%d-%H-%M-%S) | |
dest=$(realpath $(pwd)/..) | |
# Archive newly deployed files in the releases directory. | |
cp -R $dest/.tmp/ $dest/releases/$n | |
# Update the symlink to point to the latest release (atomic). | |
ln -sfn $dest/releases/$n $dest/live-app | |
# Clean up. |