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 April 16, 2025 12:49
Install tailscale on webOS TV

Usage

  1. Have your TV rooted
  2. Open Terminal with SSH client or dev-manager-desktop
  3. Run curl -fsSL https://gist.githubusercontent.com/mariotaku/f7228c5459fc7ad2172a2b69dd51a4eb/raw/webosbrew-install-tailscale.sh | sh and wait for it to finish
@mariotaku
mariotaku / README.md
Last active April 4, 2025 11:52
Useful init.d Scripts for Rooted webOS TV

disable-core-dump.sh

It's very annoying to have a lot of crash dumps in storage when a native app crashed. This script disables file output of crash dump.

Usage

  1. Download disable-core-dump.sh the script with following command:
curl -o /var/lib/webosbrew/init.d/disable-core-dump -k https://gist.githubusercontent.com/mariotaku/fab3ee34fae3415c8213d1a1639a6aff/raw/disable-core-dump.sh
@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