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

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