Skip to content

Instantly share code, notes, and snippets.

View snarkyboojum's full-sized avatar
🧠
Probably not on a plane

Adrian White snarkyboojum

🧠
Probably not on a plane
  • Sydney, Australia
View GitHub Profile
@snarkyboojum
snarkyboojum / llm-sk-hackathon.txt
Last active June 24, 2023 05:40
The basic idea for a LLM hackathon using Semantic Kernel
1. Introduce Promptflow and test building and deploying (?) prompts
2. Introduce Semantic kernel
- https://learn.microsoft.com/en-us/semantic-kernel/get-started/hackathon-materials
3.
@snarkyboojum
snarkyboojum / gist:d8fc6f19f3126e49cf00a4d5c3942efa
Last active December 20, 2021 02:59
Peter McCormack vs Richard Heart
https://www.youtube.com/watch?v=bEFHRy1mfGw
4:17 Peter asks how everyone can win. Richard compared expected Hex growth (10,000x in USD in < 2.5 years) with Bitcoin growth since it was worth 1 penny (750,000x)
Bitcoin was designed to do larger than that.
Peter goes back to "How does everyone win", and accuses Richard of interrupting when Richard points out that he doesn't claim everyone will win in crypto.
6:29 Not everyone is going to win. Lots of people are going to win. Price discovery is hard.
Peter asks what percentage of people will lose. Richard compares to other charts, e.g. Bitcoin 85% drops three times over its price history. People will overvalue it and there will be a correction.
@snarkyboojum
snarkyboojum / main.rs
Last active September 28, 2023 08:46
Check for AES-NI support in Rust
#![feature(asm)]
/* For Intel */
// "Before an application attempts to use AESNI instructions or PCLMULQDQ,
// the application should follow the steps illustrated in Section 11.6.2,
// “Checking for SSE/SSE2 Support.” Next, use the additional step provided below:
// Check that the processor supports AESNI (if CPUID.01H:ECX.AESNI[bit 25] = 1);
// check that the processor supports PCLMULQDQ (if CPUID.01H:ECX.PCLMULQDQ[bit 1] = 1)."
http://math.ucr.edu/home/baez/books.html
@snarkyboojum
snarkyboojum / init.vim
Created March 22, 2020 01:47
Configuration for Neovim on Windows 10
syntax on
set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nu
set nowrap
set smartcase
@snarkyboojum
snarkyboojum / tinkering-todo.txt
Last active February 19, 2022 02:21
Tinkering todo list
Blockchain:
- Read through Ethereum 1.0 and 2.0 whitepapers
- Read Uniswap v2 and v3 whitepapers
- Read about proof of stake and proof of staked authority consensus systems
- Build a blockchain analysis and visualisation tool
- Analyse Etherum history and draw conclusions about scale / adoption / gas fees / congestion
- Analyse PoSA models and look at scale / congestion / cost characteristics
- Design a scalable blockchain with general compute capability
@snarkyboojum
snarkyboojum / instance-types.py
Created January 21, 2020 07:57
List all EC2 instances in a region
#!/usr/bin/env python
import boto3
ec2 = boto3.client('ec2', region_name='us-east-1')
instance_types = []
types = ec2.describe_instance_types()
instance_types.extend(types['InstanceTypes'])
@snarkyboojum
snarkyboojum / gist:10721124
Created April 15, 2014 10:29
0001-Lazy-README-patch.patch
From 58cf8057167a968a98e5c1c71b8d4764b7111f47 Mon Sep 17 00:00:00 2001
From: snarkyboojum <snarkyboojum@gmail.com>
Date: Tue, 15 Apr 2014 10:05:24 +0000
Subject: [PATCH] Lazy README patch
---
README.md | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/README.md b/README.md
@snarkyboojum
snarkyboojum / gist:10721059
Created April 15, 2014 10:28
cat 0001-Update-some-help-documentation.patch
From 22dc5db96a44c5117c2572b030bf33fb0dacfe9d Mon Sep 17 00:00:00 2001
From: snarkyboojum <snarkyboojum@gmail.com>
Date: Tue, 15 Apr 2014 10:25:41 +0000
Subject: [PATCH] Update some help documentation
---
bin/rakudobrew | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/rakudobrew b/bin/rakudobrew
source "https://rubygems.org"
gem 'aws-sdk'
gem 'trollop'
gem "listen", "~> 2.0.0.beta.2"