Skip to content

Instantly share code, notes, and snippets.

@ye-fight
ye-fight / install_jenkins_plugin.sh
Created March 5, 2019 02:00 — forked from hoesler/install_jenkins_plugin.sh
Script to install one or more jenkins plugins including dependencies while jenkins is offline
#!/usr/bin/env bash
set -e
set -o pipefail
plugin_repo_url="http://updates.jenkins-ci.org/download/plugins"
plugin_dir="/var/lib/jenkins/plugins"
include_optionals=false
showUsage() {
@ye-fight
ye-fight / install_openresty_in_mac.md
Last active February 14, 2019 01:53 — forked from ejlp12/install_openresty_in_mac.md
Install openresty in Mac OS-X

在 MacOS 安装 OpenResty

brew update
brew install pcre openssl

wget https://openresty.org/download/openresty-1.13.6.2.tar.gz
tar xzvf openresty-1.13.6.2.tar.gz
cd openresty-1.13.6.2
@ye-fight
ye-fight / replace-zero-width-space.php
Created February 27, 2018 01:05 — forked from ahmadazimi/replace-zero-width-space.php
PHP replace Zero Width Space using preg_replace
<?php
/**
* http://stackoverflow.com/questions/11305797/remove-zero-width-space-characters-from-a-javascript-string
* U+200B zero width space
* U+200C zero width non-joiner Unicode code point
* U+200D zero width joiner Unicode code point
* U+FEFF zero width no-break space Unicode code point
*/