seq 1 254 | xargs -P255 -I{} bash -c 'ip="192.168.1.{}"; ping -c 1 -W 1 $ip >/dev/null 2>&1 && { nc -z -w 1 $ip 22 2>/dev/null && echo "$ip: Port 22 is open" || echo "$ip: Port 22 is closed"; }' | sort -n -t . -k 4,4
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
// enable drive api service | |
// manually set a time-driven trigger(the alarm icon) that runs monthly after 25th evening, | |
function deIndent(str) { | |
return str.replace(/^[ \t]+/gm, ""); | |
} | |
function dateWithOrdinalSuffix(date) { | |
const day = date.getDate(); | |
let suffix = "th"; |
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
#!/usr/bin/env bash | |
# Util to set up displays using displayplacer: https://github.com/jakehilborn/displayplacer | |
# to get the display id run `displayplacer list | grep -A2 Serial` | |
DISPLAY_1=s4251086178 | |
DISPLAY_2=s261348 | |
if [ "$#" -ne 1 ]; then |
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
network: | |
version: 2 | |
ethernets: | |
enp9s0: | |
dhcp4: false | |
wifis: | |
wlan0: | |
access-points: | |
"wifi": | |
password: "pass" |
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
# https://macosicons.com | |
https://parsefiles.back4app.com/JPaQcFfEEQ1ePBxbf6wvzkPMEqKYHhPYv8boI1Rc/6ba4356c379a0e212b2af5a8ef1a57ef_YouTube%20Music.icns |
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
ACTION=="add", SUBSYSTEM=="usb", ATTR{idProduct}=="c52b", ATTR{idVendor}=="046d", ATTR{power/wakeup}="disabled" |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 5.13.5 Kernel Configuration | |
# | |
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.1.0" | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=110100 | |
CONFIG_CLANG_VERSION=0 | |
CONFIG_AS_IS_GNU=y | |
CONFIG_AS_VERSION=23601 |
install pipdeptree
pip install pipdeptree
pipdeptree -f 2>/dev/null | grep -v '^ ' | tee requirements.txt
-
Generate ssh key pairs for accounts and add them to GitHub accounts.
-
Edit/Create ssh config file (
~/.ssh/config
):# Default github account: user01 Host github.com HostName github.com
NewerOlder