Sysctl
Bootloader
Mandatory Access Control
Sandboxing
Root Tweaks
Extra Tweaks
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""An example of a cache decorator.""" | |
import json | |
from functools import wraps | |
from redis import StrictRedis | |
redis = StrictRedis() | |
def cached(func): |
This is a high level, non-exhaustive overview on how to migrate your mod from to 1.20.4 from 1.20.5. This does not look at any specific mod loader, just the changes to the vanilla classes.
This primer is licensed under the Creative Commons Attribution 4.0 International, so feel free to use it as a reference and leave a link so that other readers can consume the primer.
If there's any incorrect or missing information, please leave a comment below. Thanks!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Silly speed test just by downloading a file directly to /dev/null | |
# Useful on routers which only have busybox installed. | |
# ↄ⃝🄯 B9 2016, 2018, 2023. Creative Commons Zero. | |
# NOTA BENE: cachefly has worked for over a decade, however they may | |
# be getting tired of scripts like this. Starting February 2023, their | |
# 100mb.test file is empty and the 50mb.test file holds 100MB. | |
dotest() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
<https://stackoverflow.com/questions/40296831/is-it-possible-to-force-a-copy-of-a-protected-google-doc> | |
NOTE - 2021-05-24 | |
----------------- | |
The script below isn't the fastest way to copy-and-paste from a protected | |
Google Doc. Before trying it, I'd suggest following MikoFrosty's advice from | |
the comments: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm set registry https://registry.npmmirror.com # 注册模块镜像 | |
npm set disturl https://npmmirror.com/mirrors/node/ # node-gyp 编译依赖的 node 源码镜像 | |
## 以下选择添加 | |
npm set sass_binary_site https://npmmirror.com/mirrors/node-sass/ # node-sass 二进制包镜像 | |
npm set electron_mirror https://npmmirror.com/mirrors/electron/ # electron 二进制包镜像 | |
npm set puppeteer_download_host https://npmmirror.com/mirrors # puppeteer 二进制包镜像 | |
npm set chromedriver_cdnurl https://npmmirror.com/mirrors/chromedriver/ # chromedriver 二进制包镜像 | |
npm set operadriver_cdnurl https://npmmirror.com/mirrors/operadriver/ # operadriver 二进制包镜像 | |
npm set phantomjs_cdnurl https://npmmirror.com/mirrors/phantomjs/ # phantomjs 二进制包镜像 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/fontforge | |
# Usage: fontforge -script ttc2ttf.pe /path/to/font.ttc | |
fonts = FontsInFile($1) | |
n = SizeOf(fonts) | |
i = 0 | |
while (i < n) | |
Open($1 + "(" + fonts[i] + ")", 1) | |
index = ToString(i + 1) |
NewerOlder