Skip to content

Instantly share code, notes, and snippets.

Avatar
🇩🇪
Currently hacking from Berlin 🐻

Benedikt Rötsch axe312ger

🇩🇪
Currently hacking from Berlin 🐻
  • Remote / Berlin / Germany
View GitHub Profile
View ffmpeg convert speed up multiple videos by 4 and cut audio
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 Sep 4, 2019
Keep your developer system clean
View cleanup-dev-workstation.md

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 Jan 22, 2018
Metalsmith has 200+ plugins. Some duplicates and a few are in a bad shape, these list won't contain any of them.
View metalsmith-plugins.md

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 Jul 30, 2018
I try to gather here all information to get your css knowledge to a higher level
View css-ninja.md

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 Sep 9, 2016
Human readable encodeURIComponent results since utf-8 is widely supported yet.
View utf8EncodeURIComponent.js
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('')
View keybase.md

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 Jun 16, 2016
Created optimized svg sprite which allows coloring via css by using currentColor. Uses svgo and svgSprite.
View .svgo.yml
multipass: true
js2svg:
pretty: true
indent: 2
plugins:
- convertColors:
currentColor: true
- collapseGroups: true
@axe312ger
axe312ger / filebot.md
Last active Nov 3, 2016
mp3tag and filebot renaming
View filebot.md

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 Mar 5, 2014
Display the time a command needs to be completed. For example to test the dd performance.
View gist:9369401
sudo time dd if=/dev/disk2s1 of=test.deleteme bs=1m
You can’t perform that action at this time.