Skip to content

Instantly share code, notes, and snippets.

@raiderrobert
raiderrobert / README.md
Created July 23, 2023 13:44
Repackage for Debian 12 packages for Debian 11 and earlier

Problem:

You get this error message:

dpkg-deb: error: archive 'XXX.deb' uses unknown compression for member 'YYY.tar.zst', giving up

Debian 11 and prior doesn't know how to unpack .deb files that were compressed with zstd compression.

@raiderrobert
raiderrobert / index.js
Created February 23, 2023 18:47
Cloudflare Worker for Traffic Splitting
import {
getAssetFromKV,
mapRequestToAsset,
} from "@cloudflare/kv-asset-handler";
/**
* The DEBUG flag will do two things that help during development:
* 1. we will skip caching on the edge, which makes it easier to
* debug.
* 2. we will return an error message on exception in your Response rather
* than the default 404.html page.

Basic Examples

Declare a schema

schema.amn

amount: int
state_code: str
@raiderrobert
raiderrobert / main.py
Created December 18, 2018 15:51
Dictionary Setup Comparison
markdown_document = dict(
header = list(()),
sales = list(()),
project = list(()),
leads = list(()),
devinf = list(()),
qa = list(()),
implementor = list(()),
support = list(()),
footer = list(())
### Keybase proof
I hereby claim:
* I am raiderrobert on github.
* I am rroskam (https://keybase.io/rroskam) on keybase.
* I have a public key ASCAOSwOMPAyDWbbfpR8VEe9xoFmduUms_JE5QqbI4sLkAo
To claim this, I am signing this object:
@raiderrobert
raiderrobert / match.py
Last active May 3, 2018 12:38
Pattern Matching Straw Man
# Simple pattern matching
x = 1
number = match x:
1 => "one"
2 => "two"
3 => "three"
10 => "ten"
_ => "anything"
@raiderrobert
raiderrobert / pytn2018-hands-on-machine-learning-with-scikit.txt
Created February 11, 2018 00:17
PyTenneesse 2018 - Hands on Machine Learning with Scikit-Learn by John Berryman 1pm Saturday
Hands on Machine Learning with Scikit-Learn by John Berryman 1pm Saturday
Twitter - @JnBrymn
Slides - http://slides.com/johnberryman/deck-10/fullscreen#/
Hands-On Machine Learning with Scikit-Learn & TensorFlow
Types of Machine Learning
- Supervised
- Unsupervised
@raiderrobert
raiderrobert / pytn2018-testing-the-infrastructure.txt
Last active February 10, 2018 16:54
PyTenneesse 2018 - Testing the Infrastructure by Sean Marlow
Testing the Infrastructure by Sean Marlow, 10:15am Saturday
Verifying the state of IaC and public cloud images with Python
slides here: https://smarlowucf.github.io/presentations/testing_infra/
(so fewer notes than I would do otherwise)
We have a bunch of tools that make it easier to deploy now rapidly
But now we can propogate a typo quickly
Our infrastructure is code. All code deserves tests.
@raiderrobert
raiderrobert / pytn2018-opening-keynote.txt
Last active February 10, 2018 16:10
PyTenneesee 2018 - Opening Keynote by Safia Abdalla
615-873-0382 - Code of Conduct Violations
PYTN2018
Keynote - Safia Abdalla, @captainsafia
- 10 days to submit 1st PR on Github: 1 char change on pandas
Open Source is the sum of small parts
You're one degree away from someone who can help you do something great
The best mentorship relationships are actually really good friendships.
- Being a human being in technology matters
@raiderrobert
raiderrobert / readme.md
Created January 31, 2018 14:29
DEP - Temporary Table

CREATE TEMPORARY TABLE cross_inventory AS SELECT * FROM inventory WHERE /* complex clause here */;

CREATE INDEX cross_inv_sku ON cross_inventory(sku);