- alpine 3.17.1, 3.18, 3.19 and edge x86-64
- multiple linux kernels worked 6.1.8-lts w/zfs and 6.6.8-lts
- edge, testing apk repos enabled
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S bash -c 'nix-shell --pure $0 -A env' | |
| # Usage: | |
| # 1. run directly to enter bash (inside venv): `./venv-py37.nix` | |
| # 2. build a standalone executable: `nix bundle -f ./venv-py37.nix` #this not works yet since it cause nested `unshare -U` call | |
| # 3. run bash with extra arguments: `nix run -f ./venv-py37.nix '' -- -c 'python --version'` | |
| # More: | |
| # 1. commit id of nixpkgs can be found here: https://lazamar.co.uk/nix-versions/?channel=nixpkgs-unstable&package=python3 | |
| let |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| HCIATTACH=/usr/bin/hciattach | |
| if grep -q "Pi 4" /proc/device-tree/model; then | |
| BDADDR= | |
| else | |
| SERIAL=`cat /proc/device-tree/serial-number | cut -c9-` | |
| B1=`echo $SERIAL | cut -c3-4` | |
| B2=`echo $SERIAL | cut -c5-6` | |
| B3=`echo $SERIAL | cut -c7-8` |
Docker on BTRFS is very buggy and can result in a fully-unusable system, in that it will completely butcher the underlying BTRFS filesystem in such a way that it uses far more disk space than it needs and can get into a state where it cannot even delete any image, requiring one to take drastic actions up to and including reformatting the entire affected BTRFS root file system.
According to the official Docker documentation:
btrfs requires a dedicated block storage device such as a physical disk. This block device must be formatted for Btrfs and mounted into /var/lib/docker/.
In my experience, you will still run into issues even if you use a dedicated partition. No, it seems it requires a standalone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options | |
| This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full. | |
| usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}… | |
| Getting help: | |
| -h — print basic options | |
| -h long — print more options | |
| -h full — print all options (including all format and codec specific options, very long) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| cd /tmp | |
| wget http://download.springsource.com/release/ECLIPSE/neon/R/eclipse-jee-neon-R-linux-gtk-x86_64.tar.gz | |
| # eclipse EE | |
| # http://download.springsource.com/release/ECLIPSE/neon/3/eclipse-jee-neon-3-linux-gtk-x86_64.tar.gz | |
| tar -zxf eclipse-jee-neon-R-linux-gtk-x86_64.tar.gz -C /opt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # GIT heart FZF | |
| # ------------- | |
| is_in_git_repo() { | |
| git rev-parse HEAD > /dev/null 2>&1 | |
| } | |
| fzf-down() { | |
| fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // in Sublime Text, Preferences -> Browse Packages, find HTML-CSS-JS Prettify/scripts/node_modules/js-beautify/js/lib/beautify.js | |
| // find the last line of the 'beautify' function, and place the next lines just before 'return sweet_code'; | |
| // https://gist.github.com/loopmode/d091bce3b76efaf15d63 | |
| // es7 decorators | |
| sweet_code = sweet_code.replace(/@\n/g, '@'); | |
| sweet_code = sweet_code.replace(/\)@\s/g, ')\n@'); | |
| sweet_code = sweet_code.replace(/ @ /g, ' @'); | |
| sweet_code = sweet_code.replace(/@\s/g, '\n@'); | |
| sweet_code = sweet_code.replace(/\];@/g, '];\n@'); |