Skip to content

Instantly share code, notes, and snippets.

View janpaul's full-sized avatar

Jan Paul janpaul

View GitHub Profile
@janpaul
janpaul / mkv-to-mp4.sh
Last active June 20, 2020 12:21
convert `mkv` to `mp4`
find . -name '*.mkv' -print -exec ffmpeg -i "{}" -codec copy "{}.mp4" \;
@janpaul
janpaul / vscode-settings.json
Created April 13, 2020 17:54
Visual Studio Code settings
{
"editor.fontSize": 15,
"editor.fontFamily": "'JetBrains Mono', Hack, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.formatOnSave": true,
"editor.tabSize": 2,
"editor.suggestSelection": "first",
"editor.insertSpaces": true,
"editor.renderWhitespace": "all",
"editor.rulers": [
@janpaul
janpaul / git_duplicate.sh
Created January 27, 2019 10:23
move a git repo from one remote to another
PROJECT=datamonitor-common
[[ -d $PROJECT ]] && rm -rf $PROJECT
git clone git@bitbucket.org:ritense/$PROJECT.git
cd $PROJECT
for remote in `git branch -r | grep -v master `; do git checkout --track $remote ; done\n
git remote rename origin old-origin
git remote add origin git@gitlab.et-scm.com:rdm/$PROJECT.git
git push -u origin --all
git push -u origin "*:*"

Keybase proof

I hereby claim:

  • I am janpaul on github.
  • I am janpaul74 (https://keybase.io/janpaul74) on keybase.
  • I have a public key ASDKdEG2lW8__eu7EyFP5XUiaPnO_NCePjDTxpE9BjetaAo

To claim this, I am signing this object:

@janpaul
janpaul / mp3concat.rb
Created January 5, 2017 14:51
generate an ffmpeg command that converts a directory full of MP3's to one large MP3
# copy-and-paste the output of this script into a shell, and rejoice.
files=Dir.glob('*.mp3').sort.join('|')
puts "ffmpeg -i \"concat:#{files}\" -acodec copy output.mp3"