Skip to content

Instantly share code, notes, and snippets.

View wangrongding's full-sized avatar
🦄
breakthrough!

荣顶 wangrongding

🦄
breakthrough!
View GitHub Profile
@wangrongding
wangrongding / visitors.md
Last active July 27, 2021 07:10
visitors
@wangrongding
wangrongding / cloudSettings
Last active August 2, 2021 02:23
codeSettings
{"lastUpload":"2021-08-02T02:23:30.459Z","extensionVersion":"v3.4.3"}
<!DOCTYPE html>
<p id="greeting"></p>
<script type="module">
import {Runtime, Inspector, Library} from "https://unpkg.com/@observablehq/notebook-runtime?module";
import notebook from "https://api.observablehq.com/d/6c9b7fd62ca784c0.js";
// Rewrite the notebook to redefine the “subject” cell in the main module.
const override = {
id: notebook.id,
@wangrongding
wangrongding / index.html
Created August 26, 2021 08:09
Rotating ASCII Globe
<div id="output"></div>
# Shadowrocket: 2022-05-01 16:08:47
[General]
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local, captive.apple.com
tun-excluded-routes = 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 192.168.0.0/16, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32
dns-server = system
ipv6 = true
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@wangrongding
wangrongding / package.json
Created October 10, 2022 05:54 — forked from adamreisnz/package.json
Simple pure npm scripts build process
{
"name": "project-name",
"description": "Template for static sites",
"version": "1.0.0",
"homepage": "http://www.project-name.com",
"author": {
"name": "Adam Reis",
"url": "http://adam.reis.nz"
},
"license": "UNLICENSED",
@wangrongding
wangrongding / disable-low-volume.md
Last active October 17, 2022 16:25 — forked from yimity/disable-low-volume
禁用 Mac QQ 开启视频其他媒体声音变低的功能

printf "p (char)(void(*)())AudioDeviceDuck=0xc3\nq" | lldb -n QQ

"printf "p (char)(void(*)())AudioDeviceDuck=0xc3\nq" | lldb -n FaceTime"

printf "p (char)(void(*)())AudioDeviceDuck=0xc3\nq" | lldb -n WeChat

sound control

全局关闭

@wangrongding
wangrongding / esm-package.md
Created December 31, 2022 03:24 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.

There are lots of command lines which can be used with the Google Chrome browser. Some change behavior of features, others are for debugging or experimenting. This page lists the available switches including their conditions and descriptions. Last automated update occurred on 2018-10-20.

Condition Explanation
-- Report pseudo allocation traces. Pseudo traces are derived from currently active trace events.
--/prefetch:1 /prefetch:# arguments to use when launching various process types. It has been observed that when file reads are consistent for 3 process launches with the same /prefetch:# argument, the Windows prefetcher starts issuing reads in batch at process launch. Because reads depend on the process type, the prefetcher wouldn't be able to observe consistent reads if no /prefetch:# arguments were used. Note that the browser process has no /prefetch:# argument; as such a