Skip to content

Instantly share code, notes, and snippets.

View ket395's full-sized avatar
💭
I may be slow to respond.

Manish ket395

💭
I may be slow to respond.
View GitHub Profile
@ket395
ket395 / hub wtf.md
Last active March 9, 2025 04:18
hub wtf.md

Fact 1 - The End of Life (EOL) for Ubuntu 18.04 LTS (Bionic Beaver) was May 31, 2023. After this date, Canonical no longer provides support or security updates for this version of Ubuntu Fact 2 - The latest version of Ubuntu 18.04 LTS is 18.04.6 LTS (Bionic Beaver) Fact 3 - Ubuntu 18.04.5 LTS was released in August 2020. It was a Long-Term Support (LTS) release for the Desktop, Server, and Cloud products. Fact 4 - The surname Swantek is of Central European origin. That is Polish.

jswantek on Jan 16, 2021 04 03 AM mislav/hub#2695 (comment)

In trying to install this on Ubuntu 18.04.5 LTS the apt package was not found [output]

antony via email on Jan 16, 2021 04 20 AM mislav/hub#2695 (comment)

Yeah I wouldn't expect anyone to build packages for a two+ year old

@ket395
ket395 / downvotes by extremely upset thoughtless people.md
Created February 28, 2025 11:58
downvoted yet again for truthy statements.md
https://www.reddit.com/r/browsers/comments/1an4hkn/comment/kpq5ebv/?utm_source=fuckreddit

Conclusion - reddit is for the literate yet?/and? ignorant masses. Strongly avoid.

@ket395
ket395 / pizlossafull.md
Last active February 18, 2025 04:30 — forked from pizlonator/pizlossafull.md
pizlonator - How I implement SSA form

This document explains how I would implement an SSA-based compiler if I was writing one today.

This document is intentionally opinionated. It just tells you how I would do it. This document is intended for anyone who has read about SSA and understands the concept, but is confused about how exactly to put it into practice. If you're that person, then I'm here to show you a way to do it that works well for me. If you're looking for a review of other ways to do it, I recommend this post.

My approach works well when implementing the compiler in any language that easily permits cyclic mutable data structures. I know from experience that it'll work great in C++, C#, or Java. The memory management of this approach is simple (and I'll explain it), so you won't have to stress about use after frees.

I like my approach because it leads to an ergonomic API by minimizing the amount of special cases you have to worry about. Most of the compiler is analyses and transformations ov

Worst PR, see corresponding commit below - https://github.com/standardebooks/friedrich-nietzsche_the-genealogy-of-morals_horace-b-samuel/pull/2
https://github.com/standardebooks/friedrich-nietzsche_the-genealogy-of-morals_horace-b-samuel/commit/d8e7f3d8dea554f66562ebaaeb324f745c8eb953
https://github.com/standardebooks/friedrich-nietzsche_the-genealogy-of-morals_horace-b-samuel/commit/b40573f69e655d2c22da18e2619ef5fbb56cbcc5
https://github.com/standardebooks/friedrich-nietzsche_the-genealogy-of-morals_horace-b-samuel/commit/341738572dda468f7d5d5f3c6762983d20a4ea16
https://github.com/standardebooks/friedrich-nietzsche_the-genealogy-of-morals_horace-b-samuel/commit/d4de2b8a43d63f0e6205aafa37cbe16c55cafc97
Please Google/DuckDuckGo or whatever to learn something important about worthless edits and how to avoid them to better utilise time.
Also please instead donate to the Gutenberg project for doing a much better job of protecting PD works. Much obliged if you can do either one.
@ket395
ket395 / Julia 2d hearts animation.jl
Last active February 15, 2025 02:01
Julia 2D hearts animation
# rotation angle 'd' goes from 0 to 2π (one revolution)
0:2e-3:2π .|> d-> (
# screen buffer, with empty braille characters and new lines
(P = fill(5<<11,64,25))[64,:] .= 10;
# transformation vector: cis = rotation, sin = zoom
z = 8cis(d)sin(.46d);
# loop over all pixels
for r=0:98, c=0:5^3
# (..)z = scale and rotate point, using complex numbers
# reim = split complex number into x/y
@ket395
ket395 / GH vscode issue #41542 explained.md
Last active February 18, 2025 03:50
GH vscode issue #41542 explained

microsoft/vscode#41542 (comment)

This bug is still present in the current VSCode because the editor does not respect the changes in the settings when you customize it for your workspace until you close the entire app and reopen app and then reopen the same folder. Destroying the flow state.

Understandably this is a tedious mechanical process and could certainly be never improved due to fundamental limitations of modern programming. Or could it be improved?

@ket395
ket395 / Game dev 13Feb.md
Created February 12, 2025 23:16
Game dev 13Feb

What the hell is a Type Object

First of all this book is targeted for budding game devs.

Second, with a double layer DVD the challenge is made to be filling it with game. But it doesn't have to be.

Third, this chapter only works for ideal projects that are simple and when the game has been formally specified.

Based on this chapter and the above 3 points, you need to level up. Don't just blindly jump into game dev, it will consume you like a bundle of dry twigs.

@ket395
ket395 / research.md
Last active February 12, 2025 13:09 — forked from hackermondev/research.md
Unique 0-click deanonymization attack targeting Signal, Discord and hundreds of platform

dan 15-year-old high school student. in my free time, i hack billion dollar companies and

3 mon ago, I discovered a unique 0-click deanonymization attack

verified correction - part of a attack not complete. Not always 0-click it depends, I skimmed it like Superman. [secret gist - 7 more lines, feel free to read it - 2025-02-12T18:33:±30 ±05:00->5:30]

@ket395
ket395 / julia 1.11 removed public unicode shortcuts.jl
Last active February 10, 2025 21:37
julia 1.11 removed public unicode shortcuts
\quotedblleft
\quotedblright
# both Tab completion sequence(s) are absent. when this happened is unclear b'cos time is finite. Just add it and move on.
link = "https://docs.julialang.org/en/v1.0/manual/unicode-input/#Unicode-Input-1"
# Regression in code is a bug or issue that occurs when new code changes break existing functionality or introduce unintended side effects
julia> Unicode.julia_chartransform('“')
'“': Unicode U+201C (category Pi: Punctuation, initial quote)
# incorrect name it's a double left quote not a neutral quote
using Unicode
# Same. nothing plainly obvious or intuitive can fix this.