This file contains hidden or 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
-- KOReader userpatch to show info in the file manager title bar | |
-- based on https://gist.github.com/hius07/c53bc1ed00e0490cb1a0709c5ed6e735#file-2-fm-title-info-lua | |
-- Menu added in the File browser menu (1st icon) to change all the settings and rearrange the items in the title bar | |
-- Items added: Custom text, Brightness Level, Warmth Level, Up time, Time spent awake, Time in suspend | |
-- Settings added: Auto refresh clock, Custom separator, Number of spaces around separator, Show wifi when disabled, Show path | |
-- Fix screen rotation (path was disappearing) | |
-- Arrange items reorders the items the menu | |
local BD = require("ui/bidi") | |
local Device = require("device") |
This file contains hidden or 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 BD = require("ui/bidi") | |
local Blitbuffer = require("ffi/blitbuffer") | |
local Device = require("device") | |
local Geom = require("ui/geometry") | |
local ProgressWidget = require("ui/widget/progresswidget") | |
local Math = require("optmath") | |
local ReaderFooter = require("apps/reader/modules/readerfooter") | |
local ReaderToc = require("apps/reader/modules/readertoc") | |
local T = require("ffi/util").template | |
local _ = require("gettext") |
This file contains hidden or 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
-- Add 4 new options @ the end of the "Sleep screen" menu : | |
-- Close widgets before showing the screensaver | |
-- Refresh before showing the screensaver | |
-- Message do not overlap image | |
-- Center image | |
-- By default it doesn't change the sleep screen behavior | |
local ReaderUI = require("apps/reader/readerui") | |
local Screensaver = require("ui/screensaver") |
This file contains hidden or 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 InfoMessage = require("ui/widget/infomessage") | |
local Math = require("optmath") | |
local ReaderUI = require("apps/reader/readerui") | |
local Screensaver = require("ui/screensaver") | |
local UIManager = require("ui/uimanager") | |
local _ = require("gettext") | |
local expandSpecial_orig = Screensaver.expandSpecial | |
Screensaver.expandSpecial = function(self, message) |
This file contains hidden or 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
import asyncio | |
import threading | |
from typing import Any, Callable, Self | |
from mitmproxy import http | |
from mitmproxy.addons import default_addons, script | |
from mitmproxy.master import Master | |
from mitmproxy.options import Options |
This file contains hidden or 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
# Use Python 3.11 with no dependencies | |
# set a global user proxy: | |
# python -m sfvip_user_proxy http://127.0.0.1:8888 | |
# remove the global user proxy: | |
# python -m sfvip_puser_proxy | |
import argparse | |
import json |
This file contains hidden or 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
# requirements: | |
# Python >= 3.10 | |
# pip install proxy.py pywin32 requests | |
# create a shortcut : | |
# python sfvip_proxy.py --shorcut | |
# use it ! | |
import argparse | |
import itertools | |
import json |
This file contains hidden or 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
# requirements: | |
# Python >= 3.10 | |
# pip install proxy.py psgtray psutil pysimplegui pywin32 requests | |
# use it: | |
# python sfvip_proxy.py [--port PORT] | |
# or create the launcher: | |
# python sfvip_proxy.py --launcher [--port PORT] | |
# and Launch the proxy with sfvip_proxy.vbs |
This file contains hidden or 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
#!/usr/bin/env python3 | |
from __future__ import annotations | |
import subprocess | |
""" | |
888 888 d8b | |
888 888 Y8P | |
888 888 |