Skip to content

Instantly share code, notes, and snippets.

brew list -1 | while read line; do brew unlink $line; brew link $line; done
@rponte
rponte / get-latest-tag-on-git.sh
Last active July 3, 2024 19:27
Getting latest tag on git repository
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples
@krohne
krohne / countdown.sh
Last active March 1, 2024 20:17
Countdown timer in bash shell script
#!/bin/bash
# $1 = # of seconds
# $@ = What to print after "Waiting n seconds"
countdown() {
secs=$1
shift
msg=$@
while [ $secs -gt 0 ]
do
printf "\r\033[KWaiting %.d seconds $msg" $((secs--))
@giansegato
giansegato / kaltura_file_download.md
Created September 5, 2020 14:20
How to download a video from Kaltura video service

Kaltura Video Downloader

Also known as: find and merge m3u8 files

⚠️ WARNING ⚠️ → use this guide at your sole discretion.

Check the copyright laws and the term of service before using it. You might be breaking the law!


  1. Open the Network tab of the Chrome Inspector