Listing posts

Displaying posts 6 - 10 of 327 in total
Video editing software
mouse 670 · person cloud · link
Last update
2024-03-08
2024
03-08
«video editor»
  1. shotcut appimage
  2. kdenlive appimage
  3. openshot appimage
  4. flowblade deb

Source: itsfoss.com


~~~ * ~~~

extract first frame from animated GIF
mouse 55 · person cloud · link
Last update
2024-03-06
2024
03-06
« — »
1
2
3
4
5
# from file
convert image.gif[0] first_frame.gif

# from stdin
cat image.gif | convert -'[0]' first_frame.gif

Source: stackoverflow


~~~ * ~~~

Linux default date & time format
mouse 37 · person cloud · link
Last update
2024-03-04
2024
03-04
« — »
  1. find your current locale
1
2
locale | grep LC_TIME
# => LC_TIME="en_US.UTF-8"
  1. edit the corresponding file /usr/share/i18n/locales/en_US

  2. change values to your liking:

1
2
3
4
d_t_fmt "%a %d %b %Y %T %Z"
d_fmt   "%Y//%m//%d"
t_fmt   "%T"
date_fmt "%a %d %b %Y %T %Z"
  1. regenerate locales and re-login
1
2
locale-gen
update-locale

Source: linuxopsys


~~~ * ~~~

Rails bin/dev via GNU screen
mouse 55 · person cloud · link
Last update
2024-03-01
2024
03-01
«run Procfile.dev within GNU screen»

Prepend to bin/dev:

1
2
3
4
5
6
7
8
if command -v screen &> /dev/null; then
  rc_file="tmp/screenrc"
  grep -E -v "^(screen|select|source) " $HOME/.screenrc 2> /dev/null > $rc_file
  nl bin/Procfile.dev | \
    sed -r 's/^\s*([0-9]+)\s*([^:]+): (.+)/split\nfocus\nscreen -t \2 \1 \3/' | \
    tail -n +3 >> $rc_file
  exec screen -c $rc_file
fi

Source: kyrylo.org and overmind


~~~ * ~~~