Skip to content

Instantly share code, notes, and snippets.

View iqiancheng's full-sized avatar
🌴
On vacation

千橙 iqiancheng

🌴
On vacation
View GitHub Profile
// Website you intended to retrieve for users.
const upstream = 'api.openai.com'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = upstream
// Countries and regions where you wish to suspend your service.
@iqiancheng
iqiancheng / confluence-comment-navigator.user.js
Created April 10, 2024 03:27 — forked from ideadapt/confluence-comment-navigator.js
Confluence Inline Comment Navigator via prev & next Links
// ==UserScript==
// @name Confluence Inline Comment Navigator
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Navigate through all open inline comments on a confluence page
// @author kunz@ideadapt.net
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @include *://*/*confluence/display/*
// @include *://*/*confluence/display/*
@iqiancheng
iqiancheng / Texify-Mathjax.user.js
Created March 1, 2024 02:42 — forked from arshsingh/Texify-Mathjax.js
A Tampermonkey / Greasemonkey script that turns LaTeX code on page into mathematical symbols using MathJax
// ==UserScript==
// @name TeXify the World MathJax
// @namespace
// @version 1.0
// @description Enables MathJax to process LaTeX on all websites. Based off SOUP (Stack Overflow Unofficial Patch) and http://www.math.ucla.edu/~robjohn/math/mathjax.html.
// @include *
// @copyright
// ==/UserScript==
/*
var mathjaxVersion = "http://cdn.mathjax.org";
@iqiancheng
iqiancheng / hdiutil.txt
Created February 26, 2024 07:34 — forked from NapoleonWils0n/hdiutil.txt
macosx: hdiutil creating disk images
hdiutil
Creating Internet-enabled Disk images
hdiutil internet-enable -yes /Path/to/image/myapp.dmg
burn an iso
@iqiancheng
iqiancheng / wsj.user.js
Created February 22, 2024 02:24 — forked from casbeebc/wsj.user.js
Wall Street Journal Paywall bypass
/* jshint esversion: 6 */
// ==UserScript==
// @name WSJ and Barrons Paywall Hack - No Popup Confirmation
// @description Paywall bypass for WSJ and Barrons without any confirmation popup
// @match https://www.wsj.com/*
// @match https://www.barrons.com/*
// @run-at document-end
// @grant none
// @version 1
// ==/UserScript==
@iqiancheng
iqiancheng / medium.user.js
Created February 19, 2024 07:42 — forked from mathix420/medium.user.js
Bypass Medium Paywall - Working late 2023 - Greasy Fork, Violentmonkey, Tampermonkey
// ==UserScript==
// @name Medium Paywall Bypass
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 2.1
// @inject-into content
@iqiancheng
iqiancheng / layernorm_vs_fused.py
Last active January 30, 2024 09:24 — forked from ptrblck/layernorm_vs_fused
layernorm_vs_fused
import torch
import torch.nn as nn
torch.backends.cudnn.benchmark = True
from apex.normalization import FusedLayerNorm
import time
@iqiancheng
iqiancheng / tag_v2ex_username.user.js
Created December 18, 2023 09:24 — forked from y4code/tag_v2ex_username.js
给 V2EX 用户打标签
// ==UserScript==
// @name 给 V2EX 用户打标签
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.v2ex.com/*
// @match http*://*.v2ex.com/*
// @match http*://v2ex.com/*s
// @match https://v2ex.com/
@iqiancheng
iqiancheng / download-youtube-subtitles.user.js
Last active January 15, 2024 07:43 — forked from kugland/download-youtube-subtitles.js
Download YouTube subtitles (GreaseMonkey/TamperMonkey script)
// ==UserScript==
// @name Download YouTube subtitles
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Now you can download YouTube subtitles
// @author André Kugland
// @match http*://*.youtube.com/*
// @grant none
// @require https://cdn.jsdelivr.net/npm/file-saver@2.0.2/dist/FileSaver.min.js#sha256=bbf27552b76b9379c260579fa68793320239be2535ba3083bb67d75e84898e18
// ==/UserScript==
@iqiancheng
iqiancheng / arxiv_social_media.user.js
Created November 2, 2023 03:35 — forked from Xeophon/arxiv_social_media.js
Arxiv Discussions Tampermonkey Script
// ==UserScript==
// @name Arxiv Twitter Search
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Add discussions links to Arxiv
// @author Xeophon + ChatGPT
// @match https://arxiv.org/abs/*
// @grant GM_xmlhttpRequest
// ==/UserScript==