This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function executeCommand(command) | |
local output = nil | |
local p = io.popen(command .. ' 2>nul') | |
if (p ~= nil) then | |
output = p:read('*all') | |
end | |
p.close() | |
return output | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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%} " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==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, |