Skip to content

Instantly share code, notes, and snippets.

View spencerwooo's full-sized avatar
🍊
An orange

Spencer (Shangbo Wu) spencerwooo

🍊
An orange
View GitHub Profile
@spencerwooo
spencerwooo / resinWidget.js
Last active December 6, 2022 22:57
Current Resin for Genshin Impact
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-brown; icon-glyph: magic;
const config = new Array()
// ========= ↓将生成的配置粘贴这以下↓=========
config[0] = "" // uid
config[1] = "cn_gf01" // cn_gf01 天空岛 or cn_qd01 世界树
config[2] = "" // cookie
// ========= ↑将生成的配置粘贴这以上↑ ========
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spencerwooo
spencerwooo / anaconda_multiuser_postinstall.sh
Last active July 3, 2023 07:34
GPU server maintainence scripts
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
# See: https://docs.anaconda.com/anaconda/install/multi-user/
echo "[➤] Multi-user installation for Anaconda >>>"
# Check for root access
if [ "$EUID" -ne 0 ]
then echo "[✘] Please run as root, exiting >>>"
exit

Keybase proof

I hereby claim:

  • I am spencerwooo on github.
  • I am spencerwoo (https://keybase.io/spencerwoo) on keybase.
  • I have a public key ASCtXMcCY0UpKPF6NpoLlwJT3xXsD5nzunxF2ei4gBRBkgo

To claim this, I am signing this object:

@spencerwooo
spencerwooo / termiWidget.js
Last active September 22, 2024 21:46
🍋 TermiWidget - Terminal-like Widget for iOS 14, made with Scriptable.
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: orange; icon-glyph: quote-right;
// Change these to your usernames!
const user = "spencer"
const jike = "4DDA0425-FB41-4188-89E4-952CA15E3C5E"
const telegram = "realSpencerWoo"
const github = "spencerwooo"
@spencerwooo
spencerwooo / ttrss-theme-black-two-column.css
Created March 13, 2020 07:07
Tiny Tiny RSS Black (Pink) Theme with two columns
@import url("https://fonts.googleapis.com/css?family=Miriam+Libre:400,700|Rubik:400&display=swap");
a.title {
font-family: "Miriam Libre", Noto Sans CJK SC, Sarasa Gothic SC,
Microsoft YaHei, sans-serif, Apple Color Emoji, Segoe UI Emoji !important;
}
#content-wrap#content-wrap .content,
#content-wrap#content-wrap .content-inner,
#feedTree,
body {
font-family: rubik, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica,
@spencerwooo
spencerwooo / ttrss-theme.css
Last active March 29, 2024 02:12
Tiny Tiny RSS Pink-Feedly Theme
@import url(https://fonts.googleapis.com/css?family=Miriam+Libre:400,700&display=swap);
a.title {
font-family: 'Miriam Libre', Noto Sans CJK SC, Microsoft YaHei, sans-serif, Apple Color Emoji, Segoe UI Emoji!important
}
#content-wrap#content-wrap .content,
#content-wrap#content-wrap .content-inner,
#feedTree,
body {
font-family: Avenir Next, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, PingFang SC, Noto Sans CJK SC, Microsoft YaHei, sans-serif, Apple Color Emoji, Segoe UI Emoji!important
@spencerwooo
spencerwooo / 01-2.js
Created July 27, 2019 09:59
Medium Gist
let credentialWorker = worker()
credentialWorker.generate(seed, currentCourseId, rynmParams)
.then(credentials => {
... // Do what ever you want with `credentials`
})
@spencerwooo
spencerwooo / 01-1.js
Last active July 27, 2019 10:00
Medium Code Highlights
const SHA256 = require('crypto-js/sha256') // 在哈希算法里面用到了 SHA256
const BigInteger = require('jsbn').BigInteger // 整个认证算法都需要大整数的支持
export function generate(seed, currentCourseId, rynmParams) {
let credentials = {}
... // Complicated algorithm
return credentials
}