Skip to content

Instantly share code, notes, and snippets.

View guoew's full-sized avatar
🎯
Focusing

guoew

🎯
Focusing
View GitHub Profile
@guoew
guoew / install_jenkins_plugin.sh
Created May 15, 2018 09:28 — forked from micw/install_jenkins_plugin.sh
Script to install one or more jenkins plugins including dependencies while jenkins is offline
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "USAGE: $0 plugin1 plugin2 ..."
exit 1
fi
plugin_dir=/var/lib/jenkins/plugins
@guoew
guoew / post.lua
Created March 8, 2018 13:47 — forked from defp/post.lua
use luasocket send post data
#!/usr/bin/env lua
local http=require("socket.http");
local request_body = [[login=user&password=123]]
local response_body = {}
local res, code, response_headers = http.request{
url = "http://httpbin.org/post",
method = "POST",
headers =