Skip to content

Instantly share code, notes, and snippets.

View spacekookie's full-sized avatar
🏴
I want for you what you want for me

Katharina Fey spacekookie

🏴
I want for you what you want for me
View GitHub Profile
@spacekookie
spacekookie / colours.mut
Created June 28, 2019 18:22
Mutt colours
# Default index colors:
color index yellow default '.*'
color index_author red default '.*'
color index_number blue default
color index_subject cyan default '.*'
# For new mail:
color index brightyellow black "~N"
color index_author brightred black "~N"
color index_subject brightcyan black "~N"
@spacekookie
spacekookie / fonts.txt
Last active November 18, 2023 20:10
A list of fonts for Arch linux (including AUR) that cover most alphabets and scripts
adobe-source-han-sans-otc-fonts adobe-source-han-serif-otc-fonts \
ttf-ubraille adobe-source-han-sans-cn-fonts adobe-source-han-sans-tw-fonts \
adobe-source-han-serif-cn-fonts adobe-source-han-serif-tw-fonts ttf-hannom \
adobe-source-han-sans-jp-fonts adobe-source-han-sans-kr-fonts ttf-hannom \
ttf-indic-otf ttf-freebanglafont ttf-khmer persian-fonts ttf-mgopen ttf-amiri \
ttf-sil-lateef ttf-mgopen culmus fonts-tlwg ttf-tibetan-machine
@spacekookie
spacekookie / main.rs
Created May 15, 2018 18:09
FizzBuzz SIMD Edition
extern crate core;
use core::arch::x86_64::*;
#[inline]
fn simdset(a: u32) -> __m256 {
unsafe {
_mm256_setr_ps(
a as f32 + 0.0,
a as f32 + 1.0,
a as f32 + 2.0,
@spacekookie
spacekookie / mooncookies.md
Last active June 9, 2019 09:10
Mooncookie recipe
@spacekookie
spacekookie / Pattern.java
Last active June 9, 2019 09:13
Easy lambda init pattern
public interface MyCreator {
void create(MyClass mc);
}
// ...
class MyClass {
// ...
public MyClass create(MyCreator creator) {
git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
import json, requests
url = 'https://eventphone.de/guru2/phonebook?event=34C3&s=&page=1&format=json'
resp = requests.get(url=url, params=None)
output = json.loads(resp.text)
free_numbers = list(range(2100, 9999))
for entry in output:
try: