It is sometimes necessary to have files in a container that shouldn't ever end up in an image. These files are generally some form of private key or password that aren't allowed to be distributed. This document details a few usecases for such files and their requirements.
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
#!/bin/sh | |
# This program has two feature. | |
# | |
# 1. Create a disk image on RAM. | |
# 2. Mount that disk image. | |
# | |
# Usage: | |
# $0 <dir> <size> | |
# |
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 PERL_CPANM_OPT="--cascade-search --save-dists=$HOME/.cpanm/cache --mirror=$HOME/.cpanm/cache --mirror=http://search.cpan.org/CPAN" |
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
#!/bin/bash | |
# From the releases mentioned in cpanfile.snapshot, filter out those mentioned in `carton tree` | |
if ! grep --version | grep -q GNU; then | |
echo "GNU grep is required; BSD grep is too feeble" | |
exit 1 | |
fi | |
grep -vFf <(carton tree | grep -oP '(?<=\().+(?=\))') <(grep -P '^ \S' cpanfile.snapshot) | cut -c 3- |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
Moved to Shopify/graphql-design-tutorial
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 request from 'sync-request'; | |
import * as glue from '@aws-cdk/aws-glue'; | |
export function polytectJsonSchemaToGlue(): glue.Type { | |
console.log("Getting Polytect reference schema...") | |
const res = request('GET', 'https://raw.githubusercontent.com/polyverse/polytect/master/reference/schema.json'); | |
const body = res.getBody(); | |
const schema = JSON.parse(body.toString()); | |
return recursiveGlueColumns(schema, schema.definitions); | |
} |
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 t from 'io-ts' | |
import * as gen from 'io-ts-codegen' | |
import { NullableType } from 'codecs/util/nullable' | |
export function stringifyNaive(identifier: string, codec: t.Any): string { | |
return `type ${identifier} = ${codec.name}` | |
} | |
export function stringifyFull(identifier: string, codec: t.Any): string { | |
return `type ${identifier} = ${gen.printStatic(getType(codec))}` |
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 { | |
Stack, | |
StackProps, | |
RemovalPolicy, | |
aws_rds as rds, | |
aws_ec2 as ec2, | |
custom_resources as cr, | |
CfnResource, | |
} from 'aws-cdk-lib' | |
import { Construct } from 'constructs' |
OlderNewer