Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am shin- on github.
  • I am j0ffrey (https://keybase.io/j0ffrey) on keybase.
  • I have a public key whose fingerprint is 4867 4619 E002 A044 1936 9502 364C 3EFF E69F 985C

To claim this, I am signing this object:

# pip3 install exifread && python3 nonsquares.py ~/Pictures | xargs rm -f
import os
import sys
import exifread
def main(basedir):
for dirpath, _, filenames in os.walk(basedir):
for name in filenames:
version : '1.0'
# publish artifact gets pushed automatically if tests pass
repository: internal.dtr.net:8080/v2/
stages;
build:
dockerfile: ./Dockerfile
stage: build
artifact: namespace/name
diff --git a/drivers/openstack/client.go b/drivers/openstack/client.go
index 7710c2ff..dc08d29c 100644
--- a/drivers/openstack/client.go
+++ b/drivers/openstack/client.go
@@ -49,6 +49,7 @@ type Client interface {
AssignFloatingIP(d *Driver, floatingIP *FloatingIP) error
DeleteFloatingIP(d *Driver, floatingIP *FloatingIP) error
GetFloatingIPs(d *Driver) ([]FloatingIP, error)
+ GetFloatingIP(d *Driver, ip string) (*FloatingIP, error)
GetFloatingIPPoolID(d *Driver) (string, error)
version: '2.3'
services:
foo:
image: busybox
command: echo "Hello World ~"
version: '2'
services:
solr6:
image: solr:6.6
volumes:
- ./docker/solr/schema.xml:/opt/solr/example/solr/collection1/conf/schema.xml:Z
- ./docker/solr/solrconfig.xml:/opt/solr/example/solr/collection1/conf/solrconfig.xml:Z
- data-solr-2:/opt/solr
volumes:
data-solr-2:
time="2017-07-26T16:18:18.018065758-07:00" level=debug msg="Listener created for HTTP on unix (/var/run/docker.sock)"
time="2017-07-26T16:18:18.018634351-07:00" level=info msg="libcontainerd: new containerd process, pid: 11641"
time="2017-07-26T16:18:18.025166468-07:00" level=warning msg="containerd: low RLIMIT_NOFILE changing to max" current=1024 max=1048576
time="2017-07-26T16:18:18.02543859-07:00" level=debug msg="containerd: read past events" count=0
time="2017-07-26T16:18:18.025514637-07:00" level=debug msg="containerd: supervisor running" cpus=4 memory=7678 runtime=docker-runc runtimeArgs=[] stateDir="/var/run/docker/libcontainerd/containerd"
time="2017-07-26T16:18:18.025633505-07:00" level=debug msg="containerd: grpc api on /var/run/docker/libcontainerd/docker-containerd.sock"
time="2017-07-26T16:18:18.519060485-07:00" level=debug msg="libcontainerd: containerd health check returned error: rpc error: code = Unavailable desc = grpc: the connection is unavailable"
time="2017-07-26T16:18:19.0190420
#!/bin/bash
docker-compose down -v 2&>/dev/null
docker rmi -f qctools_web 2&>/dev/null
docker ps -a -f name=qctools_ -q | xargs docker rm -f 2&>/dev/null
docker volume rm qctools_dbdata 2&>/dev/null
echo "Cleanup complete"
@shin-
shin- / test_file_bind.py
Created April 23, 2015 00:31
test_file_bind.py
import os
import shutil
import tempfile
import unittest
import docker
import six
DEFAULT_BASE_URL = os.environ.get('DOCKER_HOST')
DEBUG (pid[48] tid[139684818196224] module[accounts.middleware]): SSO process_request: /repos/joffrey/
DEBUG (pid[48] tid[139684818196224] module[common.views]): redirecting the user to: https://registry-hub.dev.docker.com/repos/joffrey/
DEBUG (pid[48] tid[139684818196224] module[accounts.middleware]): SSO process_response
DEBUG (pid[62] tid[139684818196224] module[accounts.middleware]): SSO process_request: /api/v1.1/o/authorize/
DEBUG (pid[62] tid[139684818196224] module[api_views]): Handling OAuth Authorize request.
DEBUG (pid[62] tid[139684818196224] module[oauthlib]): Validating redirection uri https://registry-hub.dev.docker.com/account/dockerio_auth_complete/ for client TestClientID.
DEBUG (pid[62] tid[139684818196224] module[oauthlib]): Using provided redirect_uri https://registry-hub.dev.docker.com/account/dockerio_auth_complete/
DEBUG (pid[62] tid[139684818196224] module[oauthlib]): Validating access to scopes [u'profile_read', u'profile_write', u'email_read', u'email_write', u'change_password', u'e