yarn run eslint | grep -o "warning.*$" | sed -e's/ */ /g' | sort | uniq -c | sort
View group-and-count-eslint.md
View Mac pfctl Port Forwarding.md
Forward Port 80 and 443 with Mac
Mac pfctl Port Forwarding
pfctl
Port Forwarding
Forward Port 80 and 443 with Mac echo "
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443
" | sudo pfctl -ef -
View appscript.json
This file contains 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
{ | |
"timeZone": "Europe/Paris", | |
"dependencies": { | |
"enabledAdvancedServices": [{ | |
"userSymbol": "Sheets", | |
"serviceId": "sheets", | |
"version": "v4" | |
}] | |
}, | |
"webapp": { |
View opencv-windows-installing-howto.md
OpenCV on Windows
In PowerShell run:
$ pip3 install numpy
$ pip3 install matplotlib
Download OpenCV for Windows/Python here https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv I've tested 'https://download.lfd.uci.edu/pythonlibs/t4jqbe6o/opencv_python-4.1.0-cp37-cp37m-win_amd64.whl'
View fingera-bookmarklet.md
Fingera - better report bookmarklet
Create a new bookmark somewhere in your browser with the following URL:
javascript:(function(){ var last = ''; var color = 'transparent'; $('#list_table_body tr').each(function (index, el) { var actual = $(el).children(":first").text(); if (actual !== last) { color = (color === 'transparent') ? '#eee':'transparent'; } last=actual; $(el).css('background-color', color); }); })();
View electrum-tails.md
Installing Electrum-LTC LiteCoin wallet in Tails LiveCD operating system
Tested with Tails 3.8 LiveCD
(no persistent storage needed, you have to install it after every reboot) and Electrum-LTC 3.1.3.1
.
Changelog (of this document)
2018-06-27
- updated to
Tails 3.8
2018-04-20
View ramdisk-howto.md
Create RAM disk in macOS High Sierra (10.13.3), macOS Monterey (12.6.5) with ARM processor
Update 2023-04-24
Tested on macOS Monterey (12.6.5) with Apple M1 Pro chip (ARM architecture)
LIST DISKS
View go-lang-factorization-tests-multithreaded.go
This file contains 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
package main | |
import ( | |
"fmt" | |
"math/big" | |
"sync" | |
) | |
func runInThread(wg *sync.WaitGroup, startFrom int64, numOfIterations int64) { | |
defer wg.Done() |
View color-difference-calulation.scss
This file contains 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
// Use https://www.sassmeister.com/ to try it out | |
$have: #dfe2e5; | |
$need: #e1e4e6; | |
//$need: #d8dbe1; | |
//$out: saturate(darken($have, 2.15), 2.7); | |
$out: desaturate(lighten($have, 0.58), 1.25); |
NewerOlder