Navigation Menu

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-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
}
@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 / 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 / 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 / termiWidget.js
Last active April 21, 2024 01:04
🍋 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"

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 / 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.