Skip to content

Instantly share code, notes, and snippets.

@yestangchu
yestangchu / config.yaml
Created May 12, 2024 11:12 — forked from liuran001/config.yaml
mihomo (Clash Meta) 懒人配置
# mihomo (Clash Meta) 懒人配置
# 版本 V1.5-240507
# https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33
# https://obdo.cc/meta
# 作者: 笨蛋ovo (bdovo.cc)
# Telegram: https://t.me/baka_not_baka
# 关注我的 Telegram 频道谢谢喵 https://t.me/s/BDovo_Channel
# 修改自官方示例规则 https://wiki.metacubex.one/example/#meta
# 转载请保留此注释
# 尽量添加了较为详尽的注释,不理解的地方建议对照 虚空终端 (Clash Meta) Docs 进行理解

How to setup a practically free CDN using Backblaze B2 and Cloudflare

⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,

@h3ssan
h3ssan / JetBrains trial reset.md
Last active May 12, 2024 11:07
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

@hyblocker
hyblocker / README.md
Last active May 12, 2024 11:06
Unity Docs Syntax Highlighting
@aklap
aklap / checking_shasums.md
Last active May 12, 2024 11:05
How to check a file's shasum

How to check file integrity with shasum


For verifying the integrity (but not authenticity of data, i.e., who authored it or the origin of the file) of a file, it is necessary to run a checksum function on the file which will output a value and compare it to a previously stored checksum value; if both values match, we can be relatively confident that the file hasn't been tampered with or altered.

You might be asked to verify a file's sha1sum or sha2sum–-all this means is calculating and verifying the cryptographic sha1 or sha2 hash value or digest included in the file.

Various commands and methods for verifying shasum 1 or 2:


Organic:
In terminal run:

@satyrius
satyrius / exercise-56.go
Created October 23, 2013 06:33
A Tour of Go. Exercise: Errors. Copy your Sqrt function from the earlier exercises and modify it to return an error value. Sqrt should return a non-nil error value when given a negative number, as it doesn't support complex numbers. Create a new type type ErrNegativeSqrt float64 and make it an error by giving it a func (e ErrNegativeSqrt) Error(…
package main
import (
"fmt"
)
type ErrNegativeSqrt float64
func (e ErrNegativeSqrt) Error() string {
return fmt.Sprintf("cannot Sqrt negative number: %v", float64(e))
@hagino3000
hagino3000 / client.js
Created December 8, 2011 18:42
WebSocket with binary data
var socket = null;
function bootstrap() {
// 適当な図形を描画
var c = document.getElementById('mycanvas');
var ctx = c.getContext('2d');
ctx.globalalpha = 0.3;
for(var i=0; i<1000; i++) {
ctx.beginPath();
@liuran001
liuran001 / config.yaml
Last active May 12, 2024 11:12
mihomo (Clash Meta) 懒人配置
# mihomo (Clash Meta) 懒人配置
# 版本 V1.5-240507
# https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33
# https://obdo.cc/meta
# 作者: 笨蛋ovo (bdovo.cc)
# Telegram: https://t.me/baka_not_baka
# 关注我的 Telegram 频道谢谢喵 https://t.me/s/BDovo_Channel
# 修改自官方示例规则 https://wiki.metacubex.one/example/#meta
# 转载请保留此注释
# 尽量添加了较为详尽的注释,不理解的地方建议对照 虚空终端 (Clash Meta) Docs 进行理解
@TinsFox
TinsFox / utilities.css
Created May 11, 2024 02:49
simple tailwindcss utilities
.pointer-events-none { pointer-events : none }
.pointer-events-auto { pointer-events : auto }
.visible { visibility : visible }
.invisible { visibility : hidden }
.collapse { visibility : collapse }
.static { position : static }
.fixed { position : fixed }
.absolute { position : absolute }
.relative { position : relative }
.sticky { position : sticky }
@panakuma
panakuma / NTT NGN internal address
Created February 9, 2021 18:41
NTT東西のNGN網内で使われているIP一覧
# 東日本
0000,2020/09/17 09:23:31
1111,2404:01a8:7e00:0000:0000:0000:0000:0000/40
1211,2404:01a8:0000:0000:0000:0000:0000:0000/32
1212,2001:0c90:0000:0000:0000:0000:0000:0000/33
1311,2408:0210:0000:0000:0000:0000:0000:0000/30
1411,2400:2410:0000:0000:0000:0000:0000:0000/30
1412,2409:0010:0000:0000:0000:0000:0000:0000/30
1413,240b:0010:0000:0000:0000:0000:0000:0000/30
1414,2404:7a80:0000:0000:0000:0000:0000:0000/30