Skip to content

Instantly share code, notes, and snippets.

View JohannesFischer's full-sized avatar

Johannes Fischer JohannesFischer

View GitHub Profile
ffmpeg -i input.mov -filter_complex "[0:v] fps=12,scale=1000:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" output.gif
@JohannesFischer
JohannesFischer / til.md
Last active March 6, 2022 23:48
Today I learned

TIL - Things I learned that day

Inspect web pack bundle

$(npm bin)/webpack --json > stats.json
npx webpack-bundle-analyzer stats.json

Clear node module folders

@JohannesFischer
JohannesFischer / keymap.c
Created February 10, 2021 06:37
Dozen0 keymap
/* Copyright 2019 yynmt
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@JohannesFischer
JohannesFischer / keymap.c
Created February 10, 2021 06:36
Yushakobo quick7 keymap
/* Copyright 2020 yushakobo
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@JohannesFischer
JohannesFischer / README.md
Last active November 10, 2020 08:05
KBD6X HHKB Settings

HOWTO Flash your board

  1. Reset Sequence to drop into bootlader (hold Space + B > connect USB > release keys after 1 second - underglow should be off)
  2. sudo dfu-programmer atmega32u4 erase
  3. sudo dfu-programmer atmega32u4 flash yourhexfile.hex
  4. sudo dfu-programmer atmega32u4 reset
@JohannesFischer
JohannesFischer / prepare-commit-msg.sh
Created November 5, 2020 07:57
Git Hook - prepare commit msg
#!/bin/bash
# prefixes commit msg with "BRANCH_NAME: " unless already included
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master primary develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
@JohannesFischer
JohannesFischer / keymap.c
Created September 23, 2020 04:42
my choco60 keymap
/* Copyright 2019 Naoto Takai
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Reuse the argument of the previous command
$ echo abc def
abc def
$ echo !$
def
@JohannesFischer
JohannesFischer / vs-code-plugins.sh
Last active May 4, 2022 02:09
VS Code my installed plugins
# generated with:
# $ code --list-extensions | xargs -L 1 echo code --install-extension
code --install-extension alefragnani.Bookmarks
code --install-extension alefragnani.project-manager
code --install-extension andradei.minimal-colors
code --install-extension christian-kohler.npm-intellisense
code --install-extension dbaeumer.vscode-eslint
code --install-extension deque-systems.vscode-axe-linter
code --install-extension donjayamanne.githistory
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
context: __dirname,
mode: process.env.NODE_ENV || 'production',
entry: {
app: [
'./app/js/index.js',
'./app/styles/styles.css'