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 / hyper.js
Last active December 4, 2018 12:37
My hyper.js details
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'canary',
@spencerwooo
spencerwooo / ohmy.ahk
Last active December 11, 2018 11:36
My autohotkey
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#q:: ; Windows + Q closes active window
WinGetTitle, Title, A
PostMessage, 0x112, 0xF060,,, %Title%
return
@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
}

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 / 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,
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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
// ========= ↑将生成的配置粘贴这以上↑ ========
@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