Skip to content

Instantly share code, notes, and snippets.

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

Xiaoxing Ye Yexiaoxing

👋
Hey :)
View GitHub Profile
@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

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 / README.md
Last active June 26, 2018 03:49
Plugin for Jekyll to insert videos from Youku or Tudou.

这是一个用于Jekyll的youku、tudou嵌入插件。

This is a plugin meant for Jekyll.

用例:

Example use:

将youku.rb和/或tudou.rb文件拷贝至_plugins目录下,然后在文章中输入以下代码即可嵌入。

@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 / 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;

CSS Google Now

Google Now is coming to Chrome sometime in the future. Can't wait...

Make sure you focus on the input field. That's about it right now.

A Pen by Bennett Feely on CodePen.

License.

#安同(anthonos)软件源
deb {baseurl}/anthonos/ incoming/
deb {baseurl}/anthonos/ incoming:i386/
#安同最新KDE源(kde-latest)
deb {baseurl}/anthonos/ kde-latest/
#CentralPoint软件源
deb {baseurl}/centralpoint/ release/
deb {baseurl}/centralpoint/ aurora/
deb {baseurl}/centralpoint/ aurora-kernel/
#Heartl软件源
#!/bin/sh
# Change this line to the URI path of the xcode DMG file.
# XCode 3.2.5
#XCODE_PATH="/ios/ios_sdk_4.2__final/xcode_3.2.5_and_ios_sdk_4.2_final.dmg"
# XCode 4
#XCODE_PATH="/Developer_Tools/xcode_4_and_ios_sdk_4.3__final/xcode_4_and_ios_sdk_4.3__final.dmg"