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 / 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 / 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

Keybase proof

I hereby claim:

  • I am mariotaku on github.
  • I am mariotaku (https://keybase.io/mariotaku) on keybase.
  • I have a public key ASAyVkc0L_T9ZK-j-ibKFoMz2g022KuFtRc24yuPk_bIIAo

To claim this, I am signing this object:

@mariotaku
mariotaku / rules.txt
Last active July 1, 2019 11:18
Cleaner Sina Weibo
! 时间轴广告
weibo.com##div[feedtype="ad"]
! 不需要的推荐内容
weibo.com###v6_pl_rightmod_hongbao
weibo.com###v6_pl_rightmod_rank
weibo.com###v6_trustPagelet_recom_member
@mariotaku
mariotaku / README.md
Last active December 18, 2020 05:01
Followers Cleaner Script

Usage

  1. Execute pip3 install -r requirements.txt to install dependencies
  2. Execute followers_clear.py and follow instructions.

Notes

Consumer keys can be found here. Use these keys instead of applying yourself can get rid of rate limit.

@mariotaku
mariotaku / Erya nopause.user.js
Created April 23, 2017 15:03
Erya nopause UserScript
// ==UserScript==
// @name Erya nopause
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Fuck erya!
// @author Mariotaku Lee
// @match http://mooc1.zut.edu.cn/*
// @grant none
// @run-at document-end
// ==/UserScript==
/*
* Twidere - Twitter client for Android
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
@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.
@mariotaku
mariotaku / README.md
Last active July 3, 2022 03:55
删除当前屏幕所有微博

删除所有微博

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

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

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