Skip to content

Instantly share code, notes, and snippets.

View libjared's full-sized avatar

libjared

View GitHub Profile
@libjared
libjared / yt-dlp-filenames.zsh
Last active October 2, 2021 04:19
yt-dlp check consistent filenames
# DEPRECATED
# in a directory filled with yt-dlp saved items, we want filenames for
# metadata/thumbnails/video/etc to be exactly the same up until the extension.
# sometimes this doesn't happen due to e.g. a change in channel name or video title.
# for each video ID in this dir, print out the video IDs where the filenames (minus extensions) do not match.
find . -maxdepth 1 -type f -regextype grep -regex '.*\[[a-zA-Z0-9_-]\{11\}\]\..*' -printf '%f\n' | grep -Po '(?<= \[).{11}(?=\]\.)' | sort -u | while read f; do if ! for ff in *"${f}"*; do echo "$ff" | sed 's_\.\(\(info\|live\_chat\)\.json\|mkv\|mp4\|webp\|jpg\|[a-z]\{2,3\}\(-[A-Za-z0-9_-]\{2,14\}\)\?\.vtt\)$__'; done | sort -u | wc -l | grep -Eq '^1$'; then echo "$f"; fi; done
# inspect a single ID
for f in *W3_BIZLuXuw*; do echo "$f"; done | sed 's_\.\(\(info\|live\_chat\)\.json\|mkv\|mp4\|webp\|jpg\|[a-z]\{2,3\}\(-[A-Za-z0-9_-]\{2,14\}\)\?\.vtt\)$__'
@libjared
libjared / install-ripgrep-on-ubuntu.sh
Last active July 6, 2021 20:05 — forked from kostaz/install-ripgrep-on-ubuntu.sh
Install ripgrep on Ubuntu
#!/usr/bin/env bash
# Install ripgrep on Ubuntu
# Requires wget(1), curl(1), jq(1)
#
# I'm not responsible for any damages. Tested on WSL Ubuntu 18.04.4 LTS.
# List of changes from upstream:
# - use /usr/bin/env bash
# - set -e for zero error tolerance, and set -x for debugging
# - handle newer ripgrep release directory structure
@libjared
libjared / gist:9bd25f0e3f2dd1780a6f078d5d76473b
Last active December 12, 2023 08:35
how to use xiv character model for vrchat

This is gonna be long and I might not finish it but here's what I got. This shit is so long that if I get it down to a science I might make a program to automate it.

Overview

We will study your character stats, use FFXIV TexTools to export the model parts, Blender to fix it up....

Collecting data

Do you have your character appearance saved? It's not essential but it's very useful to have. It's in the form of a DAT. I hope you backed it up if you created them on an old PC. I'm not sure if you can resave it from an existing character. What I did was use the Shadowbringers Benchmark. I seem to remember there was a way to import your character from the base game but I can't remember. Anyway first you'll need to copy the character DAT to the benchmark folder.

@libjared
libjared / wtframe.html
Created November 6, 2019 22:34
Open in firefox with cache enabled. Every time you refresh the page another layer of iframe nesting is added.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<script>
function getContent() {
console.log('getcontent called');
setTimeout(function() {
var iframe = document.getElementById('wst-iframe');
/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4O//DRNdACgYSwSGSBse52ctkk89BE9lswo7Rg9jOWE7SOYR72WVsHbBDLCa0yfIIx8FNM1fOkbvSIuAlgprhDLkOGLad7slYlfZLmaPu1WjWgKaawhsKNSczacSQlf8CxLamdhbXLuj7gbCS4HnB6nsD5ozULwJvCmEd2NU4Lq/RavzRHgQ15cbsPx05TfRe0vPW+ACpYvu7BWlbpr7VA5UmF6Jw4l5HapQQDiGCyvXsF9OyfwLH1r8j5vm7+3pI8Z8f2CeBdpdd5ey/RrFqd4n+ZfJaKXUNQcT/tztPVlVW1FF7CGBmE7hpNPHU62VrC5sRKMWSn0DDE+9TWrMhggPydR8hsZO6BjXvVUSTme2ZYSTU9kw4DhDar7+AYm9pJoedXxI+EqXv+/R15FQbsLTsr9graqZjJRsAdSTkHDQUxlkMUQOhUzyHiTkM03xTNBO9u4f/14S2vfFsUDhGytDotjV+l41A1aZugYdEQXxDafFIPB7qLfIv2S2off3CSNTNeHjVIC3rOhulCDzNDM9zft+gA+BQJ3WhkRHNm6cIMZCGsGAxFyEI1oGilMA8/DXV1q7KDEeYvUCVGH3AtaJ59vfAhbacR3O7EgIgBeZ4o0TXrIMJmC4Kigw6+Ip2oZ7tBaCxXXIB1A6c+2DelfNRU23yRX10jw4JO6s0z9He8eX1Iiz3bgmPtVKTQdS658lGYpdKsk/ViL+dJf1LTPZ6v9eSDv+sf49gsphsZxiiKCHfDX8mvDqJjmXwnWO5H/+rcunbJnIRVNd0C15+NZwFfC5ENlih+YbAoviT/lU0RcjBRfXLehkOHrcLLbpBxhvp18mdLz+FM4qer6AjMDINVKzkjNxlShy1XTQ8HtcuakR0/P5ZuIboe30LXzovYGsiOs5l8VOIwVd+ebimaD5BWoW8emmn1pbkfhq6zygyTJTtkPJPcGfTITAycXokGIob3hm9dkllGZMyVu4HVOC1XhKYUn/
@libjared
libjared / Dockerfile
Created October 30, 2018 22:29
devkitPro arch linux development image (WIP)
#docker build -t "switchdev" ./switchdev
FROM archimg/base:full
MAINTAINER libjared
ENV DEVKITPRO /opt/devkitpro
ENV DEVKITARM /opt/devkitpro/devkitARM
ENV DEVKITPPC /opt/devkitpro/devkitPPC
RUN : \
&& pacman-key --recv F7FD5492264BB9D0 \
@libjared
libjared / gist:1999b3e7b94b2104424a
Created June 23, 2015 02:20
Basic GLSL SFML.Net skeleton
using SFML.Graphics;
using SFML.System;
using SFML.Window;
using System;
using System.Collections.Generic;
using System.Linq;
namespace OMGITSANAMESPACE
{
class Program
@libjared
libjared / gist:c5393af79a2f1f9b091c
Created June 2, 2015 03:12
chips challenge 2 packed map data
10x10 map, all empty
66 00 03 0A 0A 01 E3 01
0110011000000000000000110000101000001010000000011110001100000001
10x10 map, with a block in the top left hand corner
66 00 04 0A 0A 02 01 E2 01
011001100000000000000100000010100000101000000010000000011110001000000001
@libjared
libjared / jvr-bug-glxinfo
Created January 13, 2015 06:24
shader errors on this system
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
GLX_EXT_create_context_es2_profile, GLX_EXT_framebuffer_sRGB,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,