Skip to content

Instantly share code, notes, and snippets.

View SerJaimeLannister's full-sized avatar

LanguageNest SerJaimeLannister

View GitHub Profile
@SerJaimeLannister
SerJaimeLannister / main.go
Last active December 10, 2025 20:47
gosync is goated single file synctube esque alternative created for personal use.
package main
import (
"flag"
"fmt"
"html/template"
"log"
"net/http"
"sync"
@SerJaimeLannister
SerJaimeLannister / main.go
Created September 28, 2025 18:23
just for hackernews lol, license is unlicense but you have to buy me some soft drink if we meet and you used it (no obligation lol)
package main
import (
"fmt"
"io"
"net/http"
"os"
"path/filepath"
"github.com/pdfcpu/pdfcpu/pkg/api"
@SerJaimeLannister
SerJaimeLannister / discussion.md
Last active September 20, 2025 21:12
List or discussion regarding softwares with the highest haters to benefit to humanity ratio?

Coming up from the hackernews comment [1] on a hackernews post about systemd [2]

I think everyone in the linux community can somewhat agree that systemd gets a lot of hate.

Sure we can have some fair critisms of a project but there is a somewhat fair consensus among people that systemd is hated unfairly in the sense of a benefit to humanity ratio as that orginal comment pointed out.

The point of this gist or discussion which I am looking forward to isn't about systemd but rather trying to compile a list about what are some other softwares and why they are hated etc. as I felt like this was a really interesting topic.

So the question on everybody's mind should now be?

@SerJaimeLannister
SerJaimeLannister / Proposal.md
Last active December 25, 2025 23:33
A proposal about a new banking like system relying on instruments like tips (treasury inflation protected services) in the US and particularly Inflation Indexed National Saving Securities-Cumulative in India. I feel like a better catchy name for this could be in my honest opinion "What if banks could protect your money against inflation - a prop…

Proposal

Note: The author is from India , So He is saying things in the context of India.

This is just a proposal for what I believe to be a radical idea. Suggestions would be helpful.

What if we can have a bank which can be completely fin-tech (ie. not operate any branches) and not provide any loans but rather it invests all the money that user provides into a financial instrument directly into or similar to Inflation Indexed National Saving Securities-Cumulative provided by the RBI. (Note: For USA , its known as TIPS )

import os
import shutil
import tempfile
import subprocess
import random
import string
import argparse
import time
import datetime
import base36
import textwrap
import subprocess
import re
import argparse
# Argument parsing
parser = argparse.ArgumentParser(description="Generate nano vanity addresses and extract original string.")
parser.add_argument("--string", required=True, help="The input string to process (e.g., 'keshav').")
parser.add_argument("--length", type=int, required=True, help="Length of segments for text wrapping.")
Haven't decided the license yet so probably don't use it right away in your project ?
Maybe I am thinking of creating a fork since creating the core functionality was rather trivial.
<script lang="ts">
import { onMount } from 'svelte';
import Highlight from 'svelte-highlight';
import { d } from 'svelte-highlight/languages';
import javascript from 'svelte-highlight/languages/javascript';
import github from 'svelte-highlight/styles/github';
import githubDark from 'svelte-highlight/styles/github-dark';
import { red } from "@std/fmt/colors";
Deno.stdin.setRaw(true);
let chunk = new Uint8Array(0);
let currentInput = "";
let cursorPosition = 0;
const reader = Deno.stdin.readable.getReader();
while (true) {
if (chunk.length === 0) {
const readResult = await reader.read();
const decoder = new TextDecoder();
export async function* readStdin() {
for await (const chunk of Deno.stdin.readable) {
const text = decoder.decode(chunk, { stream: true });
const lines = text.split("\n");
for (const line of lines) {
if (line) {
yield line; // Yield each non-empty line
import { readStdin } from "./readlines.ts";
import { BlobTicket, Iroh } from "npm:@number0/iroh";
const prompt = 'Type a message to share (or "exit" to quit): ';
async function* inputLoop() {
for await (const line of readStdin()) { // Use the new readStdin generator
yield line; // Yield each line as it is read
}
}