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 | |
set -e | |
get_rev() | |
{ | |
ARG=$1 | |
BLOB_COMMIT=`git rev-parse --abbrev-ref $ARG` | |
if [ -z "$BLOB_COMMIT" ]; then | |
BLOB_COMMIT=`git rev-parse $ARG` |
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 requests | |
import argparse | |
import functools | |
import operator | |
import re | |
MANIFEST_JSON_ACCEPT_HEADER = 'application/vnd.docker.distribution.manifest.v2+json' | |
class RegistryClean: | |
def __init__(self, registry_url, image_name, retain_count, test): |
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/local/bin/python | |
import sys | |
import plistlib | |
source_file = sys.argv[1] | |
dest_file = sys.argv[2] | |
source_dict = plistlib.readPlist(source_file) | |
dest_dict = plistlib.readPlist(dest_file) |
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
PROMPT='%{$fg[blue]%}%n@%m%{$reset_color%} $(git_prompt_info)%{$fg[yellow]%}[%*]%{$reset_color%}%{$fg[cyan]%}[%c]%{$reset_color%}%(?.%{$fg[green]%}.%{$fg[red]%})%B$%b ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" |
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
version: '2' | |
services: | |
# MongoDB: https://hub.docker.com/_/mongo/ | |
mongo: | |
image: mongo:3 | |
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/5.5/docker.html | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.5.2 | |
environment: | |
- http.host=0.0.0.0 |
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
### Keybase proof | |
I hereby claim: | |
* I am morinap on github. | |
* I am morinap (https://keybase.io/morinap) on keybase. | |
* I have a public key whose fingerprint is 9412 3817 8FFB D3E7 1D14 F7F3 0D30 2579 6104 61CB | |
To claim this, I am signing this object: |