Skip to content

Instantly share code, notes, and snippets.

View cyberchao's full-sized avatar
🌴
On vacation

Andy cyberchao

🌴
On vacation
View GitHub Profile
@deneschen
deneschen / WindowDos批处理指导
Last active September 13, 2022 03:14
WindowDos批处理指导
Windows批处理(cmd/bat)常用命令小结
前言
批处理文件(batch file)包含一系列 DOS命令,通常用于自动执行重复性任务。用户只需双击批处理文件便可执行任务,而无需重复输入相同指令。
编写批处理文件非常简单,但难点在于确保一切按顺序执行。编写严谨的批处理文件可以极大程度地节省时间,在应对重复性工作时尤其有效。
在Windows中善用批处理可以简化很多重复工作
阅读原文 - https://wsgzao.github.io/post/windows-batch/
@gmr
gmr / consul.lua
Created July 14, 2014 17:03
Dynamic Nginx upstream nodes using Consul
module("resty.consul", package.seeall)
_VERSION = '0.1.0'
function service_nodes(service)
local http = require "resty.http"
local json = require "cjson"
local hc = http:new()
local upstream = ""