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 / arxiv_latex_zapper.user.js
Last active July 1, 2024 13:10
LaTeX Cleanup UserScript for arXiv
// ==UserScript==
// @name arXiv LaTeX Zapper.user.js
// @namespace https://gist.github.com/iqiancheng
// @author qian.cheng
// @version 0.3
// @description Zap those pesky LaTeX elements that snuck into the HTML on arXiv
// @downloadURL https://gist.githubusercontent.com/iqiancheng/9945010cc85209185618c964bdd84fd1/raw/969a26e502d4487569a561013612eb6b019bfb1b/arxiv_latex_zapper.user.js
// @updateURL https://gist.githubusercontent.com/iqiancheng/9945010cc85209185618c964bdd84fd1/raw/969a26e502d4487569a561013612eb6b019bfb1b/arxiv_latex_zapper.user.js
// @match *://ar5iv.labs.arxiv.org/html/*
// @match *://arxiv.org/html/*
@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+

@iqiancheng
iqiancheng / maintain_chattts_voice_consistency.md
Last active June 4, 2024 02:31
ChatTTS 保存并基本固定音色的方法 how to keep ChattTTS voice tone properly

保存并基本固定音色的方法

采用core里的sample_random_speaker方法随机生成音色:

text = "简短的测试文字,可以节省生成测试语音的时间"

rand_spk = chat.sample_random_speaker()
params_infer_code = {
    'prompt':'[speed_5]',
 'temperature':.3,
@iqiancheng
iqiancheng / .licensemac
Created May 31, 2024 09:02
TablePlus license Demo
`ls ~/Library/Application\ Support/com.tinyapp.TablePlus/.licensemac`