Skip to content

Instantly share code, notes, and snippets.

View btbytes's full-sized avatar

Pradeep Gowda btbytes

View GitHub Profile
btbytes /
Last active June 20, 2024 16:43
webscraper python to java using Claude Sonnet 3.5


convert this to Java; use jbang to include DEPS  -- import requestsfrom bs4 import BeautifulSoupurl = ''response = requests.get(url)soup = BeautifulSoup(response.text, 'html.parser')# Extract data from the webpagedata = soup.find('div', class_='content')print(data.text)
btbytes /
Created May 4, 2024 08:32 — forked from aspose-com-gists/
Split a Word Document into Multiple Documents in Python
btbytes /
Created May 4, 2024 06:50 — forked from ThomasG77/
Need to split PDF every n pages, do it with pdftk
# Recipe from
number=$(pdfinfo -- "$file" 2> /dev/null | awk '$1 == "Pages:" {print $2}')
count=$((number / pagesper))
while [ "$count" -gt "$counter" ]; do
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="36x36" href="/android-chrome-36x36.png">
<link rel="icon" type="image/png" sizes="48x48" href="/android-chrome-48x48.png">
<link rel="icon" type="image/png" sizes="72x72" href="/android-chrome-72x72.png">
<link rel="icon" type="image/png" sizes="96x96" href="/android-chrome-96x96.png">
<link rel="icon" type="image/png" sizes="144x144" href="/android-chrome-144x144.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
btbytes /
Last active March 21, 2024 16:33
Gist created by gistash


Stash files on


$ wget 
$ chmod +x gistash
btbytes /
Last active March 18, 2024 21:19
GrantSlatton CSS
btbytes /
Last active March 12, 2024 11:41
Untangling Lifetimes: The Arena Allocator by Ryan Fleury

Untangling Lifetimes: The Arena Allocator

Making performant dynamic manual memory management in C feel almost like garbage collection.


SEP 24, 2022

In every instance when I’ve said that I prefer to write my software in C, the response is—normally—raised eyebrows. Several dominant memes in the programming world make my position unpopular, and thus uncommon to find. I regularly hear, “why would you write new code in an unsafe systems language?”, “performance isn’t everything!”, and perhaps the most common, “why subject yourself to the requirement of manually managing memory?”.

btbytes /
Created February 19, 2024 11:03
Second email

The Second Email

TheSecond.Email is an email that is online when you are online.

As a user, I want to receive email only when I'm online.

What if we can provide an email address to the user that is active ONLY when the user is online and expecting an email?

When the user is online (ie., logged into the webpage offering this service), the email is delivered to their inbox, ie., the web page they are on.

btbytes / danluu.js
Created January 30, 2024 17:59
fix up css on
// ==UserScript==
// @name make readable
// @namespace
// @version 2024-01-30
// @description make readable
// @author Pradeep Gowda
// @match*
// @grant none
// ==/UserScript==