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 | |
### BEGIN INIT INFO | |
# Provides: dockercompose | |
# Required-Start: $docker | |
# Required-Stop: $docker | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Docker Services | |
### END INIT INFO |
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
import anyio | |
import dagger | |
async def pipeline(client: dagger.Client): | |
# Fetch source code from github | |
source_code = await ( | |
client.git("https://github.com/kpenfound/greetings-api.git") | |
.branch("main") | |
.tree().id() |
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
package main | |
import ( | |
"fmt" | |
"testing" | |
) | |
func assertEqual(t *testing.T, a interface{}, b interface{}, message string) { | |
if a == b { | |
return |
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
Anonymous "Accept" | |
Anonymous "Accept-Charset" | |
Anonymous "Accept-Encoding" | |
Anonymous "Accept-Language" | |
Anonymous "Authorization" | |
Anonymous "Cache-Control" | |
Anonymous "Connection" | |
Anonymous "Content-Length" | |
Anonymous "Content-Type" | |
Anonymous "Cookie" |
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 | |
if [ "$#" -lt 3 ]; then | |
echo "Usage: $0 workspace from-stack to-stack" | |
exit 1 | |
fi | |
set -eu | |
stackSrc="$2" | |
stackTo="$3" |
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
staging blocklayer: | |
stage: staging | |
environment: | |
name: staging | |
image: blocklayer/bl-cli | |
script: | |
- bl --stack "staging" --env "staging" push "api"=. --api-key ${BLOCKLAYER_API_KEY} --no-color | |
except: | |
- master |
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
dev: | |
# This assumes the Redis info are in environment variables | |
cache: | |
host: _env:REDIS_HOST | |
port: _env:REDIS_PORT | |
password: _env:REDIS_PASSWORD |
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 | |
# NOTE: Run from the docker-registry root directory | |
# Setup the environment | |
export SETTINGS_FLAVOR=test | |
export DOCKER_REGISTRY_CONFIG=config_test.yml | |
export DOCKER_CREDS=REPLACE:ME | |
export S3_ACCESS_KEY=REPLACEME | |
export S3_SECRET_KEY=REPLACEME |
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
#!/usr/bin/env python | |
import sys | |
if __name__ == '__main__': | |
fname = sys.argv[1] | |
with open(fname) as f: | |
print '[' | |
while True: | |
b = f.read(14) |
NewerOlder