Skip to content

Instantly share code, notes, and snippets.

View btbytes's full-sized avatar

Pradeep Gowda btbytes

View GitHub Profile
@btbytes
btbytes / Export-Presentation.ps1
Created August 16, 2023 02:44 — forked from ap0llo/Export-Presentation.ps1
Powershell script to export Powerpoint Presentations to pdf using the Powerpoint COM API
# Powershell script to export Powerpoint Presentations to pdf using the Powerpoint COM API
# Based on a VB script with the same purpose
# http://superuser.com/questions/641471/how-can-i-automatically-convert-powerpoint-to-pdf
function Export-Presentation($inputFile)
{
# Load Powerpoint Interop Assembly
[Reflection.Assembly]::LoadWithPartialname("Microsoft.Office.Interop.Powerpoint") > $null
[Reflection.Assembly]::LoadWithPartialname("Office") > $null
@btbytes
btbytes / pinboard.sql
Last active January 23, 2024 18:41
pinboard schema
-- source https://web.archive.org/web/20220605044249/https://static.pinboard.in/schema.htm
-- MySQL dump 10.13
--
-- Pinboard database schema
-- Feel free to use this however you like. Send questions to [email protected].
-- For best results, use the Percona version of MySQL! http://www.percona.com/software/percona-server/
CREATE TABLE `bookmarks` (
`id` int(11) NOT NULL,
@btbytes
btbytes / LLM.md
Created March 29, 2023 05:44 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@btbytes
btbytes / makefile
Created March 20, 2023 03:54 — forked from rafaqz/makefile
A makefile for pandoc.
## Put this Makefle in your project directory---i.e., the directory
## containing the paper you are writing. Assuming you are using the
## rest of the toolchain here, you can use it to create .html, .tex,
## and .pdf output files (complete with bibliography, if present) from
## your markdown file.
## - Using `make` without arguments will generate html, tex, and pdf
## output files from all of the files with the designated markdown
## extension. The default is `.md` but you can change this.
## - You can specify an output format with `make tex`, `make pdf` or
## - `make html`.
var timer=100;document.querySelectorAll("div > input[type='checkbox']:checked").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;});
@btbytes
btbytes / podman-machine-start.md
Last active November 14, 2022 11:53
podman machine start

$ podman machine start

Starting machine "podman-machine-default" Waiting for VM ... Mounting volume... /Users/pradeep:/Users/pradeep

This machine is currently configured in rootless mode. If your containers require root permissions (e.g. ports < 1024), or if you run into compatibility issues with non-podman clients, you can switch using the following command:

@btbytes
btbytes / paddling.md
Created October 14, 2022 01:31
Paddling

Paddling

Paddling is datasette but for DuckDB.

Why (Reasons to exist)

What (Features)

How (Design and Implementation choices)

@btbytes
btbytes / min.css
Created September 27, 2022 03:49
minimum css
:root {color-scheme: light dark;}html {max-width: 70ch;padding: calc(1vmin + .5rem);margin-inline: auto;font-size: clamp(1em, 0.909em + 0.45vmin, 1.25em);font-family: system-ui}body :not(:is(h1,h2,h3,h4,h5,h6)) {line-height: 1.75;}h1,h2,h3,h4,h5,h6 {margin: 3em 0 1em;}p,ul,ol {margin-bottom:2em;color:#1d1d1d;font-family: sans-serif;}
@btbytes
btbytes / next1000words.md
Last active August 31, 2022 14:26
The next 1000 words

The Next Thousand Words

Why should a dictionary be arranged alphabetically?

Why not arrange them in the order of most commonly used on down?

Why can we not organize dictionary to progressively improve an individual's knowledge of the words (meaning, usage)?

In the print world, it made sense to organize words in a sorted order so that it is easy to look up a word.

@btbytes
btbytes / README.md
Last active October 14, 2022 01:33
Pradeep Gowda's Zeit.Gist