Skip to content

Instantly share code, notes, and snippets.

View FL33TW00D's full-sized avatar
🎯
Focusing

Christopher Fleetwood FL33TW00D

🎯
Focusing
View GitHub Profile
Copyright© Technovelgy LLC; all rights reserved.
Name Purpose Author (Publication Date) Category
Andy - an artificial human A slang term for "android" - an artificially created humanoid being. Philip K. Dick (1968) ai
Autobutle An automated servant. Frank Herbert (1972) ai
Automaton Chessplayer - the first chess-playing computer The first chess-playing computer. Ambrose Bierce (1910) ai
Automonk A robot with an AI trained on an individual monk. Ray Naylor (2022) ai
Ava - she wants to be taught A piece of learning software. Amitav Ghosh (1995) ai
Bard A machine that invents randomized stories and can read them out loud or animate them for viewing. Isaac Asimov (1956) ai
Bendix Anxiety Reducer Machine-based psychotherapy. Robert Sheckley (1956) ai
Big Computer - wide-screen Jehovah Just like it says; this computer knows it all. John Varley (1983) ai
@FL33TW00D
FL33TW00D / countdown.py
Created August 28, 2024 12:44
Mortality countdown
"""
Countdown until I turn 30. Pair with:
crontab -e
30 07 * * * /usr/bin/python3 /home/days-till-30/countdown.py
"""
import datetime
from PIL import Image, ImageDraw, ImageFont
import os
import subprocess
@FL33TW00D
FL33TW00D / onnx
Created July 22, 2022 07:45
All ONNX Ops - 22/07/22
Abs
Acos
Acosh
Add
And
ArgMax
ArgMin
Asin
Asinh
Atan
@FL33TW00D
FL33TW00D / tail_logs.sh
Created April 23, 2022 20:47
Bunyan format logs from Digital Ocean
#!/bin/bash
deployment_id=`doctl apps list | grep -m 1 -Eo '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' | head -1`
curdate=`gdate +%s`
logs=`doctl apps logs ${deployment_id} --tail 10000 > logs/$PROJECT_NAME-${curdate}.log`
sed -i '' 's/$PROJECT_NAME .*{/{/g' logs/$PROJECT_NAME-${curdate}.log
cat logs/$PROJECT_NAME-${curdate}.log | bunyan
if [ $? -eq 0 ]; then
echo Successfully retrieved and tailed logs for ${deployment_id}
else
echo Failed to tail logs
@FL33TW00D
FL33TW00D / .zshrc
Created April 11, 2022 13:53
zshrc
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH