Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

LQ haibinpark

💭
I may be slow to respond.
View GitHub Profile
View gist:b95d9ffec00446b09fcfba5c914b8532
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import time
# 遍历指定目录,显示目录下的所有文件名
def convertWebp2JpgInDirectory(dir):
if os.path.isdir(dir):
View supervisor-tomcat.conf
[program:tomcat6]
command=/opt/tomcat6-instance/bin/supervisor-wrapper.sh
@haibinpark
haibinpark / docker-resources.md
Created Jan 7, 2016 — forked from rgaidot/docker-resources.md
Docker Resources All In One - A collection of docker online resources
View docker-resources.md
View gist:6595679

This is a temporary workaround to have etcd listening on all interfaces so you can access it from docker containers.

Add a local etcd unit file

Create a file called /media/state/units/etcd-local.service that has the following contents:

[Unit]
Description=etcd local
You can’t perform that action at this time.