Skip to content

Instantly share code, notes, and snippets.

View joeysapp's full-sized avatar
🎯
Focusing

Joey Sapp joeysapp

🎯
Focusing
View GitHub Profile
@CoolOppo
CoolOppo / optimal-video-to-gif-imagemagick.md
Last active August 31, 2025 03:53
Converting videos to GIFs optimally using ImageMagick

ImageMagick Video to GIF Optimization Summary

A software developer who uses IM to create Movie GIFs, Benoit Rouleau, in discussion with me, gave me a AVI video of a plane flying over, to help us mutually explore IM video conversion techniques.

@yunga
yunga / Cliref.md
Last active November 3, 2025 19:29
CLIRef.md
_________ _____ _______________       _____
\_   ___ \\    \\___________   \____ / ____\     ~/.bash/cliref.md
/    \  \/|    | |   ||       _/ __ \  __\    copy/paste from whatisdb
\     \___|__  |_|_  ||    |   \  __/|_ |   http://pastebin.com/yGmGiDQX
 \________  /_____ \_||____|_  /____  /_|     [email protected]
 20160515 \/ 1527 \/         \/     \/

alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'

ImageMagick and FFMPEG commands

Remember that the order of parameters/options is very important.

convert images and save to another dir
convert *.png -set filename:original %t 'export/%[filename:original].jpg'
resize, change dpi and quality
@su-v
su-v / gist:9965739
Last active July 6, 2025 18:52
Inkscape / SVG on GitHub
@dergachev
dergachev / ssh-forward-clipboard.md
Last active November 10, 2025 16:10
Forward your clipboard via SSH reverse tunnels

Exposing your clipboard over SSH

I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.

This isn't practical for larger texts, like when I want to copy the whole contents of a file.

If I had been editing large-file.txt locally, I could easily copy its contents by using the pbcopy command:

@jhass
jhass / dump_socket.sh
Last active June 11, 2024 13:15
Capture unix socket to pcap file with socat and tshark
#!/bin/bash
# Parameters
socket="/run/foo.sock"
dump="/tmp/capture.pcap"
# Extract repetition
port=9876
source_socket="$(dirname "${socket}")/$(basename "${socket}").orig"
@KartikTalwar
KartikTalwar / Documentation.md
Last active October 31, 2025 06:59
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@GlowScripts
GlowScripts / All of the eBooks
Created August 28, 2011 22:41
Almost 1,000 "For Dummies" eBooks that I have. :)
78 Tax Tips for Canadians for Dummies (ISBN - 0470676582)
A Family's Guide to the Military for Dummies (ISBN - 0470386975)
Access 2007 VBA Programming for Dummies (ISBN - 0470046538)
Access 2010 All-in-One for Dummies (ISBN - 0470532181)
Access Forms & Reports for Dummies (ISBN - 0764599658)
Access VBA Programming for Dummies (ISBN - 0764574116)
Accounting for Dummies (ISBN - 0470246006)
Accounting Workbook for Dummies (ISBN - 0471791458)
Acne for Dummies (ISBN - 0471746983)
Acrylic Painting for Dummies (ISBN - 047044455X)