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
| sudo socat "UNIX-LISTEN:/var/run/docker.sock,reuseaddr,fork" EXEC:'ssh -i /Users/dims/.ssh/id_dsa dims@192.168.1.30 socat STDIO UNIX-CONNECT\:/var/run/docker.sock' |
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 docker | |
| base_url = 'unix://var/run/docker.sock' | |
| print(">>>>>> CLIENT") | |
| client = docker.Client(base_url=base_url, | |
| version='1.14', | |
| timeout=10) | |
| print(">>>>>> CLIENT LOGS") | |
| log_stream = client.logs('20ce0b3c8f5d', stream=True) |
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
| sudo socat -x -v -d -d "UNIX-LISTEN:/var/run/docker2.sock,reuseaddr,fork" "UNIX-CONNECT:/var/run/docker.sock" |
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
| #!/usr/bin/env python | |
| from launchpadlib import uris | |
| from launchpadlib.launchpad import Launchpad | |
| def get_abandoned_bugs(projects=None): | |
| if projects is None: | |
| projects = [ | |
| 'nova' |
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
| #!/usr/bin/python | |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may | |
| # not use this file except in compliance with the License. You may obtain | |
| # a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
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
| #/etc/my.conf | |
| [DEFAULT] | |
| ########### | |
| # Logging # | |
| ########### | |
| # syslog server configuration (default port(UDP): 514) | |
| # NOTE: Following logging configuration can be left as is for logs to come on UI | |
| syslog_host=127.0.0.1 |
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 sys | |
| from oslo.config import cfg | |
| from oslo_log import log as oslo_logging | |
| CONF = cfg.CONF | |
| CONF.register_opt(cfg.StrOpt('NODE_NAME'), cfg.OptGroup('HA')) | |
| def main(): | |
| oslo_logging.register_options(CONF) | |
| CONF(sys.argv[1:], default_config_files=['app.conf']) |
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
| set -x | |
| git fetch origin | |
| git checkout -b $1 | |
| git branch -u $1 | |
| git branch --set-upstream-to=origin/$1 $1 | |
| git reset --hard origin/$1 | |
| git pull |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.