Skip to content

Instantly share code, notes, and snippets.

View devbyaccident's full-sized avatar
💭
I do a lot of stuff.

Chris Blackden devbyaccident

💭
I do a lot of stuff.
View GitHub Profile
@jart
jart / rename-pictures.sh
Created December 12, 2023 15:24
Shell script for renaming all images in a folder
#!/bin/sh
# rename-pictures.sh
# Author: Justine Tunney <jtunney@gmail.com>
# License: Apache 2.0
#
# This shell script can be used to ensure all the images in a folder
# have good descriptive filenames that are written in English. It's
# based on the Mistral 7b and LLaVA v1.5 models.
#
# For example, the following command:
@hyperupcall
hyperupcall / settings.jsonc
Last active May 3, 2024 12:52
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{
@javelin
javelin / ffmpeg.md
Last active April 9, 2024 03:57
FFmpeg Cheat Sheet

FFmpeg Cheat Sheet

Change aspect ratio

ffmpeg -I input.mp4 -aspect 16:9 -c copy output.mp4

Concat demuxer

echo "file xxx.mp4\nfile yyy.mp4\nfile zzz.mp4" > list.txt ffmpeg -f concat -i list.txt -c copy output.mp4

Create video from image set

@straubt1
straubt1 / Terraform on Mac M1.md
Created June 14, 2022 18:38
Notes to install Terraform on M1

Installing the amd64 version of Terraform on Mac with M1

Not all Terraform providers are built for arm64.

One solution here is to install Terraform as amd64 which can be easily done from the downloads page.

However, for those who are using and switching between versions of Terraform often, a more streamlined approach is desirable.

Enter asdf.

@JXWw3wLD9LArcR7c
JXWw3wLD9LArcR7c / Samsung Smart-TV Blocklist Adlist (for PiHole)
Last active May 3, 2022 19:52 — forked from eterps/Samsung Smart-TV Blocklist Adlist (for PiHole)
This is a fork of a blocklist to block samsung smart tv's sending meta data at home.
# This is a fork of a blocklist to block samsung smart tv's sending meta data at home. Originally made by eterps.
# This fork was made after noticing the former was inactive. If I become inactive, feel free to fork this.
# I had also decided to sort this from a-z, and remove duplicates.
# Please report any problems you might have, and I'll update the blocklist.
# I am unable to test this, I share my tv with people who would be unhappy with my "experiments", so I rely on reports
# 0.0.0.0 cdn.samsungcloudsolution.com # general internet connectivity issues
# 0.0.0.0 lcprd1.samsungcloudsolution.net # Reported that some smarthub features might not work
# 0.0.0.0 ns11.whois.co.kr # TV Network status checks
# 0.0.0.0 samsungcloudsolution.com # general internet connectivity issues
@kylemcdonald
kylemcdonald / Collect Parler Metadata.ipynb
Last active September 20, 2023 11:45
Collect video URLs and GPS data for Parler videos.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# This is a blocklist to block samsung smart tv's sending meta data at home.
# Please help to collect domains!
# It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident.
# https://gist.github.com/Perflyst/315f86393712a0c2107ee8eb58c6acee
0.0.0.0 device-metrics-us.amazon.com
0.0.0.0 samsungacr.com
0.0.0.0 samsungcloudsolution.com
0.0.0.0 samsungcloudsolution.net
0.0.0.0 pavv.co.kr
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active May 8, 2024 10:42
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@hummus
hummus / gist:8592113
Last active April 26, 2024 19:45
aws cli + jq example
wget http://stedolan.github.io/jq/download/linux64/jq
aws ec2 describe-instances --filters "Name=tag:Name,Values=$NAME" \
"Name=instance-state-name,Values=running" \
| jq -r \
".Reservations[] | .Instances[] | .InstanceId" \
aws ec2 describe-volumes --filters \
"Name=status,Values=available" \
| jq -r ".Volumes[] | .VolumeId" \