Skip to content

Instantly share code, notes, and snippets.

View mariotaku's full-sized avatar
📺
Hacking my TV now

Mariotaku mariotaku

📺
Hacking my TV now
View GitHub Profile
@mariotaku
mariotaku / README.md
Last active July 3, 2022 03:55
删除当前屏幕所有微博

删除所有微博

在Chrome Dev Tools中粘贴代码到Console,就可以删除当前屏幕所有微博。经过测试一万条微博大约需要10小时的半人工操作。

每批删除大概一分钟,最多50条。

如果遇到微博的Rate limit(提示操作过快),稍等三五分钟再试即可。

@mariotaku
mariotaku / host-powershell
Last active July 3, 2022 11:51
WSL Tools
#!/bin/sh
PS_ARGS=""
if [ -n "$1" ] && [ -e "$1" ]; then
PS_ARGS="-ExecutionPolicy bypass -File $1"
fi
/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe $PS_ARGS
@mariotaku
mariotaku / Makefile
Created November 16, 2023 09:57
MonaServer for OpenWRT
include $(TOPDIR)/rules.mk
PKG_NAME:=monaserver
PKG_VERSION:=2.750
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/monaserver-$(PKG_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/MonaSolutions/MonaServer2
PKG_SOURCE_VERSION:=5490a5814d00528b043da1005d65e08686e212e1
@mariotaku
mariotaku / LspWslFix.ps1
Created December 20, 2022 11:09
Fix WSL Connection Issue Caused by Winsock
#Requires -RunAsAdministrator
# Fix for https://github.com/microsoft/WSL/issues/4177
$MethodDefinition = @'
[DllImport("ws2_32.dll", CharSet = CharSet.Unicode)]
public static extern int WSCSetApplicationCategory([MarshalAs(UnmanagedType.LPWStr)] string Path, uint PathLength, [MarshalAs(UnmanagedType.LPWStr)] string Extra, uint ExtraLength, uint PermittedLspCategories, out uint pPrevPermLspCat, out int lpErrno);
'@
$Ws2Spi = Add-Type -MemberDefinition $MethodDefinition -Name 'Ws2Spi' -PassThru
@mariotaku
mariotaku / README.txt
Last active March 2, 2024 10:18
Twitter reverse proxy configuration for Nginx
Settings on Twidere:
API URL Format: https://your-host/[DOMAIN.]twitter.com/
Uncheck "Same OAuth signing URL"
Uncheck "No verion suffix"
Password login recommended.