Skip to content

Instantly share code, notes, and snippets.

@Zehkul
Zehkul / Convert Script – README.md
Last active March 17, 2025 10:39
Script to quickly convert and crop videos from within mpv

#README:

This script for mpv intends to offer the fastest and simplest way to convert parts of a video—while you’re watching it and not really more work intensive than making a screenshot. A short demonstration: https://d.maxfile.ro/omdwzyhkoa.webm

##Installation:

You need:

  • yad (at least 0.26) (AUR)
@PhirePhly
PhirePhly / memdjpeg.c
Created July 10, 2012 02:33
A bare-bones example of how to use jpeglib to decompress a jpg in memory.
// memdjpeg - A super simple example of how to decode a jpeg in memory
// Kenneth Finnegan, 2012
// blog.thelifeofkenneth.com
//
// After installing jpeglib, compile with:
// cc memdjpeg.c -ljpeg -o memdjpeg
//
// Run with:
// ./memdjpeg filename.jpg
//
@freemed
freemed / ppa_publish.sh
Created July 11, 2011 18:04
PPA multiple distribution publishing script
#!/bin/bash
# Build and publish Ubuntu/Debian source packages for several releases
# without manually editing debian/changelog each time
#
# Written by TJ <[email protected]> July 2008
#
if [ $# -eq 0 ]; then
echo -e "\nUsage: $(basename $0) dput-ppa release-a [[release-b] [release-c]]\n"
echo -e " \tE.g. $(basename $0) my-ppa gutsy hardy intrepid\n"
echo "Edits the changelog before calling debuild and dput to publish"