Skip to content

Instantly share code, notes, and snippets.

@flxai
flxai / emojihash.ipynb
Created February 23, 2023 00:16
EmojiHash™
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flxai
flxai / scanner-search.ipynb
Created February 20, 2023 04:16
Search for a USB Scanner for Linux
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flxai
flxai / colormaps-turbo-variants.ipynb
Last active February 16, 2023 23:14
Variants of turbo colormap
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flxai
flxai / salavon-centerfolds-recreate.ipynb
Created February 3, 2023 19:30
Recreate Salavon's piece 'Every Playboy Centerfold, The 1970s (normalized)' from 2002
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flxai
flxai / nixpkgs
Created August 13, 2022 04:23
nixpkgs searches search.nixos.org for packages and prints their infos
#!/usr/bin/env bash
# nixpkgs queries and parses search.nixos.org in a dirty way
channel=22.05
sort_mode=relevance
max_wait=10000
function usage() {
echo "Usage:"
echo "$(basename ""$0"") SEARCH_TERM"
exit 1
@flxai
flxai / reddit-list-subs.py
Created August 10, 2022 15:43
Reddit list Subreddits
#!/usr/bin/env python3
# Download a list of subscribed subreddits
# Since this program uses stderr incoke it like this to store subs to file:
#
# reddit-list-subs > subs.lst
import getpass
import praw
import sys
@flxai
flxai / README.md
Last active June 27, 2022 17:30
Neural MtG

Let's play neural MtG!

  1. Get the mtg-neural-deck.py script to download some cards.
  2. Build a deck with your freshly hallucinated cards.
  3. ???
  4. Profit!

EDA

Check out the Jupyter notebook eda.ipynb to throw some statistics on your already downloaded cards.

@flxai
flxai / gather-lineage-os-devices.ipynb
Created February 15, 2022 00:36
Gathers data on LOS devices and show number of maintainers and cost efficiency
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flxai
flxai / README.md
Last active January 4, 2022 23:44
Unlock OpenSSH keys using passphrases from KeePassXC database

About

This script unlocks multiple OpenSSH keys that reside in a common directory, e.g. ~/.ssh/keys, using passphrases stored in a KeepassXC database, e.g. ~/.keepass.kdbx.

Installation

Download the script and make it executable, e.g. using

$ url="https://gist.githubusercontent.com/flxai/14ddcaf8c25979846cb159c8eff82e32/raw/59eb4b1d5716f19d54b7f2bc73fc88d152006cff/ssh-keyring"
@flxai
flxai / README.md
Last active January 3, 2022 20:59
Gruvbox style variant for matplotlib

Download & installation

Download the gruvbox-colored.mplstyle to the according directory:

$ url="https://gist.githubusercontent.com/flxai/ccb46e725272943d62325a2e8a1fae4c/raw/81c54b723cd69a5f82e673a2f2df6ddc5ac5dc5e/gruvbox-colored.mplstyle"
$ mkdir -p ~/.config/matplotlib/stylelib
$ curl "$url" -o ~/.config/matplotlib/stylelib/gruvbox-colored.mplstyle