Skip to content

Instantly share code, notes, and snippets.

@domportera
domportera / ffmpeg-optimize-with-creation-date.sh
Last active November 4, 2022 17:41
ffmpeg-optimize-with-creation-date
#!/bin/bash
#
# this is very much a work in progress, user beware and please test before use.
# I have only tested on the Ubuntu shells on Windows so far
# I have only tested h264->h265(hevc) so far
# some resources I've used to compose this:
# https://unix.stackexchange.com/questions/118577/changing-a-files-date-created-and-last-modified-attributes-to-another-file
# https://superuser.com/questions/901912/copy-creation-date-metadata-when-converting-video-with-ffmpeg
# https://stackoverflow.com/questions/9464617/retrieving-and-saving-media-metadata-using-ffmpeg
@domportera
domportera / generate-ssh-key.sh
Last active May 15, 2023 20:04
Generates an ssh key an automatically adds it to your bashrc
#!/bin/bash
#----- CONFIG -----
ssh_key_name=key_name
#if using with Unity, this should be left blank
password=""
# if using with unity, the host_alias should be substituted for the base remote URL in the package manager
host_alias="alias"
@domportera
domportera / ComputeShaderUtilities.hlsl
Created May 3, 2023 07:56
Include this to have useful macros for defining kernel-specific variables that can aid in your compute-shadering
// Licensed under the accredited MIT License, Copyright Dom Portera
// For full license text, see LICENSE file in the repo root or https://opensource.org/licenses/MIT
#ifndef UTILITY_MACROS
#define UTILITY_MACROS
/**
* \brief reference the resolution variable generated by resolution def macro
* \param texName
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Drive\shell]
@="open"
[HKEY_CLASSES_ROOT\Drive\shell\open\command]
@="C:\\Program Files\\Double Commander\\doublecmd.exe -P L -T \"%1\""
[HKEY_CLASSES_ROOT\Directory\shell]
@="open"