Skip to content

Instantly share code, notes, and snippets.

View iqiancheng's full-sized avatar
🌴
On vacation

千橙 iqiancheng

🌴
On vacation
View GitHub Profile
@iqiancheng
iqiancheng / show_gids.sh
Created July 12, 2024 14:08 — forked from aagontuk/show_gids.sh
Show GID
#!/bin/bash
black='\E[30;50m'
red='\E[31;50m'
green='\E[32;50m'
yellow='\E[33;50m'
@iqiancheng
iqiancheng / README.md
Created July 5, 2024 01:13 — forked from curran/README.md
Simplemaps World Cities Database

A dataset about cities of the world.

Downloaded from Simplemaps: World Cities Database.

A new file worldcitiesReduced.csv was created by manually removing columns not deemed necessary for initial visualization of this data.

@iqiancheng
iqiancheng / hatenalet-indicator-reviver.user.js
Created July 1, 2024 11:54 — forked from noromanba/hatenalet-indicator-reviver.user.js
revive "[saving...]" indicator on Hatena::Let for UserScript
// ==UserScript==
// @name Hatena::Let indicator reviver
// @namespace https://noromanba.github.com
// @description revive "[saving...]" indicator on Hatena::Let for UserScript
// @include *://let.hatelabo.jp/l
// @grant none
// @noframes
// @run-at document-end
// @version 2018.5.14.1
// @homepage https://gist.github.com/noromanba/ceaf1067aea7c3855ce7b57fe5ae1887
@iqiancheng
iqiancheng / 404ToArchive.user.js
Created July 1, 2024 11:54 — forked from wolf20482/404ToArchive.js
A Tampermonkey userscript that automatically redirects 404 pages to the latest archived version in Internet Archive.
// ==UserScript==
// @name 404ToArchive
// @namespace wolf20482
// @version 1.0.0
// @description Automatically redirects 404 pages to the latest archive in Internet Archive.
// @author wolf20482
// @license MIT
// @match http://*
// @match https://*
// @match http://*/*
// ==UserScript==
// @name GitHub Artifacts login bypass
// @description Allows you to download an artifact from GitHub or web archive using nightly.link
// @author DelofJ
// @version 1.0
// @namespace https://gist.github.com/DelofJ/a81c27f473045bb01b50c3dc6ca51a2f
// @icon https://github.githubassets.com/favicons/favicon.png
// @downloadURL https://gist.githubusercontent.com/DelofJ/a81c27f473045bb01b50c3dc6ca51a2f/raw/e59e6323aef2072b8a24839dc2dcc04f80b3c109/github-artifact-redirect.user.json
// @updateURL https://gist.githubusercontent.com/DelofJ/a81c27f473045bb01b50c3dc6ca51a2f/raw/e59e6323aef2072b8a24839dc2dcc04f80b3c109/github-artifact-redirect.user.json
// @grant none
@iqiancheng
iqiancheng / AutoWB.user.js
Created July 1, 2024 11:52 — forked from ATRescue/AutoWB.js
UserScript to automatically save visited pages into the Wayback Machine.
/* This Userscript helps you preserving websites by automatically saving pages you visit, including their linked subpages and other linked URLs, into Internet Archive's Wayback Machine.
Run this UserScript using the following tools:
Desktop browsers:
* GreaseMonkey for Mozilla Firefox: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
* TamperMonkey for Google Chrome: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
* TamperMonkey for Chromium-Opera Browser: https://addons.opera.com/en/extensions/details/tampermonkey-beta/
@iqiancheng
iqiancheng / docker-registry-mirrors.md
Created June 6, 2024 08:49 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

// 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";