Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Namorzyny's full-sized avatar

Namorzyny

  • Pure Illusion
View GitHub Profile
@Namorzyny
Namorzyny / reconnect-wan6.sh
Last active September 18, 2020 20:33
Fix v6 interface does not go up when China Telecom PPPoE reconnection or reassigning v4 address
PATH='/usr/sbin:/usr/bin:/sbin:/bin'
ubus call network.interface.wan status | grep '"up": true,' > /dev/null 2>&1 || {
echo "PPPoE is down."
exit 1
}
has_error=0
ubus call network.interface.wan6 status | grep '"code": "NO_DEVICE"' > /dev/null 2>&1 && has_error=1
# Clean, simple, compatible and meaningful.
# Tested on Linux, Unix and Windows under ANSI colors.
# It is recommended to use with a dark background.
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white.
#
# Mar 2013 Yad Smood
# Sep 2020 Namorzyny
# VCS
YS_KAI_VCS_PROMPT_PREFIX1=" %{$fg[white]%}on%{$reset_color%} "
@Namorzyny
Namorzyny / weibo-default-font-family.user.css
Last active January 17, 2021 00:49
Reset Weibo.com default font family
/* ==UserStyle==
@name Reset Weibo.com default font family
@namespace github.com/Namorzyny
@version 2021.1.17
@author Namorzyny
==/UserStyle== */
@-moz-document domain("weibo.com") {
html {
font-family: sans-serif !important;
@Namorzyny
Namorzyny / yahoo-mail-optimizer.user.js
Last active August 18, 2022 04:36
Yahoo Mail Optimizer
// ==UserScript==
// @name Yahoo Mail Optimizer
// @namespace github.com/namorzyny
// @version 2022.7.29
// @match https://mail.yahoo.com/*
// @run-at document-start
// @grant none
// @author namorzyny
// ==/UserScript==
@Namorzyny
Namorzyny / SO-02K.sh
Created October 29, 2022 16:17
Remove SONY SO-02K OEM apps
# package: android
# package: android.autoinstalls.config.sony.xperia
# package: android.product.res.overlay.common
# package: android.product.res.overlay.defaultsmsapp
# package: android.product.res.overlay.docomo
# package: android.res.overlay_305
pm uninstall --user 0 com.amazon.kindle
pm uninstall --user 0 com.amazon.mShop.android.shopping
@Namorzyny
Namorzyny / redirect-wikipedia.user.js
Last active April 28, 2023 09:56
Force Desktop Version of Wikipedia
// ==UserScript==
// @name Force Desktop Version of Wikipedia
// @namespace github.com/namorzyny
// @version 2023.2.4
// @match https://*.wikipedia.org/*
// @match https://*.m.wikipedia.org/*
// @run-at document-start
// @grant none
// @author namorzyny
// @icon https://wikipedia.org/favicon.ico
@Namorzyny
Namorzyny / fuck-bilibili.user.css
Last active May 20, 2023 19:31
bilibili: purge all useless functions and contents
/* ==UserStyle==
@name bilibili: purge all useless functions and contents
@namespace github.com/Namorzyny
@version 2023.5.21
@description Purge all useless functions and contents
@author Namorzyny
==/UserStyle== */
@-moz-document domain("bilibili.com") {
a.banner-card,