Skip to content

Instantly share code, notes, and snippets.

View JaysonHwang's full-sized avatar
🌴
On vacation

huangzhenjie JaysonHwang

🌴
On vacation
View GitHub Profile
#docker run -d -p 8022:22 -p 3000:3000 -p 3001:3001 -p 3002:3002 -p 31500:31500 -p 31511:31511 -p 31512:31512 -p 8000:8000 -p 139:139 -p 145:145 --privileged -it --restart=always --name u_1 ubuntuok1
version: '3.3'
services:
ubuntuok1:
ports:
- '8022:22'
- '3000:3000'
- '3001:3001'
- '3002:3002'
@JaysonHwang
JaysonHwang / deep-merge-pure.js
Last active May 29, 2019 02:13 — forked from ahtcx/deep-merge.js
Deep-Merge JavaScript objects with ES6
const deepMergePure = (dst, src)=>{
const simpleClone = (jsonObj)=>{
return JSON.parse(JSON.stringify(jsonObj));
}
//////deep-merge.js start
const merge = (target, source) => {
// Iterate through `source` properties and if an `Object` set property to merge of `target` and `source` properties
for (let key of Object.keys(source)) {
if (source[key] instanceof Object) Object.assign(source[key], merge(target[key], source[key]));
}
@JaysonHwang
JaysonHwang / php.rb
Last active May 4, 2023 00:36 — forked from jeroenoldenburger/php.rb
PHP 5.2 Formula for Homebrew
require 'Formulary'
def mysql_installed?
`which mysql_config`.length > 0
end
class Php < Formula
url 'http://museum.php.net/php5/php-5.2.17.tar.gz'
homepage ''
sha256 '1abe07c1fdd64184708a3ba179abcfcca5662a4e0d2037eb2748b75abc42e767'
@JaysonHwang
JaysonHwang / 0_dataStructures_and_algorithms.md
Last active January 21, 2017 03:58
javascript数据结构和算法

目录

  1. Array 数组
  2. Stack 堆栈
  3. Queue 队列
  4. MinPriorityQueue 最小值优先队列
  5. MaxPriorityQueue 最大值优先队列
  6. LinkedList 链表
  7. Set 集合
  8. Dictionary 字典
  9. HashTable 散列表
@JaysonHwang
JaysonHwang / .wgetrc
Last active January 16, 2017 09:39
proxy setting for wget:http
http_proxy=http://127.0.0.1:8123
@JaysonHwang
JaysonHwang / .polipo
Last active January 16, 2017 09:38
proxy setting for polipo:socks5 to http
socksParentProxy = "127.0.0.1:1080"
socksProxyType = socks5
proxyAddress = "127.0.0.1"
proxyPort = 8123
@JaysonHwang
JaysonHwang / .curlrc
Last active January 16, 2017 09:38
proxy setting for curl:socks5
socks5 = "127.0.0.1:1080"