Skip to content

Instantly share code, notes, and snippets.

@sivark
sivark / gist:8a5869fc7459b946d5a9ecf279cf134a
Last active February 5, 2025 09:46
AI sovereignty needs owning the full stack

It's heartening to see wisps of the nascent Indian tech community waking up to the long-term strategic significance of AI capabilities, and the Indian government striving to offer support. I wish the very best to those diving in, and for the rest of this discussion will assume they succeed. What then?

No technology can be sustained on an island of excellence. It really matters what sits below and above in the stack; to push capabilities in one layer you are often enabled only by pushing capabilities in the layer above/below. Otherwise the impedance mismatch causes too much friction (forgive the mixed metaphor). I can offer several examples to buttress the point if need be (cite: DeepSeek/OpenAI, Alan Kay, Joel Spolsky, Apple vertical integration, etc). What does this mean for Indian AI?

Consider the stack below. AI runs atop computers, and one needs to h

@AlexanderNenninger
AlexanderNenninger / lazyarrays.jl
Last active August 3, 2023 12:27
Array that computes it's entries on the fly
# Lazy Array implementation. The explicit typing allows for static compilation leading to high performance.
using LinearAlgebra
using BenchmarkTools
# Quick implementation of a lazy Array. Yes, it's really *that* simple.
mutable struct LazyFunctionArray{F<:Function,T,N} <: AbstractArray{T,N}
const f::F # Julia 1.8 const field syntax for convenience
const size::NTuple{N,Int}
ncalls::Int
@cwhittl
cwhittl / ObsidianConvert.sh
Created May 29, 2023 23:46
Super note to Obsidian
#!/bin/bash
superNotePath="/Users/chriswhittle/Dropbox/Supernote/Note"
superNoteToolPath="/opt/homebrew/bin/supernote-tool"
noteTakingAppPath="/Users/chriswhittle/Library/Mobile Documents/iCloud~md~obsidian/Documents/WhitsNotes"
pdfPath="/Users/chriswhittle/Library/Mobile Documents/iCloud~md~obsidian/Documents/WhitsNotes/SuperNote/pdf"
imagePath="/Users/chriswhittle/Library/Mobile Documents/iCloud~md~obsidian/Documents/WhitsNotes/SuperNote/images"
if [[ -d $pdfPath ]]
then
echo "Deleting Old Pdfs"
@devinschumacher
devinschumacher / cloud-gpus.md
Last active May 7, 2025 15:18
Cloud GPUs // The Best Servers, Services & Providers [RANKED!]
title tags
The Best Cloud GPU Providers for Artificial Intelligence & Machine Learning
cloud gpu providers
cloud gpu
artificial intelligence

Cloud GPUs: Servers, Providers & Everything You Would Ever Need

@gregoryhugaerts
gregoryhugaerts / nyxt.el
Last active December 20, 2022 15:07
some emacs nyxt commands
(defun emacs-with-nyxt-sly-connect (host port)
"Connect Sly to HOST and PORT ignoring version mismatches."
(sly-connect host port)
(sleep-for 1))
(defvar emacs-with-nyxt-sly-nyxt-delay 0.3)
(defun emacs-with-nyxt-start-and-connect-to-nyxt (&optional no-maximize)
"Start Nyxt with swank capabilities. Optionally skip window maximization with NO-MAXIMIZE."
(interactive)
(async-shell-command (format "nyxt -e \"(nyxt-user::start-slynk)\""))
@watofundefined
watofundefined / syncthing-git-backup.md
Last active July 18, 2024 15:12
Syncthing git backup recipe

Syncthing has awesome docs - start there if you haven't read them already. This is just a recipe to show how I set it up to have a git-versioned backup on Raspberry Pi.

Once machines are talking to each other via Syncthing add the folder through GUI, share it with another device, switch to that device and accept the incoming folder.

Let's say that the folder is ~/org.

On the 'backup' device in Syncthing GUI, go to Folder settings > File Versioning, choose "External File Versioning" and in Command input fill in: git-backup-org %FOLDER_PATH% %FILE_PATH%.

On the 'backup' device create the backup folder and initialize a git repository:

@rougier
rougier / clean.el
Created May 10, 2020 02:43
A very minimal but elegant emacs configuration file
(require 'org)
(setq-default indent-tabs-mode nil)
(setq org-display-inline-images t)
(setq org-redisplay-inline-images t)
(setq org-startup-with-inline-images "inlineimages")
(setq default-frame-alist
(append (list '(width . 72) '(height . 40))))
@mwfogleman
mwfogleman / gtd_basb_templates.org
Last active September 17, 2024 22:12
GTD/BASB Templates for Emacs and Org-Mode
@lehmacdj
lehmacdj / evil-mode.lisp
Last active August 6, 2019 10:00
Evil mode for nEXT browser
(in-package :next)
(defparenstatic scroll-half-page-down
(ps:chain window (scroll-by 0 (/ (ps:@ window inner-height) 2))))
(defparenstatic scroll-half-page-up
(ps:chain window (scroll-by 0 (/ (ps:@ window inner-height) -2))))
(defparenstatic scroll-page-down
(ps:chain window (scroll-by 0 (ps:@ window inner-height))))
(defparenstatic scroll-page-up
(ps:chain window (scroll-by 0 (- (ps:@ window inner-height)))))
@jasonrdsouza
jasonrdsouza / pocket_exporter.py
Last active September 10, 2024 19:55
Export archived article data from Pocket
'''This script can be used to export data from Pocket (getpocket.com)
Uses include migrating to a different "read it later" service, saving
specific articles to another service, backing up your reading history,
and more.
Currently it can be used to export links and metadata for archived
articles with a given tag, which are more recent than a given timestamp.
An example use case is to export all articles you have tagged as
"to-export", which are newer than 10 days old. The timestamp functionality