Skip to content

Instantly share code, notes, and snippets.

View ibrahemesam's full-sized avatar
🐧
I use Arch btw

Ibrahem Essam ibrahemesam

🐧
I use Arch btw
View GitHub Profile
@ibrahemesam
ibrahemesam / example.py
Last active July 10, 2023 02:44
pywebview: Resizable Frameless Window
# NB: requirements: $ pip install websocket-server mouse
# NB: I used WebSocket instead of default js_api's BottleServer
# to reduce CPU usage by sending short msgs instead of full http requests ( with http headers )
import webview
__import__('logging').getLogger('pywebview').disabled = True # disable logger
from websocket_server import WebsocketServer
from mouse import get_position as mouse_get_position
FixPoint = webview.window.FixPoint
@ibrahemesam
ibrahemesam / Anti-Facebook Shield.md
Last active July 12, 2023 03:00
Anti-Facebook Shield: prevent wasting time on Facebook by auto-hiding Stories and Posts on Facebook web on desktop

NB: as of 16 April 2023, I no longer use Facebook. Never. SO, this gist is discontinued.
Latest update was at 12 Jul 2023


**Overview of the problem:**

Usually when you open Facebook main page facebook.com,
you suddenly find that you have wasted some time just scrolling endless stories and|or posts.
then you wish that you had not wasted your precious time like that.
one day, I was like you. then I decided that I will NOT scroll Facebook again.
but, the problem simply is that I can't hold my self.