Skip to content

Instantly share code, notes, and snippets.

ffmpeg -err_detect ignore_err -i in.mp4 -c copy out.mp4
@geoffroymontel
geoffroymontel / supercollider-website-redesign.md
Last active March 27, 2019 12:55
supercollider.github.io website redesign

Context

On Novembre 18th 2018, at the Supercollider dev meeting, we talked about redesigning the supercollider.github.io website with two main objectives :

  • mobile friendly
  • should feature some SC example code & sounds

Sections

  • SC logo
  • SC promise in one sentence : "an open source software environment and dynamic coding language for audio synthesis and algorithmic composition"
  • since 1996 ;)
  • what is SC in two or three lines
git fetch upstream pull/ID-PULL-REQUEST/head:NOM-BRANCHE-LOCALE
git checkout NOM-BRANCHE-LOCALE
@geoffroymontel
geoffroymontel / gist:f334185d09ecd3ed376ceb7dc57268f4
Created January 5, 2020 13:28
Remove all old Ubuntu kernels from a VPS
dpkg --list linux-{headers,image,modules,tools}-\* | awk '{ if ($1=="ii") print $2}' | grep -v -e "$(uname -r | cut -d"-" -f1,2)" | xargs sudo dpkg --remove # use dpkg to remove all but the currently running kernel version
sudo apt-get install -f # It's common for apt to be in a broken state after running out of space on /boot
sudo apt-get autoremove # It's really common for apt to be broken on a package that should have been removed
sudo apt-get install -y linux-generic linux-headers-generic linux-image-generic linux-tools-generic # just in case latest kernel was mysteriously removed (e.g. when you are not running the latest kernel)
sudo update-grub # just in case it was not done automatically by dpkg
@geoffroymontel
geoffroymontel / gist:1a941f01b8164dd2711ec09bf74a4ede
Created April 26, 2020 08:23
Using python3 with youtube-dl
python3 `which youtube-dl` yoururl
@geoffroymontel
geoffroymontel / gist:ba7885b7b9e2490c1d365b5e15cd78fd
Created October 4, 2020 07:37
Remove Mac specific files (.DS_Store, ._ files)
from cmd
del /s /q /f /a .DS_STORE
del /s /q /f /a ._*