Skip to content

Instantly share code, notes, and snippets.

@wayspurrchen
wayspurrchen / gist:b6fd4eb085edf54406b7
Last active January 20, 2024 22:49
Web Performance Optimization Techniques
@robyoung
robyoung / isolation_level.py
Last active January 31, 2022 06:35
Flask-SQLAlchemy set per request isolation level
def isolation_level(level):
"""Return a Flask view decorator to set SQLAlchemy isolation level
Usage::
@main.route("/thingy/<id>", methods=["POST"])
@isolation_level("SERIALIZABLE")
def update_a_thing(id):
...
"""
def decorator(view):
@msporny
msporny / shell.sh
Created November 26, 2015 01:20
Script to install nodejs 0.10.40
curl -sL https://deb.nodesource.com/setup_0.10 | bash -
apt-get install -y nodejs=0.10.40-*
@hellokaton
hellokaton / mac-multiple-version.md
Last active July 23, 2024 11:00
mac下多个jdk版本共存

修改系统环境变量,以自如的切换多个版本的 jdk

vi ~/.bash_profile 并填写下文内容
source ~/.bash_profile // 刷新环境变量
java -version // 查看当前的 jdk 版本

需要填写的内容为: