Skip to content

Instantly share code, notes, and snippets.

View TangliziGit's full-sized avatar
🌰
幸せになっています

Chunxu Zhang TangliziGit

🌰
幸せになっています
View GitHub Profile
const superagent = require("superagent");
const fs = require('fs');
const pageUrl = "https://jw.ustc.edu.cn/for-std/course-select/352169/turn/481/select";
const userAgent = "USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36'";
const addLessonUrl = 'https://jw.ustc.edu.cn/ws/for-std/course-select/add-request';
const cookiePromise = new Promise((res, rej) => {
fs.readFile('./config.json', (err, data) => {
if (err) rej(err);
else res(data)
@dims
dims / README.md
Last active July 28, 2024 14:16
Kubernetes Resources
@TomFaulkner
TomFaulkner / Yabai_Configs.md
Last active July 21, 2024 13:03
Yabai configs

This is my current (as of 4/30/2020) Yabai and skhdrc config as well as the Ubersicht (http://tracesof.net/uebersicht/) widget I use rather than the Yabai status bar. I went this route rather than the built-in status bar because I didn't like how Yabai as of 2.0.1 handled multiple monitors in the status bar.

Nothing is too far from defaults here, and the spaces.coffee was something I found linked in an issue on Yabai's github page.

@coco98
coco98 / kube-registry.yaml
Created May 2, 2017 16:31
Docker registry on minikube
apiVersion: v1
kind: ReplicationController
metadata:
name: kube-registry-v0
namespace: kube-system
labels:
k8s-app: kube-registry
version: v0
spec:
replicas: 1