Skip to content

Instantly share code, notes, and snippets.

View e10101's full-sized avatar

Eason e10101

  • Auckland, New Zealand
View GitHub Profile
@e10101
e10101 / README.md
Last active September 25, 2024 10:31
How to setup multiple Github Runner with Docker command

For Repo

function github-runner {
    org=$(dirname $1)
    repo=$(basename $1)
    token=$2
    index=$3
    tag=${4:-latest}
    runner_group=${5:-Default}
@e10101
e10101 / learn.md
Created August 31, 2024 10:34
Learn Gist

Hello World!

# Create a new Rust project
cargo new learn_rust

# Change directory to the new folder
cd learn_rust
@e10101
e10101 / cs752-graph.cypher
Created May 6, 2019 11:43
Cypher - CS752 - Graph
CREATE (weidong: Student {name: "Weidong"})
CREATE (pan: Student {name: "Pan"})
CREATE (yishi: Student {name: "Yishi"})
CREATE (studentY: Student {name: "Student Y"})
CREATE (cs752: Course {name: "COMPSCI 752"})
CREATE (cs700: Course {name: "COMPSCI 700"})
CREATE (stats782: Course {name: "STATS 782"})
CREATE (scient701: Course {name: "SCIENT 701"})
@e10101
e10101 / anz-term-deposit-progress-bar.js
Last active June 6, 2018 09:39
If you want to see your term deposit progress on the ANZ website, you can use this script by using tampermonkey
// ==UserScript==
// @name [ANZ]Term Deposit Progress Bar
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://*.anz.co.nz/IBCS/service/home
// @grant none
// ==/UserScript==
@e10101
e10101 / iqa.js
Last active November 22, 2016 15:39
A Progress Checker for NZQA IQA - NodeJS
// AUTHOR: Yishi Guo
// DATE: 22/11/2016
// A Progress Checker for NZQA IQA.
var request = require('request');
var cheerio = require('cheerio');
var colors = require('colors');
var argv = require('optimist')
.usage('Usage: $0 --username [username] --password [password] --id [applicant id] --num [application id]')
.alias('username', 'u')
@e10101
e10101 / Dockerfile
Last active December 3, 2019 16:16
Add google noto-cjk font to docker image.
RUN cd /usr/local/share/fonts/ \
&& wget "https://github.com/googlei18n/noto-cjk/blob/master/NotoSansCJKsc-Medium.otf?raw=true" \
&& fc-cache -f -v