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
# Lists all leases of the mac build-in DHCP server | |
# Useful if would like to connect via ssh (e.g., to a Rasberry pi) and share the internet connection | |
cat /private/var/db/dhcpd_leases | |
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
type Primitive = | |
| string | |
| boolean | |
| number | |
| bigint | |
| symbol | |
| null | |
| undefined | |
| Date; |
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
enum RecipeStyle { | |
Italian = "italian", | |
Mexian = "mexican" | |
} | |
export default interface Recipe { | |
id: string; | |
directions: any; | |
authorId: string; | |
name: string; | |
style: RecipeStyle; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
sudo: required | |
services: | |
- docker | |
stages: | |
- test | |
- build | |
jobs: | |
include: |
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
language: python | |
sudo: required | |
services: | |
- docker | |
stages: | |
- test | |
- build |
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/sh | |
base_dir=/var/lib/registry/docker/registry/v2 | |
repository_dir=$base_dir/repositories | |
image_dir=$base_dir/blobs | |
output_dir=$(mktemp -d) | |
all_images=$output_dir/all | |
used_images=$output_dir/used |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/sh | |
# This script will be executed after commit in placed in .git/hooks/post-commit | |
# Semantic Versioning 2.0.0 guideline | |
# | |
# Given a version number MAJOR.MINOR.PATCH, increment the: | |
# MAJOR version when you make incompatible API changes, | |
# MINOR version when you add functionality in a backwards-compatible manner, and | |
# PATCH version when you make backwards-compatible bug fixes. |
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 DOCKER_TAG=test | |
if [[ $( docker pull hello-world:$DOCKER_TAG 2>&1 | head -1 ) == *"not found"* ]] ; | |
then | |
echo "Create image for hello world repro" | |
docker pull hello-world:develop | |
docker tag hello-world:develop hello-world:$DOCKER_TAG | |
docker push hello-world:$DOCKER_TAG | |
else | |
echo "Image already exists" |
NewerOlder