Skip to content

Instantly share code, notes, and snippets.

View Fortyseven's full-sized avatar
🥃
🟥🟧🟨⬜

Toby D Fortyseven

🥃
🟥🟧🟨⬜
View GitHub Profile
#!/usr/bin/env python3
from posixpath import basename
from rich import print
from rich.table import Table
from rich.console import Console
import argparse
import re
import os
import sys
@Fortyseven
Fortyseven / extract-grid-overview.py
Last active August 17, 2022 18:59
Creates a montage grid of frames from a video file with frame and time offset labels to help give a basic summary of the video file contents.
#!/usr/bin/env python3
'''
Creates a montage grid of frames from a video file with frame and
time offset labels to help give a basic summary of the video file contents.
'''
# ----------------------------------------------------------------------------
# REQUIRES: This script requires `ffmpeg`` (including `ffprobe``) and
# imagemagick (with `convert` and `montage`) to be available on the path.
#
@Fortyseven
Fortyseven / nemo-exiftoo.py
Created May 9, 2022 17:37
Nemo exiftool extension
import subprocess
from urllib.parse import unquote
from gi.repository import Nemo, GObject, Gtk
EXCLUDE_FIELDS = ["ExifTool Version Number"]
class ExifInfo(GObject.GObject, Nemo.PropertyPageProvider):
def get_property_pages(self, files):
if len(files) != 1:
#!/usr/bin/env python
# import requests
import argparse
from lxml import etree
from termcolor import colored
COLORS = [
# 'grey',
'red',
#!/bin/sh
if [ -z "$1" ]; then
echo "usage: data-url file" >&2
exit 1
fi
mimetype=$(file -bN --mime-type "$1")
content=$(base64 < "$1")
echo "data:$mimetype;base64,$content"
This file has been truncated, but you can view the full file.
<table style='max-width:1280px'>
<tr><td>17_AKB_May_2021</td><td><a href='https://twitter.com/search?src=typed_query&q=%23AKB15'>#AKB15</a></td><td><a href='https://abs.twimg.com/hashflags/17_AKB_May_2021/17_AKB_May_2021.png'><img src='https://abs.twimg.com/hashflags/17_AKB_May_2021/17_AKB_May_2021.png'/></a></td></tr>
<tr><td>17_AKB_May_2021</td><td><a href='https://twitter.com/search?src=typed_query&q=%23AKB'>#AKB</a></td><td><a href='https://abs.twimg.com/hashflags/17_AKB_May_2021/17_AKB_May_2021.png'><img src='https://abs.twimg.com/hashflags/17_AKB_May_2021/17_AKB_May_2021.png'/></a></td></tr>
<tr><td>17_AKB_May_2021</td><td><a href='https://twitter.com/search?src=typed_query&q=%238'>#8</a></td><td><a href='https://abs.twimg.com/hashflags/17_AKB_May_2021/17_AKB_May_2021.png'><img src='https://abs.twimg.com/hashflags/17_AKB_May_2021/17_AKB_May_2021.png'/></a></td></tr>
<tr><td>17_AKB_May_2021</td><td><a href='https://twitter.com/search?src=typed_query&q=%23'>#</a></td><td><a href='https://abs.twimg.com/has
[{"campaignName":"MalignantMovie_2021","hashtag":"*\u0e21\u0e32\u0e25\u0e34\u0e01\u0e41\u0e19\u0e19\u0e17\u0e4c","assetUrl":"https:\/\/abs.twimg.com\/hashflags\/MalignantMovie_2021\/MalignantMovie_2021.png","startingTimestampMs":"1626789600000","endingTimestampMs":"1634565600000"},{"campaignName":"MalignantMovie_2021","hashtag":"*\ub9d0\ub9ac\uadf8\ub10c\ud2b8","assetUrl":"https:\/\/abs.twimg.com\/hashflags\/MalignantMovie_2021\/MalignantMovie_2021.png","startingTimestampMs":"1626789600000","endingTimestampMs":"1634565600000"},{"campaignName":"Amazon_EVANGELION_July_2021","hashtag":"0813\u914d\u4fe1\u958b\u59cb","assetUrl":"https:\/\/abs.twimg.com\/hashflags\/Amazon_EVANGELION_July_2021\/Amazon_EVANGELION_July_2021.png","startingTimestampMs":"1626742800000","endingTimestampMs":"1634691600000"},{"campaignName":"LCS_Jan_2021_100T","hashtag":"100T","assetUrl":"https:\/\/abs.twimg.com\/hashflags\/LCS_Jan_2021_100T\/LCS_Jan_2021_100T.png","startingTimestampMs":"1611532800000","endingTimestampMs":"1641020400000"},{
@Fortyseven
Fortyseven / real-genius-script.txt
Last active July 25, 2021 02:00
Script to Real Genius. No reason.
REAL GENIUS
EXT. SKY-DAY
A Black B-1 Bomber banks steeply exposing its underside to us.
MAN (V.O./FILTERED)
* "...AND AN EXTRA HOWDY TO: STEVE AND GAYLE DAVID AND MARIE AND ELVIS WHEREVER YOU ARE HI FOLKS! ! ! ! ! STEVE, ARE YOU TO USING THAT $5?" - Lynx CASINO
* "...and besides, it's fun proving your sorry ass wrong." -- Chaka
* "...and besides, seizures are humorous, in a strange sort of way. you, however, are not." -- Chaka
* "...and car lisence plates, THE-HAC" -- Joykiller
* "...are you insinuating that i post oneliners in desperate attempts to garner hac's favor?" -- Chaka
* "...but then they stood up out of the bathtub... and they were hermaphidites...and what really pisses me off... it they don't need their penises... but they both had 11 inch cocks? How jelous I must sound... but thats a waste of meat!" -- Rogue
* "...drugs are, so far, safe, and have not caused any drastic or serious problems." -- Rogue
* "...I hate shit like having to deal with women... sometimes I wish I was one so maybe I could get a better understanding... but then I think of PMS and I'm glad I'm a guy
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,DEFD1C74D86411955BEDFC956ED3821F
FxvuMSt1BK/GmArbFRf6gv7GKEaARp0F8cqmdz03Dc05xqTHeqR0xy9Bk0vIz6H8
jRbdtsB22XLPZnAP3XFtdDvd6lYdIFLkdOIazOjzTruXtSK+L7qYgcbjbcbV0DQG
i0L1ndN6BsjeQDiohPVaqCA6BCdNoacl1cKf88pXhW38Ww37HTMMenmpRBqR2EqP
MMw3aPN8JyE/66T8WVTQ3C4m4CYUVMj4QRYE68NBwBbjui0Sskg9bp7g09XL+dvc
xNdPyRG98RXaArk+VLIjDSpCy+SMcCpgSEfhE6PomRDJn4WOiKAfeZ3pcQLpO6JN
9GxbL+CPbVw6t+kGSVwD/eXlDZJo6kceuMgJgTmcOj2tnaT+eKMV6S5QDVwVZTm1