Skip to content

Instantly share code, notes, and snippets.

View DefrostedTuna's full-sized avatar

Rick Bennett DefrostedTuna

View GitHub Profile
@michaelbunch
michaelbunch / readme.md
Last active May 29, 2018 21:01
Interview Development Task

Interview Development Task

Task

Your users would like a service for sharing bookmarks with one other. The service should have authentication to keep the bookmarks private to only registered users. Once authenticated all bookmarks are visible by all users. A user can post a new bookmark for all to see, but only that user can edit or delete the bookmark. All users like the to see the bookmarks in alphabetical order by title. New users can join the service via a public registration page.

Estimated time to complete: 3 - 4 hours

@stephenmm
stephenmm / file_menu2.bash
Created July 12, 2018 20:23
Interactive and visual selection of array with arrows or 'j' 'k' keys. Can also edit (with autocomplete) the selection
#!/usr/bin/env bash
# Started from this code: https://unix.stackexchange.com/a/415155/14014
# Renders a text based list of options that can be selected by the
# user using up, down, 'j', 'k', and enter keys and returns the
# string in provided file.
# 'e' to edit the current string
# 'q' to quit
#
# Arguments : list of options, maximum of 256
https://github.com/tldr-pages/tldr/blob/master/pages/common/ffmpeg.md
Video to GIF
SET filters="fps=%4,scale=%3:-1:flags=lanczos"
ffmpeg -v warning -i %1 -vf "%filters%,palettegen" -y palette.png
ffmpeg -v warning -i %1 -i palette.png -lavfi "%filters% \[x\]; \[x\]\[1:v\] paletteuse" -y %2
DEL palette.png
togif.bat <input.mp4> <output.gif> <width> <fps>
Extract audio from a video