Skip to content

Instantly share code, notes, and snippets.

@youandhubris
youandhubris / Update All Submodules in Source Tree.md
Last active January 5, 2021 01:53
Update all Submodules, using a Custom Action, in Source Tree

Update all Submodules, using a Custom Action, in Source Tree

  1. Go to Actions > Custom Actions > Edit > Add

  2. Menu Caption Update All Submodules

  3. Check Show Full Output

  4. Script to run /usr/bin/git

    If installed in default location

  5. Parameters submodule update --recursive --remote

@youandhubris
youandhubris / FFmpeg.md
Last active March 8, 2022 14:47
FFmpeg & FFprobe

Convert

To HAP Alpha

ffmpeg -i in.mp4 -vcodec hap -format hap_alpha out.mov

To HEVC (x265) GPU

ffmpeg -hwaccel cuvid -i in.mkv -c:v hevc_nvenc -preset slow -b:v 8M -maxrate:v 8.5M -pix_fmt yuv420p out.mkv



Extract

Aiff from H264

@youandhubris
youandhubris / HAP-Alpha-1080p.epr
Last active April 1, 2018 14:33
Presets for Adobe Media Encoder
<?xml version="1.0" encoding="UTF-8"?>
<PremiereData Version="3">
<IngestPresetUserComments></IngestPresetUserComments>
<IngestMetadataPreset></IngestMetadataPreset>
<IngestMetadataEnabled>false</IngestMetadataEnabled>
<IngestNamingPreset></IngestNamingPreset>
<IngestNamingEnabled>false</IngestNamingEnabled>
<IngestTranscodeExporterModuleName></IngestTranscodeExporterModuleName>
<IngestTranscodePresetName></IngestTranscodePresetName>
<IngestTranscodePath></IngestTranscodePath>
@youandhubris
youandhubris / openframeworks.gitignore
Last active April 1, 2018 14:32
Collection of useful Git ignores
# Linux
*~
.fuse_hidden*
.directory
.Trash-*
.nfs*
# macOS
*.DS_Store
.AppleDouble
@youandhubris
youandhubris / Config Submodule.md
Last active April 4, 2018 11:59
Configure submodule to be able to commit and update from another repository

On the submodule repository:

git config receive.denyCurrentBranch updateInstead

Reference

# Auto detect text files and perform LF normalization
* text=auto
@youandhubris
youandhubris / GLFW - Error-65544 - Windows Fix.md
Last active April 12, 2018 23:26
Possible fix for GLFW error 65544 on Windows

GLFW error 65544: No monitor found.

Go to Device Manager > Monitors and check if the correct device is enabled and properly installed. Do Update Driver.

@youandhubris
youandhubris / Gitattributes-linguist-vendored.md
Created April 12, 2018 11:11
Force GitHub to properly detect your repositories main language(s)

Create/Edit .gitattributes, and declare what to ignore, like so:

.make linguist-vendored

Example

Reference/Credits to Monica Powell

@youandhubris
youandhubris / AppleScript Mail Send.scpt
Last active December 19, 2023 18:58
AppleScript to send e-mail, using Apple's Mail, with multiple recipients, cc, bcc and attachments
tell application "Mail"
set theFrom to ""
set theTos to {}
set theCcs to {}
set theBccs to {}
set theSubject to ""
set theContent to ""
set theSignature to ""
@youandhubris
youandhubris / Bash-newPATH.md
Created April 13, 2018 14:03
Bash - Adding a new PATH on macOS

Example

Manually

(edit ~/.bash_profile and append)

# Setting PATH for something
PATH="/new/dir/location/bin:${PATH}"
export PATH