[TOC] (does github support table of content or I dunno how to use it?)
For I dunno what this so I created this gist.
#bilibili-av-bv-converter | |
#Date: March 29,2020 | |
#Language: AppleScript | |
#License: WTFPL licence | |
#Algorithm Implementations | |
#Global Varibles | |
global S | |
global table | |
global xor |
import requests | |
import json | |
import random | |
Back_URL = 'https://api.bilibili.com/x/web-interface/archive/stat?aid=' | |
headers = { | |
'Cookie': "Replace Me With REAL COOKIE" , | |
'Pragma': 'no-cache', |
#!bin/zsh | |
# I'll just using zsh as my shell, could be replaced with bash. | |
cd ~/Downloads/zhaokao # Move to directory of operation | |
curl -O http://www.zhaokao.net/gzfwlist\?colid\=all # Download the page with cURL, only main page. | |
mv gzfwlist?colid=all 2.html # Rename | |
diff 1.html 2.html >> diff.txt # Using built-in diff tool to compare | |
if [ -s diff.txt ] ; then # [ -s xxx ] meant to validate if the diff.txt is empty(which meant there's no changes), if it's not empty, then return true |
<!DOCTYPE html> | |
<html lang="en-us"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
</head> | |
<body> |
#!/bin/sh | |
while true; | |
do if ping -c 1 baidu.com >/dev/null 2>&1 ; then | |
sleep 30 | |
else | |
srun-cli -u <USERNAME> -k <PASSWORD> | |
fi |
// ==UserScript== | |
// @name Add Floating Compose Button on Elk | |
// @namespace https://elk.zone | |
// @version 0.1 | |
// @description A personal use case. | |
// @match https://elk.zone/* | |
// @license MIT | |
// @require http://code.jquery.com/jquery-latest.js | |
// @require https://greasyfork.org/scripts/47911-font-awesome-all-js/code/Font-awesome%20AllJs.js?version=275337 | |
// @grant GM_addStyle |