Skip to content

Instantly share code, notes, and snippets.

View axe312ger's full-sized avatar
🏝️
Enjoying life

Benedikt Rötsch axe312ger

🏝️
Enjoying life
  • Remote / Berlin / Germany
View GitHub Profile
for i in *.MP4; do ffmpeg -i "$i" -an -filter:v "setpts=0.25*PTS" -r 60 -map_metadata 0 -movflags use_metadata_tags "optimized/${i%.*}.mp4"; done
@axe312ger
axe312ger / cleanup-dev-workstation.md
Last active March 15, 2022 11:55
Keep your developer system clean

Clean up your developer workstation

Free disk space on your development workstation by cleaning some caches

OSX/Brew

brew cleanup
@axe312ger
axe312ger / metalsmith-plugins.md
Created January 22, 2018 21:04
Metalsmith has 200+ plugins. Some duplicates and a few are in a bad shape, these list won't contain any of them.

Metalsmith Plugins - Handpicked

Metalsmith has 200+ plugins. Some duplicates and a few are in a bad shape, these list won't contain any of them.

Page Layout Rendering

Page Content Rendering

@axe312ger
axe312ger / css-ninja.md
Last active July 30, 2018 10:20
I try to gather here all information to get your css knowledge to a higher level

Become a CSS ninja with reading a few links I gathered here!

There is so many information about css in the internet but most of the stuff, is totally non-sense and is just misleading people into copy & pasting bullshit where they don't understand why it is are working.

This is one of the biggest issues of frontend design! Thats why so many designs/websites fail. Especially cross-browser.

It is just a little you need to know, to truely understand how css is working. I hope these informations from other wonderful authors help you to improve yourself and make frontend and css work less painfull

@axe312ger
axe312ger / utf8EncodeURIComponent.js
Last active September 9, 2016 11:48
Human readable encodeURIComponent results since utf-8 is widely supported yet.
const reserved = [
':', '/', '?', '#', '[', ']', '@', // RFC 3986 gen-delims
'!', '$', '&', '\'', '(', ')', '*', '+', ',', ';', '=', // RFC 3986 sub-delims
'%' // % needs to be encoded to ensure proper decoding
]
function utf8EncodeURIComponent (uri) {
return Array.from(uri)
.map((char) => reserved.includes(char) ? encodeURIComponent(char) : char)
.join('')

Keybase proof

I hereby claim:

  • I am axe312ger on github.
  • I am axe312 (https://keybase.io/axe312) on keybase.
  • I have a public key ASAj7L_SgUss0rrC-wMRLYmyQRLGp9W55rw862reuiitGwo

To claim this, I am signing this object:

@axe312ger
axe312ger / .svgo.yml
Last active June 16, 2016 15:07
Created optimized svg sprite which allows coloring via css by using currentColor. Uses svgo and svgSprite.
multipass: true
js2svg:
pretty: true
indent: 2
plugins:
- convertColors:
currentColor: true
- collapseGroups: true
@axe312ger
axe312ger / filebot.md
Last active November 3, 2016 09:28
mp3tag and filebot renaming

filebot

\PATH\TO\YOUR\MOVIE\LIBRARY\{if (ext == 'jpg' || ext == 'jpeg') "_trash-us/$fn/"}{n} ({y}){' - '+source}{if (Integer.parseInt(vf.substring(0, vf.length()-1)) > 720) bene_quali = " - 1080p" else {if(Integer.parseInt(vf.substring(0, vf.length()-1)) > 480) bene_quali = " - 720p" else bene_quali = " - "+sdhd}}/{n} ({y}){' - '+audio.language.replaceAll(/\//, "+")}{' - '+source}{" - CD$pi"} [{"${fn.match(/3D/)}, "}{vc}{', '+vf}{', '+ac}{', '+af}{', '+file.toString().match(/\.ld\.|\.md\.|dubbed/).toUpperCase().replaceAll(/\./,'')}]
@axe312ger
axe312ger / gist:9369401
Created March 5, 2014 15:25
Display the time a command needs to be completed. For example to test the dd performance.
sudo time dd if=/dev/disk2s1 of=test.deleteme bs=1m