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/bash | |
| # Dependencies: tesseract-ocr imagemagick scrot gnome-screenshot wl-clipboard | |
| select tesseract_lang in eng rus equ ;do break;done | |
| # Quick language menu, add more if you need other languages. | |
| SCR_IMG=`mktemp` | |
| trap "rm $SCR_IMG*" EXIT |
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
| # Clone fprintd source code | |
| git clone https://gitlab.freedesktop.org/libfprint/libfprint.git | |
| # Checkout to our good guy who made a patch for sensor | |
| # 1c7a:0587 LighTuning Technology Inc. ETU905A88-E | |
| git fetch "https://gitlab.freedesktop.org/thameruddin/libfprint.git" 'egismoc-0587' | |
| git checkout -b 'libfprint-egismoc-0587' FETCH_HEAD | |
| # Try building the code | |
| cd libfprint |
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/bash | |
| set -e | |
| # Workaround for https://github.com/kubernetes-sigs/kind/issues/2045 | |
| all_nodes=$(kind get nodes --name "${CLUSTER_NAME}" | tr "\n" " ") | |
| declare -A nodes_table | |
| ip_template="{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}" | |
| echo "Saving original IPs from nodes" |
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/bash | |
| # Create new chain | |
| sudo iptables -t nat -N REDSOCKS | |
| # Ignore LANs and some other reserved addresses. | |
| sudo iptables -t nat -A REDSOCKS -d 0.0.0.0/8 -j RETURN | |
| sudo iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN | |
| sudo iptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURN | |
| sudo iptables -t nat -A REDSOCKS -d 169.254.0.0/16 -j RETURN | |
| sudo iptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURN |
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
| (lldb) settings show target.process.thread.step-avoid-regexp | |
| target.process.thread.step-avoid-regexp (regex) = ^std:: | |
| (lldb) settings set target.process.thread.step-avoid-regexp "" | |
| http://stackoverflow.com/questions/19413181/step-into-stl-sources-in-xcode-5 |