A Pen by Michał Kardyś on CodePen.
I hereby claim:
- I am kardysm on github.
- I am draku (https://keybase.io/draku) on keybase.
- I have a public key ASCE0RDi4bHPWTITa8Xc698o1XlXb8luKrObHHkMKqxDUAo
To claim this, I am signing this object:
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
const listDeepEventListeners = (elem) => { | |
listEventListeners(elem); | |
Array.from(elem.children).map(function(item){ | |
listEventListeners(item) | |
listDeepEventListeners(item); | |
}) | |
}; | |
const listEventListeners = (elem) => { | |
const listeners = getEventListeners(elem) |
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
sudo nano /etc/dhcp/dhclient.conf | |
uncomment and edit: | |
prepend domain-name-servers 1.1.1.1, 9.9.9.9; #cloudflare and IBM quad9 | |
sudo service network-manager restart |
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
sudo nano /etc/gai.conf | |
uncomment: | |
precedence ::ffff:0:0/96 100 | |
sudo reboot |
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
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
#!/bin/bash | |
TMP_PATH="/tmp/rotating-vids" | |
# Provide path to source directory | |
ARG_DIRECTORY="${1:-.}" | |
# Transposition settings, default 90 deg clockwise | |
TRANSPOSE="${2:-1}" | |
DIR=$(dirname $ARG_DIRECTORY) |
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
# source: https://askubuntu.com/a/1037944 | |
# Change to click (so it does not interfere with copyQ | |
gsettings set org.gnome.desktop.wm.preferences focus-mode 'click' | |
# get possible values | |
gsettings range org.gnome.desktop.wm.preferences focus-mode | |
# reset focus follows mouse setting | |
gsettings reset org.gnome.desktop.wm.preferences focus-mode |
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
#!/bin/sh | |
# Michał Kardyś (@kardysm), 2021 | |
# script accepts: | |
# arg: $1 - proxy domain to external | |
# env: N8N_USER - username for basic auth | |
# env: N8N_PASSWORD - password for basic auth | |
# | |
# prerequisites: | |
# - DNS domain pointed correctly - for proxy address |
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
#!/bin/sh | |
# webcam will be preview quality, not of actual camera capabilities | |
# prerequisites and source: https://www.crackedthecode.co/how-to-use-your-dslr-as-a-webcam-in-linux/ | |
# alternative: https://hanspinckaers.com/using-a-sony-alpha-camera-as-a-webcam-in-ubuntu | |
# IF PREREQUISITES ARE MET AND SCRIPT IS FAILING, RESTART MIGHT HELP | |
# restart v4l2loopback kernel module | |
sudo modprobe -r dslr-webcam |
OlderNewer