Skip to content

Instantly share code, notes, and snippets.

View gabrielchl's full-sized avatar
😈

Gabriel Lee gabrielchl

😈
View GitHub Profile
@gabrielchl
gabrielchl / structured-data-usage.py
Last active May 16, 2020 09:31
structured-data-usage.py
# written by gabrielchl
# on 12 May 2020
import requests
import threading
import queue
done_adding = False
q = queue.Queue()
@gabrielchl
gabrielchl / git-analysis-commands.txt
Last active March 7, 2021 02:32
Commands for git tools
gitinspector -TwHmr --format=html --file-types=java,c,cc,cpp,h,hh,hpp,py,glsl,rb,js,sql,data --grading > gitinspector.html
gitstats . ../gitstats
gource --auto-skip-seconds 0.01 --time-scale 3
@gabrielchl
gabrielchl / lancs-cs-y2-qa.txt
Created October 4, 2019 12:37
LANCS CS Y2 QA
Q1: % to Aggregation Score
A1: https://i.imgur.com/rqRKil1.png
Q2: Part 2 Coordinator
A2: https://www.lancaster.ac.uk/scc/about-us/people/carolyn-nicols
# Level 0
Here's where you start: http://overthewire.org/wargames/bandit/bandit0.html
The login information is given.
Username: bandit0
Password: bandit0
# Level 1
$ ls
There's a file in your home directory, readme
$ cat readme
@gabrielchl
gabrielchl / enWikiAdoptUserTemp.py
Last active April 7, 2018 05:17
Update user pages (adopter or adoptee of the Wikipedia:Adopt-a-user project) according to their availability according to their activity and edit count.
# Script written by Gabriel Lee Chi Hong
# English Wikipedia user page: https://en.wikipedia.org/wiki/User:Gabrielchihonglee
#
# Written in March, 2018 (Just before my public exam, DSE)
# BRFA: https://en.wikipedia.org/wiki/Wikipedia:Bots/Requests_for_approval/Gabrielchihonglee-Bot_6
#
# Published under the terms of MIT License
# https://choosealicense.com/licenses/mit/
from __future__ import unicode_literals
@gabrielchl
gabrielchl / comInterWiki.py
Last active April 18, 2018 14:03
Remove redundant interlanguage links from category pages that are already linked by {{Interwiki from Wikidata}}.
# Script written by Gabriel Lee Chi Hong
# Commons user page: https://commons.wikimedia.org/wiki/User:Gabrielchihonglee
#
# With great support from Zhuyifei1999
# Commons user page: https://commons.wikimedia.org/wiki/User:Zhuyifei1999
#
# Written in Late-March, 2018 (During my public exam, DSE)
# BRFA: https://commons.wikimedia.org/wiki/Commons:Bots/Requests/Gabrielchihonglee-Bot_(4)
#
# Published under the terms of MIT License