Skip to content

Instantly share code, notes, and snippets.

View FossPrime's full-sized avatar
💭
GitLab rocks!

Ray Foss FossPrime

💭
GitLab rocks!
View GitHub Profile
@FossPrime
FossPrime / webreadyx264.sh
Last active September 23, 2015 18:21 — forked from anonymous/webreadyx264.sh
Simplest lossy web ready x.264 ffmpeg command
#!/bin/bash
# strict 2 is required to use the built in aac codec
# Fast start may not be needed when using the built in aac, but it is for h264
ffmpeg -i input.mov -vcodec h264 -acodec aac -strict -2 -movflags faststart output.mp4
# Better Quality, medium compression
ffmpeg -i input.avi -vcodec h264 -preset veryslow -crf 18 -acodec aac -strict -2 -b:a 240k -movflags faststart helvet.mp4
# Doing lossy X to lossy x264/aac right, crf 18 - 1 to account for compression artifacts
ffmpeg.exe -i input.avi -vcodec h264 -crf 17 -preset veryslow -acodec aac -strict -2 -b:a 240k -movflags faststart output.mp4
@FossPrime
FossPrime / gdoceverything.bat
Last active August 29, 2015 14:27
Google Office Editing For Docs, Sheets and Slides windows file extension association script
Assoc .docx=cdocfile
Ftype cdocfile="C:\Program Files (x86)\Google\Chrome\Chrome.exe" %1
Work in progress, verify that path and copy for all other office files.
@FossPrime
FossPrime / gist:908303fd7482751eb60e
Last active November 30, 2015 19:44
Clean up windows 10 garbage
// uninstall all windows 8 apps, including one drive
Get-AppxPackage -AllUsers | Remove-AppxPackage
// Todo: Group policies for
// Turn off Windows Defender
// Remove OneDrive from file explorer
@FossPrime
FossPrime / Fedora-23-Nvidia-Workstation-Notes.md
Last active March 30, 2016 12:29 — forked from anonymous/Fedora-23-Nvidia-Workstation-Notes.md
January 2015 Fedora 23 Workstation Configuration Notes
@FossPrime
FossPrime / Windows10forLinux.md
Last active February 3, 2016 18:55
Windows 10 for Linux Users Configuration guide
@FossPrime
FossPrime / github-labels.txt
Created December 6, 2016 20:31
GitHub labels RegEx
// finds the "99 Open issues" part of the github lables page.
/[ Edit Delete ]*?[0-9|,]* open issues? ?/
@FossPrime
FossPrime / ffmpegchapters-explicit.sh
Last active August 18, 2017 16:21 — forked from dcondrey/ffmpegchapters-explicit.sh
Use ffmpeg to split file by chapters. Python version and bash version
#!/bin/bash
# m4v and mp4 video, Chapter Marker splitter
# May be particularly good with final cut DVD chapter markers
# This standard seems to be popular in MP3's... cant find the official spec
# Chapter #0:0: start 0.000000, end 1290.013333
# Metadata:
# title : 3.4 - Rigging and Replacement
# http://linuxcommand.org/lc3_man_pages/readh.html