Skip to content

Instantly share code, notes, and snippets.

View Yexiaoxing's full-sized avatar
👋
Hey :)

Xiaoxing Ye Yexiaoxing

👋
Hey :)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am yexiaoxing on github.
  • I am xiaoxing (https://keybase.io/xiaoxing) on keybase.
  • I have a public key ASDx-9uuXG23882q6mP0pC4izhqt9PT9stXTrkxipLOzeQo

To claim this, I am signing this object:

@Yexiaoxing
Yexiaoxing / docker-compose.yaml
Created January 4, 2018 18:01
Docker Compose for Mailman 3
version: '2'
services:
mailman-core:
image: maxking/mailman-core:0.1
container_name: mailman-core
hostname: mailman-core
volumes:
- /opt/mailman/core:/opt/mailman/
stop_grace_period: 30s
@Yexiaoxing
Yexiaoxing / cusz_course_reg_ocr_byebye.js
Last active December 24, 2017 13:40
CUHK-Shenzhen Course Registration VCode OCR, Byebye!
// ==UserScript==
// @name Ultra OCR for CUHKSZ Course Reg.
// @namespace http://example.com/
// @version 0.2
// @description try to take over the world!
// @author You
// @match http://course.computercomity.com:81/psc/csprd/EMPLOYEE/HRMS/c/SA_LEARNER_SERVICES.*
// @match http://116.31.95.2:81/psc/csprd/EMPLOYEE/HRMS/c/SA_LEARNER_SERVICES.*
// @grant none
// ==/UserScript==

What / Why

Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.

As the name says, its primary function is to be used in the deploy process, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.

How to

  1. Generate a ssh key
@Yexiaoxing
Yexiaoxing / palabre-zhcn-desc
Last active August 29, 2015 14:19
Palabre Chinese Translation
Palabre is your unique source for daily/hourly news from RSS feeds and Feedly. By the author of Plume (Twitter client), Beautiful Widgets and Bright Weather!
Palabre 是一款独特的 RSS 新闻及 Feedly 阅读器。如果你曾经用过 Plume (一款 Twitter 客户端)、Beautiful Widgets 和 Bright Weather 的话,你会喜欢上它的!
Featuring a modern material design, this application will help you reading news and articles from your favorite topics.
Did you take a look at the screenshots? You will understand how much love we put in Palabre in order to provide a clean, beautiful and easy to use news application.
这款应用使用了 Material 设计,如果你有看过截图,你就会知道我们为了打造这样一款干净、漂亮、易用的新闻阅读器,投入了多少心血。试试吧!
Features 特性
- RSS support
- RSS 支持
- Feedly support with full synchronisation of articles
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 46.7%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#428bca",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",
@Yexiaoxing
Yexiaoxing / hotp.php
Created August 23, 2014 08:02 — forked from oott123/hotp.php
<?php
//配置部分
$password = '这里是验证的密码';
$authkeypair = array(
'帐号标题' => 'Secret key',
'帐号标题2' => 'key2',
);
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
#!/bin/bash
iptables -I INPUT -p udp -m udp --sport 53 -m u32 --u32 "0&0x0F000000=0x05000000 && 22&0xFFFF@16=0x1010101,0xffffffff,0x4a7d7f66,0x4a7d9b66,0x4a7d2766,0x4a7d2771,0xd155e58a,0x42442b2,0x807c62d,0x253d369e" -j DROP
iptables -I INPUT -p udp -m udp --sport 53 -m u32 --u32 "0&0x0F000000=0x05000000 && 22&0xFFFF@16=0x2e52ae44,0x3b1803ad,0x402158a1,0x4021632f,0x4042a3fb,0x4168cafc,0x41a0db71,0x422dfced,0x480ecd68,0x480ecd63" -j DROP
iptables -I INPUT -p udp -m udp --sport 53 -m u32 --u32 "0&0x0F000000=0x05000000 && 22&0xFFFF@16=0x4e10310f,0x5d2e0859,0x80797e8b,0x9f6a794b,0xa9840d67,0xc043c606,0xca6a0102,0xcab50755,0xcba1e6ab,0xcb620741" -j DROP
iptables -I INPUT -p udp -m udp --sport 53 -m u32 --u32 "0&0x0F000000=0x05000000 && 22&0xFFFF@16=0xcf0c5862,0xd0381f2b,0xd1913632,0xd1dc1eae,0xd1244921,0xd155e58a,0xd35e4293,0xd5a9fb23,0xd8ddbcb6,0xd8eab30d" -j DROP
iptables -I INPUT -p udp -m udp --sport 53 -m u32 --u32 "0&0x0F000000=0x05000000 && 22&0xFFFF@16=0xf3b9bb03,0xf3b9bb27,0x807c62d,0xf3b9bb1e,0x9f1803ad
@Yexiaoxing
Yexiaoxing / discuz_checklogin.php
Created November 16, 2013 12:43
discuz_checklogin.php
<?php
require './source/class/class_core.php';
$discuz = & discuz_core::instance();
$discuz->init_cron = false;
$discuz->init_session = false;
$discuz->init();
if (!empty($_G['uid'])){
//logged in
}else{
//not login yet
/**
* "Google Now" Card
*/
body {
background: #e1e1e1;
min-height: 100%;
margin: auto;
}
ul.gNow {
width: 450px;