Skip to content

Instantly share code, notes, and snippets.

Yao Wei medicalwei

Block or report user

Report or block medicalwei

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .vimrc
" goodbye vi
set nocompatible
" plug
filetype off
call plug#begin('~/.vim/plugged')
" Git
Plug 'tpope/vim-fugitive'
@medicalwei
medicalwei / A
Created Sep 17, 2017
Makefile dependency example
View A
This is file A
View vimrc
" goodbye vi
set nocompatible
" plug
filetype off
call plug#begin('~/.vim/plugged')
" Git
Plug 'tpope/vim-fugitive'
View nonogram.txt
http://ichrisi.bizhat.com/custom_js/picross_play.html?29.29|ZurNZ11Yj6UNfFHPgEmqFTIIKjf51ZEEFY0mjK2Yp5eAC3xqgWRN0cwDqEuN10owH1X4wAnkznv3bDYTOlg9XTPFSXe9nwvx_MQPYS1Sg7ZSoAIfjkqiIH1JHrqRhYUQOtO4W3EJVbjs0
Hint: QR Code
---
7 2 2 6 7
1 1 1 1 1 1 1
1 3 1 1 1 2 3 1 3 1
1 3 1 3 1 2 1 3 1
@medicalwei
medicalwei / Dockerfile
Last active Nov 22, 2018
Example Dockerfile with Glide
View Dockerfile
FROM golang:1.8
RUN curl https://glide.sh/get | sh
ENV PKG_NAME=github.com/medicalwei/some-project
ENV PKG_PATH=$GOPATH/src/$PKG_NAME
WORKDIR $PKG_PATH
COPY glide.yaml glide.lock $PKG_PATH/
RUN glide install
View gist:a7ff159110b4105df8a94f4e25530b84
00000000: c2af c2ba c29a 6966 4b2f 45c3 be69 c2ab ......ifK/E..i..
00000010: c298 395e 3151 c296 2a51 c293 0074 2b56 ..9^1Q..*Q...t+V
00000020: 3dc3 a90b 2fc3 98c2 b9c2 bec3 9f57 26c3 =.../........W&.
00000030: 8dc2 a008 2f0c c2ad 5fc3 bcc3 bac3 a9c2 ..../..._.......
00000040: 9556 1103 3f71 c387 c3b5 c283 c3af 66c3 .V..?q........f.
00000050: a546 c3ae c397 c3ab 22c2 b7c3 a03d 71c3 .F......"....=q.
00000060: a9c3 83c3 871a c2a4 c295 c2ac 5bc2 9bc2 ............[...
00000070: 870c 7a1d c2a8 2a1a c2a5 1e17 5a04 c2a3 ..z...*.....Z...
00000080: c2a2 c3a9 75c3 b65c 35c2 a96b c2af c28f ....u..\5..k....
00000090: c3a6 c28f 4c43 0a ....LC.
View ids_generate_font.py
# -*- coding: utf-8 -*-
import sys
import urllib
import fontforge
import psMat
BASE_FONT = "TW-Kai-98_1.ttf"
IDS_URL = "https://tools.wmflabs.org/idsgen/%s.svg?字體=%s"
IDS_FONT = "楷體"
View bufferbloat-pressrelease.md

全球網際網路專家發佈更安全、更可靠的 Wi-Fi 路由器與網際網路計劃
致美國聯邦通信委員會 FCC 的關於強制 Wi-Fi 設備安全性和可更新的請願書

針對 FCC 新提出,用來規範射頻設備如 Wi-Fi 路由器的 [ET Docket No. 15-170][1] 提案,Dave Täht([Bufferbloat 計畫][2] 的聯合創始人)、Vinton Cerf 博士(網際網路共同發明人),以及全球 260 多名網路和資訊安全專家,在提交給美國聯邦通信委員會(FCC)的[請願書][3]中,揭示一種新的方法以提高這些設備的安全性,確保更快、更好、更安全的網際網路。

這一份請願書是在對這一問題的公眾意見徵詢期程提交。

聯邦通訊委員會的前首席技術專家 Dave Farber 支持這一種新方式,他指出:「今天全球有數以億計安裝在住家或辦公室的 Wi-Fi 路由器存在嚴重軟體漏洞,很容易被犯罪分子利用。雖然我們同意 FCC 對這些設備的規範需要更新,我們相信 FCC 擬定的規則欠缺對設備製造商關鍵的課責機制。」

網際網路之父(TCP/IP 共同發明人),Google 高級副總裁兼首席網際網路技術傳教士 Vinton Cerf 博士表示:「我們無法承擔網路架構中的任何地方潰爛的代價。我們會提出這個建議,是因為無線頻譜不僅要負責任地分配,也要負責任地使用。透過要求在網路基礎建設上最起碼的開放性,我們能確保在早期就可以發現、修正任何錯誤或作弊行為。」

View 01.make
2015-07-14 19:21:33 +0800
make
PREFIX=/usr/local/Cellar/mercurial/3.4
install-bin
python setup.py build
running build
running build_mo
warning: hgbuildmo: could not find msgfmt executable, no translations will be built
@medicalwei
medicalwei / fontgen.py
Last active Feb 6, 2016
fontgen.py with faux bold and height adjustment code
View fontgen.py
#!/usr/bin/env python
import argparse
import freetype
import os
import re
import struct
import sys
import itertools
import json
You can’t perform that action at this time.