Skip to content

Instantly share code, notes, and snippets.

View haibinpark's full-sized avatar
💭
I may be slow to respond.

LQ haibinpark

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

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