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 -e | |
| action=$1 | |
| argument=$2 | |
| IPS="1.1.1.1/24 2.2.2.2/24" | |
| case "$action" in | |
| listips) | |
| #for i in $IPS; do |
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/sh | |
| # VLANID is 10 | 0xa | |
| # VLANID is 20 | 0x14 | |
| # VLANID is 3342 | 0x0d0e | |
| # VLANID is 3340 | 0x0d0c | |
| # https://www.binaryhexconverter.com/hex-to-binary-converter | |
| # https://www.tcpdump.org/manpages/pcap-filter.7.html | |
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
| bgp_ip=127.0.0.1 ip=0.0.0.0/0 |
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
| class VSOLOLT < Oxidized::Model | |
| prompt /^([\w.@()-]+[#>]\s?)$/ | |
| comment '! ' | |
| cmd :all do |cfg| | |
| cfg.gsub! /^% Invalid input detected at '\^' marker\.$|^\s+\^$/, '' | |
| cfg.cut_both | |
| end |
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
| Q: Wifi cant connect | |
| A: Disable in Wifi Options -> Regulatory -> Enable 802.11d | |
| 2x rdp client | |
| https://kb.parallels.com/en/124103 |
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
| /interface bridge filter | |
| add action=drop chain=output comment="DROP RSTP BPDU" dst-mac-address=\ | |
| 01:80:C2:00:00:00/FF:FF:FF:FF:FF:FF out-interface=ether1 | |
| add action=drop chain=output comment="DROP RSTP BPDU" dst-mac-address=\ | |
| 01:80:C2:00:00:00/FF:FF:FF:FF:FF:FF out-interface=ether10 | |
| # no interface | |
| add action=drop chain=output comment="DROP RSTP BPDU" dst-mac-address=\ | |
| 01:80:C2:00:00:00/FF:FF:FF:FF:FF:FF out-interface=*45 |
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
| DHCP client port 68 | |
| DHCP server port 67 | |
| client > server discover broadcast | |
| client > server request unicast | |
| server > client reply ACK unicast |
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
| crontab -e | |
| */5 * * * * /sbin/iptables -D INPUT -j cP-Firewall-1-INPUT 2> /dev/null && echo "cP-Firewall-1-INPUT Removed" |
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 | |
| strace $(pidof php-fpm | xargs -n1 | xargs -I{} echo -n ' -p {}') | |
| strace $(ps -ef | grep lsphp | grep USER | cut -d ' ' -f2 | xargs -I{} echo -n ' -p {}') | |
| # chatgpt generated version | |
| # strace by user name | |
| strace -p $(pgrep -u USER -d,) |
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 | |
| # .config/lxsession/LXDE-pi/autostart | |
| @lxpanel --profile LXDE-pi | |
| @pcmanfm --desktop --profile LXDE-pi | |
| #@xscreensaver -no-splash | |
| chromium-browser --app=https://grafana.iphost.md/d/7gv6kakMz/tv?orgId=1\&refresh=1m\&kiosk --start-fullscreen | |
| chromium-browser --app=https://grafana.iphost.md/d/DzTc96zGk/tv2?orgId=1\&refresh=1m\&kiosk --start-fullscreen --window-position=1920,0 | |
| xset -display :0 -dpms |