Skip to content

Instantly share code, notes, and snippets.

View nonefffds's full-sized avatar
:octocat:
入試準備中

FDS nonefffds

:octocat:
入試準備中
View GitHub Profile
@nonefffds
nonefffds / Elk-Floating-Compose.user.js
Last active February 24, 2023 01:41
Add Floating Compose Button on Elk.zone
// ==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
@nonefffds
nonefffds / autologin.sh
Last active May 6, 2022 01:21
Autologin to school network (自动登录学校校园网)
#!/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
@nonefffds
nonefffds / TwitterVerified.html
Created May 5, 2021 09:53
Twitter Verified Bedge
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
@nonefffds
nonefffds / fetch_zhaokao.sh
Last active June 1, 2020 14:55
Push notification if zhaokao.net is updated
#!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
@nonefffds
nonefffds / taobao-homepage-banner-disable.js
Last active May 31, 2020 16:21
taobao-homepage-banner-disable
/* ==UserStyle==
@name test banner remove
@author nonefffds
@version 1.1
@namespace cascadea304633902
@preprocessor default
==/UserStyle== */
@-moz-document domain("taobao.com")
{
@nonefffds
nonefffds / bvtest.py
Created March 30, 2020 06:27 — forked from abc1763613206/bvtest.py
BVID Validate
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',
@nonefffds
nonefffds / bilibili-av-bv-converter.applescript
Last active November 15, 2022 16:42
bilibili av bv converter w/ AppleScript
#bilibili-av-bv-converter
#Date: March 29,2020
#Language: AppleScript
#License: WTFPL licence
#Algorithm Implementations
#Global Varibles
global S
global table
global xor
@nonefffds
nonefffds / random_post.md
Last active May 3, 2019 05:36
dunno what it is and randomly posted

what it is I dunno

[TOC] (does github support table of content or I dunno how to use it?)

Brief

For I dunno what this so I created this gist.

Comments