docker run -it --rm -p 443:443 -p 80:80 --name certbot -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" certbot/certbot certonly
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
FROM traefik:camembert | |
ADD traefik.toml . | |
EXPOSE 80 | |
EXPOSE 8080 | |
EXPOSE 443 |
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
const stream = require('stream') | |
const Gun = require('gun') | |
const randomString = length => { | |
const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
let text = '' | |
for (var i = 0; i < length; i++) { | |
text += possible[Math.floor(Math.random() * possible.length)] | |
} | |
return text |
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
FROM postgres:10.0-alpine | |
COPY create-multiple-postgresql-databases.sh /docker-entrypoint-initdb.d/ | |
# COPY ./goose /bin/goose |
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
// @flow | |
// make sure to install `yarn add babel-preset-stage-0` | |
const fs = require('fs') | |
const path = require('path') | |
const { transform } = require('babel-core') | |
const walker = (inputPath, extension, list = []) => { | |
if (fs.statSync(inputPath).isFile()) { |
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
/** | |
* Copyright (c) 2015-present, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* LICENSE file in the root directory of this source tree. An additional grant | |
* of patent rights can be found in the PATENTS file in the same directory. | |
*/ | |
#import "RCTScrollView.h" |
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
// @flow | |
import React, { Component } from 'react' | |
import { Image, Animated, View } from 'react-native' | |
type ProgressiveImageState = { | |
thumbnailOpacity: number, | |
key: string | |
} |
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 default function transformer(file, api, options) { | |
const j = api.jscodeshift; | |
const printOptions = options.printOptions || {quote: 'single'}; | |
const root = j(file.source); | |
const reactImport = () => { | |
return j.importDeclaration( | |
[ | |
j.importDefaultSpecifier( |
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 | |
usage () | |
{ | |
echo "Version Update" | |
echo "" | |
echo "Usage:" | |
echo "" | |
echo " Options:" | |
echo " -h show usage/help" |
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
const fp_delta = () => { | |
let p = null; | |
return (v) => { | |
const t = p == null ? v : p; | |
p = v; | |
return v - t; | |
}; | |
}; | |
const fp_min = (min) => (v) => v < min? min : v; |