Skip to content

Instantly share code, notes, and snippets.

View btbytes's full-sized avatar

Pradeep Gowda btbytes

View GitHub Profile
@btbytes
btbytes / recording-setup.md
Created August 10, 2024 15:25
gwenshap recording setup

Source

A lot of folks asked for it, so here we go:

  • Camera:
    • Sony FX30, recording directly to my laptop via USB.
    • Lens: Sigma 16mm f/1.4 DC DN Contemporary Lens (Sony E)
    • Camera tripod is on my desk: Oben CTT-1000 Carbon Fiber Tabletop Tripod (I tried about 100 tripods and setups. This one works. Barely).
  • Lights:
    • I have two warm, bright lights (4000k): one to my front and right, showing my face, and the other on my back and left, bouncing off a wall and my hair. The technically correct setup has two front lights, but I ran out of room.
  • Both are: Amaran COB 60x S Bi-Color LED Monolight
@btbytes
btbytes / serve.nim
Created August 6, 2024 15:30
static file server in nim
import std/[asynchttpserver, asyncdispatch, os, strutils]
proc handleRequest(req: Request) {.async.} =
let path = "." & req.url.path
if fileExists(path):
let content = readFile(path)
let contentType = case path.splitFile.ext
of ".html": "text/html"
of ".css": "text/css"
of ".js": "application/javascript"
@btbytes
btbytes / 12weeks.md
Last active July 23, 2024 03:45
12-week study plan for leetcode, generated by claude

LeetCode Study Plan

Overview

This study plan is designed to help you systematically improve your problem-solving skills and prepare for technical interviews using LeetCode.

Goals

  • Develop a strong foundation in data structures and algorithms
  • Improve problem-solving skills
  • Prepare for technical interviews
@btbytes
btbytes / README.md
Last active June 20, 2024 16:43
webscraper python to java using Claude Sonnet 3.5

Prompt:

convert this to Java; use jbang to include DEPS  -- import requestsfrom bs4 import BeautifulSoupurl = 'https://example.com'response = requests.get(url)soup = BeautifulSoup(response.text, 'html.parser')# Extract data from the webpagedata = soup.find('div', class_='content')print(data.text)
@btbytes
btbytes / readme.md
Created May 4, 2024 08:32 — forked from aspose-com-gists/readme.md
Split a Word Document into Multiple Documents in Python
@btbytes
btbytes / pdftk-split-every-n-page.sh
Created May 4, 2024 06:50 — forked from ThomasG77/pdftk-split-every-n-page.sh
Need to split PDF every n pages, do it with pdftk
# Recipe from https://unix.stackexchange.com/questions/66931/split-pdf-into-documents-with-several-pages-each
pagesper=2
file=layout_atlas_multipage.pdf
number=$(pdfinfo -- "$file" 2> /dev/null | awk '$1 == "Pages:" {print $2}')
count=$((number / pagesper))
filename=${file%.pdf}
counter=0
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
btbytes / README.md
Last active March 21, 2024 16:33
Gist created by gistash

gistash

Stash files on gist.github.com

Installation

$ wget https://gist.githubusercontent.com/btbytes/73d6ddb0cf940e730edf22a60208691b/raw/fbf9efb44ee1c88eaaa3f62d6437737402ea74ce/gistash 
$ chmod +x gistash
@btbytes
btbytes / README.md
Last active March 18, 2024 21:19
GrantSlatton CSS