Skip to content

Instantly share code, notes, and snippets.

View malcolmyu's full-sized avatar
:octocat:

Minghao Yu malcolmyu

:octocat:
View GitHub Profile
@malcolmyu
malcolmyu / ss.sh
Last active January 28, 2026 15:48
#!/usr/bin/env bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#
# Auto install Shadowsocks Server (all version) - Modified to skip pcre and libev-devel installation
#
# Copyright (C) 2016-2019 Teddysun <i@teddysun.com>
# Modified: Skip pcre and libev-devel installation (user already has these packages installed manually)
#
# System Required: CentOS 6+, Debian7+, Ubuntu12+
@malcolmyu
malcolmyu / py.js
Created October 18, 2016 07:56
download emoticons
var https = require('https')
var http = require('http')
var fs = require('fs')
var path = require('path')
var url = 'https://raw.githubusercontent.com/spacelan/wechat-emoticon/master/emoticons.json'
https.get(url, function(res) {
var data = ''
res.setEncoding('utf8')
res.on('data', function(chunk) {