Skip to content

Instantly share code, notes, and snippets.

View marawannwh's full-sized avatar

Marawan مَرَوَان marawannwh

View GitHub Profile
  • Shall i implement it?
  • No ...

How to download Blob Stream

SOURCE, SOURCE

Some video streaming site will hide the download link behind a blob format which will get resolved internally. If you inspect the video player in Chrome you can see something like this:

<video class="jw-video jw-reset" tabindex="-1" disableremoteplayback="" webkit-playsinline="" playsinline="" src="blob:https://play.vstreamplay.xyz/1c36398f-c376-4873-a0ac-7fa07c3968f7"></video>
I was drawn to programming, science, technology and science fiction
ever since I was a little kid. I can't say it's because I wanted to
make the world a better place. Not really. I was simply drawn to it
because I was drawn to it. Writing programs was fun. Figuring out how
nature works was fascinating. Science fiction felt like a grand
adventure.
Then I started a software company and poured every ounce of energy
into it. It failed. That hurt, but that part is ok. I made a lot of
mistakes and learned from them. This experience made me much, much
@omeid
omeid / efficiencies.md
Created October 31, 2019 23:12
Death By A Thousand Efficiencies: Why You Too Should Be Afraid of Automation

Death By A Thousand Efficiencies: Why You Too Should Be Afraid of Automation

When the question of “automation caused job losses” comes up, most people think of industry jobs where production-line or humanoid robots take over jobs whole or at most talk about virtual assistants or other entry level knowledge-worker positions getting replaced by Artificial Intelligence or how Neural Networks can compose news articles from a set of facts; the common theme here is bots taking over jobs whole; while ‘bots taking over jobs at the production-line is old news and vending machines that replace pizza restaurants from the cashier to chef is no longer something to speculate, I think a much more deadly and silent job killer is often overlooked: tools that makes workers more efficient.

As a general rule, efficiencies that reduces work-hours by any given percentage, it also reduces the overall number of position by the same percentage.

@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active July 30, 2026 20:44
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@rylev
rylev / rust-in-large-organizations-notes.md
Last active June 12, 2025 16:06
Rust in Large Organizations Notes

Rust in Large Organizations

Initially taken by Niko Matsakis and lightly edited by Ryan Levick

Agenda

  • Introductions
  • Cargo inside large build systems
  • FFI
  • Foundations and financial support
@samsch
samsch / stop-using-jwts.md
Last active August 8, 2026 07:44
Stop using JWTs

Stop using JWTs!

TLDR: JWTs should not be used for keeping your user logged in. They are not designed for this purpose, they are not secure, and there is a much better tool which is designed for it: regular cookie sessions.

If you've got a bit of time to watch a presentation on it, I highly recommend this talk: https://www.youtube.com/watch?v=pYeekwv3vC4 (Note that other topics are largely skimmed over, such as CSRF protection. You should learn about other topics from other sources. Also note that "valid" usecases for JWTs at the end of the video can also be easily handled by other, better, and more secure tools. Specifically, PASETO.)

A related topic: Don't use localStorage (or sessionStorage) for authentication credentials, including JWT tokens: https://www.rdegges.com/2018/please-stop-using-local-storage/

The reason to avoid JWTs comes down to a couple different points:

  • The JWT specification is specifically designed only for very short-live tokens (~5 minute or less). Sessions
@Abushawish
Abushawish / quickgit.fish
Last active December 4, 2024 02:58
Git add, commit, and push in one function for Fish Shell
# How to git add, commit, and push using one function in friendly interactive shell (Fish Shell).
# Save this file within '~/.config/fish/functions' as 'quickgit.fish'. Create the directory if it does not exist.
# '--git-dir=$PWD/.git' Ensures that we run the git commands against the git project where we called the function
function quickgit # This is the function name and command we call
git --git-dir=$PWD/.git add . # Stage all unstaged files
git --git-dir=$PWD/.git commit -a -m $argv # Commit files with the given argument as the commit message
git --git-dir=$PWD/.git push # Push to remote
end

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@tikolakin
tikolakin / fish_alias.md
Last active February 17, 2025 10:33
Create alias in Fish shell and save this as a permanent function

Directly from CLI

alias x='exit'
funcsave x

or create a file in

~/.config/fish/functions 

with name