Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

LQ haibinpark

💭
I may be slow to respond.
Block or report user

Report or block haibinpark

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rgaidot
rgaidot / docker-resources.md
Last active Feb 21, 2020
Docker Resources All In One - A collection of docker online resources
View docker-resources.md
View supervisor-tomcat.conf
[program:tomcat6]
command=/opt/tomcat6-instance/bin/supervisor-wrapper.sh
View gist:6458572

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
View editor.html
data:text/html,
<style type="text/css">
#e {
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
font-size:16px;
}
@chuangbo
chuangbo / README.md
Last active Feb 20, 2020
Python dynamic DNSPod DNS Script
View README.md

替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

获取 API Token 的方式

获得 domain_id 可以用 curl

curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`
@border
border / Makefile
Created Jan 12, 2011
json example in golang
View Makefile
include $(GOROOT)/src/Make.inc
GOFMT=gofmt -spaces=true -tabindent=false -tabwidth=4
all:
$(GC) jsontest.go
$(LD) -o jsontest.out jsontest.$O
format:
$(GOFMT) -w jsontest.go
You can’t perform that action at this time.