Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Tristram Oaten 0atman

🏠
Working from home
View GitHub Profile
@0atman
0atman / markup-example.rs
Last active Apr 3, 2021
markup.rs is pug with brackets
View markup-example.rs
html {
head {
title { "example.com" }
style {
"body { background: #fafbfc; }"
"#main { padding: 2rem; }"
}
}
body {
@Header { "example.com" }
View telegram-pager.ino
/*******************************************************************
A telegram bot for your Adafruit Feather M0 with KeyboardFeatherWing
Adapted from telegram code written by Brian Lough
*******************************************************************/
#include <Adafruit_GFX.h>
#include <SPI.h>
#include <WiFi101.h>
#include <Wire.h>
#include <Adafruit_ILI9341.h>
@0atman
0atman / main.rs
Last active Jan 15, 2021
Simple C programming bootstrap file in Rust
View main.rs
#![feature(start, libc, lang_items)]
#![no_std]
#![no_main]
#![feature(rustc_private)]
extern crate libc;
extern { // A list of imported C functions
pub fn printf(format: *const u8, ...) -> i32;
}
@0atman
0atman / rust-research.org
Last active Nov 3, 2020
Noodling with rust, with rustic-babel
View rust-research.org
@0atman
0atman / hello.py
Created Sep 14, 2020
testing github api
View hello.py
print("hello")
@0atman
0atman / Dockerfile
Created Sep 14, 2020
multi-stage docker file for building bare-metal, tiny, rust containers
View Dockerfile
# Build Stage #
FROM rust:1.40.0 AS builder
WORKDIR /usr/src/
RUN rustup install nightly
RUN rustup default nightly
RUN rustup target add x86_64-unknown-linux-musl
RUN USER=root cargo new app
WORKDIR /usr/src/app
@0atman
0atman / pyinstaller.sh
Created Sep 2, 2020
pyinstaller works well!
View pyinstaller.sh
λ python hello.py
hi
λ pyinstaller hello.py
18 INFO: PyInstaller: 4.0
18 INFO: Python: 3.8.2
24 INFO: Platform: Linux-5.4.0-45-generic-x86_64-with-glibc2.29
24 INFO: wrote /home/oatman/projects/pyinsttest/hello.spec
26 INFO: UPX is available.
@0atman
0atman / stillalive.nim
Last active Jun 20, 2020
The code for my video cover of Jonathan Coulton's "Want You Gone" here https://youtu.be/k6giW_6_bFY
View stillalive.nim
import strutils
import terminal
import autotyperpkg/typer
const lyrics = """
1#
0#Forms FORM-29827201#
0#Test Assessment Report
This was a triumph.
I'm making a note here:
@0atman
0atman / wantyougone.nim
Last active Jun 6, 2020
The code from my music video, "Want You Gone", available here https://youtu.be/zvLGFe_8yWU
View wantyougone.nim
import strutils
import autotyperpkg/typer
const lyrics = """
Forms FORM-29827281-12-2:
Notice of Dismissal
Well here we are again
It's always such a pleasure
Remember when you tried
View bloglist.md

The Bloglist Manefesto

  • Anonymous and protected forever
  • Create account with just an email
  • Privacy protection baked in from the start
  • Hosted in a freedom-protecting country
  • Partner with EFF or similar
  • Back up forever
  • Profitable