Skip to content

Instantly share code, notes, and snippets.

Avatar

Johannes Fischer JohannesFischer

View GitHub Profile
View movtogif.sh
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 Jun 22, 2021
Today I learned
View til.md

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

View keymap.c
/* 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 Feb 10, 2021
Yushakobo quick7 keymap
View keymap.c
/* 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 Nov 10, 2020
KBD6X HHKB Settings
View README.md

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 Nov 5, 2020
Git Hook - prepare commit msg
View prepare-commit-msg.sh
#!/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##*/}"
View keymap.c
/* 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
View gist:7f3781115b0051b6541b1ad17cff02d5
Reuse the argument of the previous command
$ echo abc def
abc def
$ echo !$
def
@JohannesFischer
JohannesFischer / vs-code-plugins.sh
Last active May 12, 2021
VS Code my installed plugins
View vs-code-plugins.sh
# 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 donjayamanne.githistory
code --install-extension eamodio.gitlens
View webpack.config.js
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'