Skip to content

Instantly share code, notes, and snippets.

View reyoung's full-sized avatar

Yang Yu reyoung

  • Tencent
  • Beijing
View GitHub Profile
@domenic
domenic / 0-github-actions.md
Last active May 26, 2024 07:43
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with GitHub Actions

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:

  • It is much easier and requires less steps, because you are already authenticated with GitHub, so you don't need to share secret keys across services like you do when coordinate Travis CI and GitHub.
  • It is free, with no quotas.
  • Anecdotally, builds are much faster with GitHub Actions than with Travis CI, especially in terms of time spent waiting for a builder.
@adyp
adyp / tailurl.bash
Last active August 9, 2024 13:13 — forked from habibutsu/tail.sh
Improved version of the "tailurl" utility to "tail" a file published via an URL: allows user/password authentication; can use password file; variable read chunk size, in order to keep up with real filling rate (e.g. busy logs); support for "-f / -F / -s" similar to the classic "tail" utility; supports idle timestamping (iChat style); supports ex…
#!/bin/bash
#
# Source: https://gist.github.com/bsdcon/7224196
# Original: https://gist.github.com/habibutsu/5420781
# Modified by Adrian Penisoara << ady+tailurl (at) bsdconsultants.com >>
#
# Last update: 8 Aug 2014
#
@reyoung
reyoung / MoinMoin Initd Service
Last active December 13, 2015 21:09
MoinMoin Init.d service script
#!/bin/bash
#
# chkconfig: 35 90 12
# description: moin server
#
. /etc/init.d/functions
LOCK_FILE=/var/lock/subsys/Moin
MOIN_HOME=/home/wiki/moin-1.9.6
LOG=/var/log/Moin.log
MOIN_USER=wiki
@yefuchs
yefuchs / gfw_contributors.md
Last active March 4, 2024 05:24
GFW Contributers

#The Great Firewall (GFW) Contributors List

注:数据来源为 dblp 和 cndblp, 下面括号中的数字表示 dblp 中显示的跟方滨兴合作论文的数量

###Binxing Fang (方滨兴)

中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网络方向首席科学家
http://en.wikipedia.org/wiki/Fang_Binxing

@reyoung
reyoung / convert.bat
Created May 8, 2012 03:59
Convert png,jpg,bmp file to eps.
@ECHO OFF
:: @abstract This script convert all jpg,png,bmp files in current path to eps files.
:: 这个脚本可以将本目录的所有jpg,png,bmp转换成eps文件。
:: @note The bmeps command must exist and in system PATH.
:: 必须在系统中有bmeps命令,如果按照完整版CTex,就已经存在了。
:: @author reyoung <[email protected]>