Skip to content

Instantly share code, notes, and snippets.

@shynome
shynome / README.md
Last active September 22, 2023 13:47
bilibili B站 主播流水导出

how to use

将下方内容添加为书签, 点击添加数据导出按钮

javascript:(j=>fetch(j).then(r=>r.text()).then(b=>new Function(b)).then(b=>b()))(`data:application/javascript;base64,Ly8gQHRzLWNoZWNrCgpjb25zdCBiYXNlQXBpID0KCSdodHRwczovL2FwaS5saXZlLmJpbGliaWxpLmNvbS94bGl2ZS9yZXZlbnVlL3YxL2dpZnRTdHJlYW0vZ2V0UmVjZWl2ZWRHaWZ0U3RyZWFtTmV4dExpc3Q/bGltaXQ9MjAnCgovKioKICogQHR5cGVkZWYge3tjb2RlOm51bWJlcjttZXNzYWdlOnN0cmluZztkYXRhOlR9fSBCaWxpYmlsaVJlc3BvbnNlPFQ+CiAqIEB0ZW1wbGF0ZSB7YW55fSBUCiAqLwoKLyoqCiAqIEB0eXBlZGVmIHtvYmplY3R9IERhdGEKICogQHByb3Age0l0ZW1bXX0gbGlzdAogKiBAcHJvcCB7MHwxfSBoYXNfbW9yZQogKiBAdHlwZWRlZiB7b2JqZWN0fSBJdGVtCiAqIEBwcm9wIHtzdHJpbmd9IGlkCiAqLwoKLyoqCiAqIEBwYXJhbSB7c3RyaW5nfSBkYXkg5aaCOiAyMDIzLTA5LTAzCiAqLwphc3luYyBmdW5jdGlvbiBleHBvcnREYXkoZGF5KSB7CglsZXQgbGFzdF9pZAoJbGV0IGhhc19tb3JlID0gMQoJbGV0IGl0ZW1zID0gW10KCXdoaWxlIChoYXNfbW9yZSA9PT0gMSkgewoJCWxldCBkID0gYXdhaXQgZmV0Y2hMaXN0KGRheSwgbGFzdF9pZCkKCQloYXNfbW9yZSA9IGQuaGFzX21vcmUKCQlpdGVtcy5wdXNoKC4uLmQubGlzdCkKCQlpZiAoaGFzX21vcmUpIHsKCQkJbGFzdF9pZCA9IGQubGlzdC5zbGl
@shynome
shynome / 00-svelte.config.js
Last active July 7, 2022 17:34 — forked from bluwy/sequence.js
Run Svelte preprocessors in the sequence they are declared
// Example usage
import { sequence } from './sequence.mjs'
import cssModules from "svelte-preprocess-cssmodules";
export default {
preprocess: sequence([sveltePreprocess(), cssModules()]),
}
@shynome
shynome / Office_kms
Created January 18, 2019 08:00 — forked from CHEF-KOCH/KMS_office.cmd
KMS server Windows
cd\Program Files\Microsoft Office\Office16
cd\Program Files (x86)\Microsoft Office\Office16
cscript OSPP.VBS /sethst:kms.digiboy.ir
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms
@shynome
shynome / README.md
Created September 5, 2018 06:25
ssh 灵活应用跳板机访问内网机器

如果有一台一直运行公网服务器 host_public 的话, 可以这么弄

把一台内网服务器的 ssh 端口 映射到 host_public 的本地端口上, 称为 jump_host

ssh -NT -R 127.0.0.1:233:127.0.0.1:22 public_host
# -NT 表示只做转发
# -R 233:127.0.0.1:22 表示本地的 22 端口转发到公网服务器的 127.0.0.1:233 端口
# 这个进程用进程管理工具保证运行
@shynome
shynome / drone.js
Created June 22, 2018 14:43
Drone Reference Environment
/**
* @typedef { 'failure'|'success' } BUILD_STATUS
* @typedef { 'push' | 'pull_request' | 'tag' } BUILD_EVENT
*/
module.exports = new Proxy({
/**environment architecture (linux/amd64) */
arch: '',
/**repository full name */
@shynome
shynome / Dockerfile
Last active June 12, 2018 11:04
Tmux sshd alpine container
FROM hermsi/alpine-sshd
EXPOSE 22
ENTRYPOINT ["/entrypoint.sh"]
RUN set -e && \
sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && \
apk add --no-cache vim tmux
@shynome
shynome / README.md
Last active June 6, 2018 15:53
Centos 快速安装 Docker

一条命令快速在 CentOS 上安装 Docker

curl https://gist.github.com/shynome/567e4535892bea77c2df2507ebc9b18e/raw/307e15382d4d8d2bf31d1e9232b95129cd3900e3/install.sh | sh
@shynome
shynome / readme.md
Last active March 5, 2018 02:40 — forked from techgaun/readme.md
OpenSSH 7.4 on Ubuntu 16.04

Installing OpenSSH on Ubuntu 16.04

version='7.4'
sudo apt install -y build-essential libssl-dev zlib1g-dev
wget "http://mirrors.evowise.com/pub/OpenBSD/OpenSSH/portable/openssh-${version}p1.tar.gz"
tar xfz openssh-${version}p1.tar.gz && cd openssh-${version}p1
./configure
make
sudo make install
@shynome
shynome / .hyper.js
Created March 4, 2018 16:23
hyper issue 2018-3-5
// 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: 'stable',
@shynome
shynome / MANUAL.md
Created January 13, 2018 11:15 — forked from s-lyn/MANUAL.md
Deploy nodejs app with gitlab.com and pm2

Deploy nodejs app with gitlab.com and pm2

This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:

  • Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
  • Windows 10 on my PC to work.