Skip to content

Instantly share code, notes, and snippets.

View shuizhongyueming's full-sized avatar
🎯
Focusing

happy wang shuizhongyueming

🎯
Focusing
View GitHub Profile
@crpietschmann
crpietschmann / gencert.sh
Last active February 20, 2024 14:17
OpenSSL Generate 4096-bit Certificate (Public/Private Key Encryption) with SHA256 Fingerprint
# Generate Private Key and Certificate using RSA 256 encryption (4096-bit key)
openssl req -x509 -newkey rsa:4096 -keyout privatekey.pem -out certificate.pem -days 365
# Alternatively, setting the "-newkey" parameter to "rsa:2048" will generate a 2048-bit key.
# Generate PKCS#12 (P12) file for cert; combines both key and certificate together
openssl pkcs12 -export -inkey privatekey.pem -in certificate.pem -out cert.pfx
# Generate SHA256 Fingerprint for Certificate and export to a file
openssl x509 -noout -fingerprint -sha256 -inform pem -in certificate.pem >> fingerprint.txt
@SiZapPaaiGwat
SiZapPaaiGwat / chinese-words.txt
Created May 13, 2016 06:18
常用汉字表3500(简体+繁体)
一乙乙二二十十丁丁廠厂七七蔔卜人人入入八八九九幾几兒儿了了力力乃乃刀刀又又三三於于幹干虧亏士士工工土土才才寸寸下下大大丈丈與与萬万上上小小口口巾巾山山千千乞乞川川億亿個个勺勺
久凡凡及及夕夕丸丸麽么廣广亡亡門门義义之之屍尸弓弓己己已已子子衛卫也也女女飛飞刃刃習习叉叉馬马鄉乡豐丰王王井井開开夫夫天天無无元元專专雲云紮扎藝艺木木五五支支廳厅不不太太犬犬
区歷历尤尤友友匹匹車车巨巨牙牙屯屯比比互互切切瓦瓦止止少少日日中中岡冈貝贝內内水水見见午午牛牛手手毛毛氣气升升長长仁仁什什片片仆仆化化仇仇幣币仍仍僅仅斤斤爪爪反反介介父父從从
今兇凶分分乏乏公公倉仓月月氏氏勿勿欠欠風风丹丹勻匀烏乌鳳凤勾勾文文六六方方火火為为鬥斗憶忆訂订計计戶户認认心心尺尺引引醜丑巴巴孔孔隊队辦办以以允允予予勸劝雙双書书幻幻玉玉刊刊
示末末未未擊击打打巧巧正正撲扑扒扒功功扔扔去去甘甘世世古古節节本本術术可可丙丙左左厲厉右右石石布布龍龙平平滅灭軋轧東东卡卡北北占占業业舊旧帥帅歸归且且旦旦目目葉叶甲甲申申叮叮
电號号田田由由史史只只央央兄兄叼叼叫叫另另叨叨嘆叹四四生生失失禾禾丘丘付付仗仗代代仙仙們们儀仪白白仔仔他他斥斥瓜瓜乎乎叢丛令令用用甩甩印印樂乐句句匆匆冊册犯犯外外處处冬冬鳥鸟
务包包饑饥主主市市立立閃闪蘭兰半半汁汁匯汇頭头漢汉寧宁穴穴它它討讨寫写讓让禮礼訓训必必議议訊讯記记永永司司尼尼民民出出遼辽奶奶奴奴加加召召皮皮邊边發发孕孕聖圣對对臺台矛矛糾纠
母幼幼絲丝式式刑刑動动扛扛寺寺吉吉扣扣考考托托老老執执鞏巩圾圾擴扩掃扫地地揚扬場场耳耳共共芒芒亞亚芝芝朽朽樸朴機机權权過过臣臣再再協协西西壓压厭厌在在有有百百存存而而頁页匠匠
夸奪夺灰灰達达列列死死成成夾夹軌轨邪邪劃划邁迈畢毕至至此此貞贞師师塵尘尖尖劣劣光光當当早早吐吐嚇吓蟲虫曲曲團团同同吊吊吃吃因因吸吸嗎吗嶼屿帆帆歲岁回回豈岂剛刚則则肉肉網网年年
朱先先丟丢舌舌竹竹遷迁喬乔偉伟傳传乒乒乓乓休休伍伍伏伏優优伐伐延延件件任任傷伤價价份份華华仰仰仿仿夥伙偽伪自自血血向向似似後后行行舟舟全全會会殺杀合合兆兆企企眾众爺爷傘伞創创
@xjamundx
xjamundx / blog-webpack-2.md
Last active April 21, 2024 16:20
From Require.js to Webpack - Part 2 (the how)

This is the follow up to a post I wrote recently called From Require.js to Webpack - Party 1 (the why) which was published in my personal blog.

In that post I talked about 3 main reasons for moving from require.js to webpack:

  1. Common JS support
  2. NPM support
  3. a healthy loader/plugin ecosystem.

Here I'll instead talk about some of the technical challenges that we faced during the migration. Despite the clear benefits in developer experience (DX) the setup was fairly difficult and I'd like to cover some of the challanges we faced to make the transition a bit easier.

@qianduan
qianduan / debug.conf
Last active August 29, 2015 14:15
disable x5 cache
#Wed Feb 11 15:27:20 GMT+08:00 2015
setting_froceUseQProxy=false
setting_forceUseSystemWebview=false
@serkanserttop
serkanserttop / datasource-tasks-results
Last active July 15, 2017 23:24
Loopback Model Discovery, bug?
//DataSource.prototype.discoverSchemas
//async.parallel(tasks, function (err, results) {
// console.log(results);
//https://github.com/strongloop/loopback-datasource-juggler/blob/master/lib/datasource.js#L1205
[
[
{ owner: 'chosendb',
tableName: 'chosentable',
columnName: 'id'
},
@julianshapiro
julianshapiro / IE.js
Last active August 2, 2017 01:02
Future-Proof IE Version Detection Without User Agent Sniffing
var IE = (function() {
if (document.documentMode) {
return document.documentMode;
} else {
for (var i = 7; i > 4; i--) {
var div = document.createElement("div");
div.innerHTML = "<!--[if IE " + i + "]><span></span><![endif]-->";
if (div.getElementsByTagName("span").length) {
@matthewriley
matthewriley / gist:4694850
Last active October 24, 2018 01:48
Install Git 1.8.1.2 from source on CentOS 6.3

Install Git 1.8.1.2 from source on CentOS 6.3

These are the Terminal commands I recently used (Feb 2013) to install Git 1.8.1.2 from source on CentOS 6.3. I ran this in a VirtualBox VM after a fresh install from the ISO.

You mileage will vary as the yum packages are updated over time. The yum install line below should include all the dependencies, at least it did for me. Eventually yum install git will include 1.8.x but until then I hope this helps.

cd ~/Downloads
su
yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel curl-devel perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker
@jayj
jayj / flexbox.less
Last active November 20, 2023 04:51
CSS3 Flexbox - LESS Mixins
// --------------------------------------------------
// Flexbox LESS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
// flex or inline-flex
.flex-display(@display: flex) {
display: ~"-webkit-@{display}";
display: ~"-ms-@{display}box"; // IE10 uses -ms-flexbox
@jonathantneal
jonathantneal / README.md
Created September 19, 2012 06:34
Polyfill the EventListener interface in IE8

EventListener Polyfill

Is IE8 your new IE6? Level the playing field with polyfills.

This script polyfills addEventListener, removeEventListener, and dispatchEvent. It is less than half a kilobyte minified and gzipped.

addEventListener

addEventListener registers a single event listener on a single target.

<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->