Skip to content

Instantly share code, notes, and snippets.

View katrina376's full-sized avatar

Katrina Chan katrina376

View GitHub Profile
@billy3321
billy3321 / Markdown Cheatsheet 中文版.md
Last active December 10, 2025 09:58
Markdown Cheatsheet 中文版
@hezhao
hezhao / django_cmd.sh
Last active May 1, 2024 07:22
Django Commands Cheatsheet
# Use Python 3 for easy unicode
$ virtualenv -p python3 .env
$ source .env/bin/activate
$ pip install django
$ deactivate
# Start new django project and app
$ django-admin.py startproject mysite
$ ./manage.py migrate
$ ./manage.py createsuperuser
@jamestalmage
jamestalmage / forward.md
Last active June 12, 2025 10:19
Using Firebase to Authenticate to Google Drive

Note: There is a lot of information here, but if I have provided a link, it is probably something you should click on and read. OAuth is a complex enough subject on it's own, and hacking these two services together only adds to it.

Even so, I have found Firebase's API to be simpler than almost any other OAuth solution I have explored. When all is said and done, the important bits of code related to authentication is actually less than 10 lines. If you have ever tried to implement your own OAuth flow before, you know how amazing that is.

In the end, it may be worth using Firebase for authentication, even if that's the ONLY thing you use it for.

@wengole
wengole / gist:da32d292b42b9195ceaf
Last active November 9, 2017 18:35
Install xapian and bindings for python3 inside virtualenv
export VENV=$VIRTUAL_ENV
mkdir $VENV/packages && cd $VENV/packages
export XAP_VER=1.3.2
curl -O http://oligarchy.co.uk/xapian/$XAP_VER/xapian-core-$XAP_VER.tar.xz
curl -O http://oligarchy.co.uk/xapian/$XAP_VER/xapian-bindings-$XAP_VER.tar.xz
tar xvf xapian-core-$XAP_VER.tar.xz
tar xvf xapian-bindings-$XAP_VER.tar.xz
@soheilhy
soheilhy / nginxproxy.md
Last active July 5, 2025 15:29
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@luw2007
luw2007 / 词性标记.md
Last active June 11, 2025 07:59
词性标记: 包含 ICTPOS3.0词性标记集、ICTCLAS 汉语词性标注集、jieba 字典中出现的词性、simhash 中可以忽略的部分词性

词的分类

  • 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
  • 虚词:副词、介词、连词、助词、拟声词、叹词。

ICTPOS3.0词性标记集

n 名词

nr 人名

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active January 4, 2026 12:41
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname