Skip to content

Instantly share code, notes, and snippets.

View LianSheng197's full-sized avatar
🎉
支持有意義的事 / Support meaningful things.

b0ring LianSheng197

🎉
支持有意義的事 / Support meaningful things.
  • Home
  • 10:49 (UTC +08:00)
View GitHub Profile
@supersonictw
supersonictw / sshws.sh
Last active March 11, 2025 05:10
Bypass SSH protocol via WebSocket traffics curl -sSL https://ncurl.xyz/s/vG9S64ySR | sh -
#!/bin/bash
# sshws.sh - Bypass SSH protocol via WebSocket traffics
# SPDX-License-Identifier: MIT (https://ncurl.xyz/s/o_o6DVqIR)
# https://gist.github.com/supersonictw/6f98d8c5f2d1850b91fbddb8ebf1ef23
# Client:
# ssh -o ProxyCommand="wstunnel client -L stdio://%h:%p ws://example.com:2530" 127.0.0.1
WSTUNNEL_DOWNLOAD="https://github.com/erebe/wstunnel/releases/download/v9.6.1/wstunnel_9.6.1_linux_amd64.tar.gz"
WSTUNNEL_TMP_PATH_PREFIX="/tmp/wstunnel"
@lumynou5
lumynou5 / youtube-commenter-names.user.js
Last active January 31, 2025 13:22
Make YouTube display the names of commenters instead of their handles.
// ==UserScript==
// @name YouTube Commenter Names
// @version 1.6.7
// @description Make YouTube display the names of commenters instead of their handles.
// @author Lumynous
// @license MIT
// @match https://www.youtube.com/*
// @match https://studio.youtube.com/*
// @noframes
// @downloadURL https://gist.github.com/lumynou5/74bcbab54cd9d8fcd3c873fffbac5d3d/raw/youtube-commenter-names.user.js
@allenk
allenk / deepclean.cmd
Last active April 19, 2025 04:39
ASUS Software Clean Up Tool
@echo off
:: ------------------------------------------------------------------------------------------------------------
:: Clean Up ASUS All
:: ------------------------------------------------------------------------------------------------------------
:: The tool helps to clean up all ASUS software from system
:: ------------------------------------------------------------------------------------------------------------
:: Before running the tools,
:: 1. Complete backup your system.
:: 2. Disable ASUS Apps from BIOS (MyASUS and Armoury)
:: 3. Run ASUS remove tools (Armoury Crate Uninstall Tool.exe, or geek_uninstall.exe).
@OrangeDrangon
OrangeDrangon / README.md
Last active April 3, 2025 14:01
BitBurner Contract Solvers

All of the scripts for contracts in Bitburner.

@BookGin
BookGin / 臺灣學術倫理教育資源中心 台灣學術倫理教育資訊中心 題庫 答案 解答 .txt
Last active March 28, 2025 16:20
學術倫理 解答,臺灣學術倫理教育資源中心 台灣學術倫理教育資訊中心 題庫 答案 解答 ,請大家留言補充更多解答 或是修正答案 感謝!
使用方法:Ctrl + F 直接輸入題目關鍵字搜尋即可
請大家留言補充更多解答 或是修正答案,感謝各位的貢獻!
臺灣學術倫理教育資源中心
https://ethics.moe.edu.tw/exam/
其他資源:
@imba-tjd
imba-tjd / .Cloud.md
Last active April 20, 2025 10:09
☁️ 一些免费的云资源

  • IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装。PaaS提供语言环境和框架(可以自己选)。SaaS只能使用开发好的软件(卖软件本身,如税务会计、表格文字处理)。BaaS一般类似于非关系数据库,但各家不通用
  • 云服务的特点:零前期成本 & 按需付费 & 弹性(类似于租,可随时多加、退掉;但没有残值)、高可用(放在机房中,不同AZ间水电隔离)

其他人的集合

@holmberd
holmberd / linux-kill-pts.md
Last active April 11, 2025 23:29
Kill tty/pts sessions in Linux

Kill user tty/pts sessions in Linux

Commands

  • w: show who is logged on and what they are doing
  • who: show who is logged on
  • tty: show current users pseudo terminal
  • ps -ft pts/1: get process id for the pseudo terminal
  • pkill: signal process based on name and other attributes
const linkEl = document.createElement('link');
linkEl.rel = 'prefetch';
linkEl.href = urlWithYourPreciousData;
document.head.appendChild(linkEl);
@bob-lee
bob-lee / polyfill-ie11-nodelist-foreach.js
Created November 24, 2017 18:41
Polyfill for IE11 missing NodeList.forEach
if ('NodeList' in window && !NodeList.prototype.forEach) {
console.info('polyfill for IE11');
NodeList.prototype.forEach = function (callback, thisArg) {
thisArg = thisArg || window;
for (var i = 0; i < this.length; i++) {
callback.call(thisArg, this[i], i, this);
}
};
}
@maxivak
maxivak / __upload_file.md
Last active January 30, 2025 19:11
PHP upload file with curl (multipart/form-data)

We want to upload file to a server with POST HTTP request. We will use curl functions.


// data fields for POST request
$fields = array("f1"=>"value1", "another_field2"=>"anothervalue");

// files to upload
$filenames = array("/tmp/1.jpg", "/tmp/2.png");