Skip to content

Instantly share code, notes, and snippets.

View cskonopka's full-sized avatar
📺
stuck inside a television

Christopher Konopka cskonopka

📺
stuck inside a television
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 3 columns, instead of 2 in line 5.
media_id,thumb_url,video_url
6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b,https://drive.google.com/thumbnail?id=1toGQMthvdGzs885erzozVXvqrcdk-cp6&sz=w1000,https://drive.google.com/file/d/1toGQMthvdGzs885erzozVXvqrcdk-cp6/preview
6b86b273ff34fce19d6b804eff5a3f5747ada4eaa22f1d49c01e52ddb7875b4b,https://drive.google.com/thumbnail?id=1cZQQXgyjUtxZ4LtyI76YyuaDaikwvkVp&sz=w1000,https://drive.google.com/file/d/1cZQQXgyjUtxZ4LtyI76YyuaDaikwvkVp/preview
d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35,https://drive.google.com/thumbnail?id=1VfojAmAw_8j7TrhRuv3ijYs9Vu_BMSDq&sz=w1000,https://drive.google.com/file/d/1VfojAmAw_8j7TrhRuv3ijYs9Vu_BMSDq/preview
4e07408562bedb8b60ce05c1decfe3ad16b72230967de01f640b7e4729b49fce,https://drive.google.com/thumbnail?id=10zWa37U55-ovxi-9FXWq8tE2feyHi9So&sz=w1000,https://drive.google.com/file/d/10zWa37U55-ovxi-9FXWq8tE2feyHi9So/preview
4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a,https://drive.google.com/thumbnail?id=1aI4lEqxJh2L
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 4 columns, instead of 1 in line 7.
username_hash,salt_b64,iterations,hash_hex
7b2b547ab5377906300c69cd065aa48ecc143ddcd9501ef2b7c6408cc3592ac3,FcbEOehHu3OaVzyWY+kTYQ==,80000,015482f224f27f9d996e4305b0ec80255c14c2ede73dd7e53898fce9cfc957cd
36e5eebcf7aee8f72bc168e0f8ae6eed00d60446e9f7c03989ddea84ac7c8711,XNtcs+EMI1mNybg0Z0E8aA==,80000,853aaea742ad04df27310abcccaae3ba5c59d4449af98665b240560902ce95c6
ae9a6aa038a92a456dc27a69746da4ec4f4fc490d411711c0f6c5ec01ba21656,FDM+H/dL/jnGY5LjpDeFFg==,80000,5c57eee6c6d976b904d8e2cddd9c0a3b16bf8a99d161ef74bf378aa839cdebbc
7911009d21a63500ec0fd9b04e52e817e9f8a7b42882f7162a8fed1cd4c313a5,0KysNCYljSs4IsCcPVzXrg==,80000,65269e66478695c55d4a1b2cc2a1b7245b0106ae68b5f5aae5ef17aa3cb8739a
d80bb888110d9b34c122665e729c575470b4771e8f4c331b52e1d46f06a815d3,3U73ZA4ECHmAh3xw5ZS8Jw==,80000,08657aca12a97adbaa60f5a9c6124f48a3652efe5ce112bdc02351f666eaba60
77942b4e0f220402cf3ba73178eec3c564dcf07bb793b6a7fcb4bde5cf0607ae,qOwH9vMtkUXQQuN/lUgVkg==,80000,b4694b979894871d8294ff2b38b6a21cdb7693b4a31c2bc5b0a7d52b5ac032b0
21e678c16a7188d
@cskonopka
cskonopka / webglo-html-webgl-template.html
Created March 21, 2025 00:40
webglo-html-webgl-template.html
<html>
<script type="text/javascript">
var GL;
var shaderId;
var vertexBuffer;
var indexBuffer;
var timer = 0;
function initWebGL(){
@cskonopka
cskonopka / webglo-working-example.html
Last active March 21, 2025 00:39
webglo-working-example.html
<!--
File: webglo-example.html
Creator: Christopher Konopka (cskonopka)
Project: https://github.com/vondas-network/webglo
Website: webglo.btc.us
Ordinal: https://ordinals.com/content/5518d36079b3cc854dba0bd6497ec078fbaa996ebd53e908150c845d6a56a463i0
Basic example of the webglo file. It’s an HTML file with embedded WebGL using Javascript.
The file was uploaded to the Bitcoin blockchain using the Ordinals protocol as an “inscription”.
-->
for f in ./*.mp4
do ffprobe -v quiet -of csv=p=0 -show_entries format=duration "$f"
done | awk '{sum += $1}; END{print sum}'
@cskonopka
cskonopka / btc-html5-webgl.html
Created June 13, 2023 22:13
Bitcoin Ordinal HTML5 + WebGL example
<html>
<script type="text/javascript">
var GL;
var shaderId;
var vertexBuffer;
var indexBuffer;
var timer = 0;
function initWebGL(){
#!/bin/bash
n=0;
for file in *.jpg ; do mv "${file}" "${n}".jpg; n=$((n+1)); done
@cskonopka
cskonopka / aptiv-install.sh
Last active March 25, 2020 07:22
A fresh rpi install for python3 and flask.
#!/bin/bash
# Update
sudo apt-get update
# Install GPIO lib
sudo pip3 install --upgrade RPi.GPIO
# Install Git
sudo apt install git
# Install Python3 from source
sudo su
@cskonopka
cskonopka / docker-RemoveAllContainersImages.sh
Created December 31, 2019 04:48
Remove all Docker Containers and Images from operating system
#!/bin/bash
# remove all Docker containers
docker rm $(docker ps -a -q)
# remove all Docker images
rmi $(docker images -a -q)
@cskonopka
cskonopka / ffmpeg-CreatePngPaletteGif.sh
Created August 3, 2019 03:05
Search a directory for .mp4 files, create a .png using the "palettegen" filter and then generate a new gif using the .png and source .mp4
#!/bin/bash
echo "Provide a directory please :"
read dir
for f in $dir/*.mp4
do
echo "Processing $f"
echo "${f%.*}.png"
ffmpeg -y -ss 0 -t 11 -i $f -filter_complex "[0:v] palettegen" "${f%.*}.png"
ffmpeg -ss 0 -t 11 -i $f -filter_complex "[0:v] fps=24,scale=w=480:h=-1,split [a][b];[a] palettegen=stats_mode=single [p];[b][p] paletteuse=new=1" "${f%.*}.gif"
done