Skip to content

Instantly share code, notes, and snippets.

@okatu-loli
okatu-loli / bat
Last active May 22, 2024 16:30
临时解决“百度网盘的插件导致 Windows 资源管理器持续占用高 CPU,进而导致资源管理器进程的稳定性下降、系统卡顿”的问题
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
:: 作者: 千石
:: 来源: 蓝点网(https://mp.weixin.qq.com/s/2t9TqXFHkhDcMaVXSvuxnQ)
:: V2EX(https://www.v2ex.com/t/1007324#reply11)
:: 开源地址: https://gist.github.com/okatu-loli/556533c9d925b80eaff86094d5e949f9
echo 作者: 千石
echo 来源: 蓝点网(https://mp.weixin.qq.com/s/2t9TqXFHkhDcMaVXSvuxnQ)
@abc1763613206
abc1763613206 / bvtest.py
Last active July 15, 2024 09:28
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',
powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int PostMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::PostMessage(-1,0x0112,0xF170,2)
@mendeza
mendeza / .vimrc
Last active November 29, 2023 05:09
Simple .vimrc or init.vim for nvim (neovim)
" (N)Vim Configuration File
" vim : place in $HOME/.vimrc
" nvim : place in $HOME/.config/nvim/init.vim
" $ ln -s $HOME/.config/nvim/init.vim $HOME/.vimrc
" General settings
" https://learnvimscriptthehardway.stevelosh.com/
" ---------------------------------------------------------------------------
" drop vi support - kept for vim compatibility but not needed for nvim
" Probably not needed with Vim 8+
"set nocompatible
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y
sudo apt-get install libfreetype6 libfreetype6-dev -y
sudo apt-get install libfontconfig1 libfontconfig1-dev -y
cd ~
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64"
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2
sudo tar xvjf $PHANTOM_JS.tar.bz2
sudo mv $PHANTOM_JS /usr/local/share
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin
@mobzystems
mobzystems / 7-zip.psm1
Last active May 2, 2024 10:49
7-Zip commands for PowerShell
<#
Powershell Module 7-Zip - 7-Zip commands for PowerShell
The functions in this module call 7za.exe, the standAlone version of 7-zip to perform various tasks on 7-zip archives.
Place anywhere, together with 7za.exe and 7zsd.sfx. 7za.exe is required for all operations; 7zsd.sfx for creating self
extracting archives.
http://www.7-zip.org
Import-Module [Your path\]7-Zip
@mondain
mondain / public-stun-list.txt
Last active July 22, 2024 14:09
Public STUN server list
23.21.150.121:3478
iphone-stun.strato-iphone.de:3478
numb.viagenie.ca:3478
s1.taraba.net:3478
s2.taraba.net:3478
stun.12connect.com:3478
stun.12voip.com:3478
stun.1und1.de:3478
stun.2talk.co.nz:3478
stun.2talk.com:3478
  1. 开启ipv4转发
vi /etc/sysctl.conf
# 将net.ipv4.ip_forward=0更改为net.ipv4.ip_forward=1
sysctl -p
  1. 安装dnsmasq 和pdnsd解决dns污染

DNS的解析方案为 resolve.conf ==> dnsmasq ==> pdnsd

@DraTeots
DraTeots / ComPort over Network.md
Last active July 13, 2024 13:54
ComPort over Network
@patwonder
patwonder / baidu-tieba-image-scaling-enhancer.user.js
Last active January 8, 2023 14:48
百度贴吧图片缩放增强脚本 Baidu Tieba Image Scaling Enhancer
// ==UserScript==
// @id tieba.baidu.com-709c0fe7-e313-44bd-9dbd-752bbd80259d@patwonder@163.com
// @name 百度贴吧图片缩放增强脚本
// @version 0.78
// @namespace patwonder@163.com
// @author patwonder
// @description 增强百度贴吧图片缩放,看大图无需开新标签页。
// @updateURL https://gist.githubusercontent.com/patwonder/99835e0cece2ac9928ad/raw/baidu-tieba-image-scaling-enhancer.user.js
// @downloadURL https://gist.githubusercontent.com/patwonder/99835e0cece2ac9928ad/raw/baidu-tieba-image-scaling-enhancer.user.js
// @include /^https?://tieba\.baidu\.com/((f\?kz=.*)|(p/.*))/