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 bash | |
| # SOURCE: https://github.com/microsoft/WSL/issues/4619#issuecomment-596990676 | |
| # On Windows host run: | |
| # adb -a -P 5037 nodaemon server | |
| ip_addr=$(cat /etc/resolv.conf | tail -n1 | cut -d " " -f 2) | |
| adb kill-server | |
| export ADB_SERVER_SOCKET=tcp:${ip_addr} |
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
| # scroll buffer | |
| termcapinfo * ti@:te@ |
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
| # | |
| # /etc/sysctl.conf - Configuration file for setting system variables | |
| # See /etc/sysctl.d/ for additional system variables. | |
| # See sysctl.conf (5) for information. | |
| # | |
| #kernel.domainname = example.com | |
| # Uncomment the following to stop low-level messages on console | |
| #kernel.printk = 3 4 1 3 |
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
| # ALIAS | |
| alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation | |
| alias ll='ls -FGlAhp' # Preferred 'ls' implementation | |
| alias ..='cd ../' # Go back 1 directory level | |
| alias ...='cd ../../' # Go back 2 directory levels | |
| alias diff='diff -W $(( $(tput cols) - 2 ))' # Full Terminal Width in Side-by-Side Mode | |
| alias ip="ifconfig | grep 'inet' | grep -v '127.0.0.1' | awk '{print \$2;exit}'" # Private IP address | |
| alias ex-ip='curl icanhazip.com' # Your public IP address | |
| alias open-ports='sudo lsof -i | grep LISTEN' # All listening connections | |
| alias show-blocked='sudo ipfw list' # All ipfw rules in |
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
| #IfWinActive ahk_exe disco.exe | |
| RButton:: | |
| Click, | |
| Click, down | |
| KeyWait, RButton | |
| Click, up | |
| return | |
| MButton::ESC |
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 | |
| # server connection information | |
| URL="https://jss.talkingmoose.net:8443" | |
| userName="JSSAPI-Editor" | |
| password="password" | |
| # XML data to upload | |
| THExml="<activation_code> | |
| <organization_name>Talking Moose Industries</organization_name> |
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
| import random | |
| from operator import itemgetter | |
| import timeit | |
| def random_point(): | |
| return (random.randint(0, 100), random.randint(0, 100), random.randint(0, 100)) | |
| points = None # Global because of timeit scoping | |
| def test_lambda(): |
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
| service pve-cluster restart && service pvedaemon restart && service pvestatd restart && service pveproxy restart |
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 bash | |
| # SOURCES: | |
| # https://www.brainbytez.nl/tutorials/qnap-nas-fix-the-seagate-chirp-sound/ | |
| # Disable advanced power management (APM) for noisy Seagate drives | |
| # qcli_storage | |
| hdparm -B 255 /dev/sda | |
| hdparm -B 255 /dev/sdb | |
| hdparm -B 255 /dev/sdc |
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 | |
| CYAN="$(tput bold; tput setaf 6)" | |
| RESET="$(tput sgr0)" | |
| clear | |
| if command -v python3 > /dev/null 2>&1; then | |
| if [ $(python3 -c "print('ye')") = "ye" ]; then | |
| clear |