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 |
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 | |
| touch /var/cpanel/disable_whm_terminal_ui | |
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
| Go to WHM > softaculous | |
| On softaculous page choose Settings > General and search for Disable End User Update E-Mails, then checkbox this option and save. |
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 | |
| # | |
| # Source from https://hwraid.le-vert.net/wiki/DebianPackages | |
| wget -O - https://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | sudo apt-key add - | |
| echo 'deb http://hwraid.le-vert.net/debian stretch main' > /etc/apt/sources.list.d/hwraid.list | |
| apt update | |
| apt install hpacucli megaraid |
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
| # birdc | |
| # show prefixes with community 60602:1000 | |
| show route where bgp_community ~ [ (60602,1000) ] all | |
| show route where bgp_path.last ~ [31252] all | |
| # BGP masks are patterns used for BGP path matching (using path ~ [= 2 3 5 * =] syntax). The masks resemble wildcard patterns as used by UNIX shells. Autonomous system numbers match themselves, * matches any (even empty) sequence of arbitrary AS numbers and ? matches one arbitrary AS number. For example, if bgp_path is 4 3 2 1, then: bgp_path ~ [= * 4 3 * =] is true, but bgp_path ~ [= * 4 5 * =] is false. BGP mask expressions can also contain integer expressions enclosed in parenthesis and integer variables, for example [= * 4 (1+2) a =]. You can also use ranges (e.g. [= * 3..5 2 100..200 * =]) and sets (e.g. [= 1 2 [3, 5, 7] * =]). | |
| show route filter { if bgp_path ~ [ 31252 ] then accept; reject; } |
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 | |
| # | |
| # irq2smp -- distribute hardware interrupts from Ethernet devices by CPU cores. | |
| # | |
| # Should be called from /etc/rc.local. | |
| # | |
| ncpus=`grep -ciw ^processor /proc/cpuinfo` | |
| netmask="(eth|wan)" | |
| test "$ncpus" -gt 1 || exit 1 |
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
| # /templates/orderforms/standard_cart/configureproduct.tpl | |
| $("#inputNs1prefix").val('ns1'); | |
| $("#inputNs2prefix").val('ns2'); | |
| $("#inputNs1prefix").parent().parent().parent().css("display", "none"); |
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
| # Hello, when you will open website from which you will receive multi line http header, for example Upgrade: h2, h2c, | |
| # safari will return error. | |
| # fix: | |
| Header unset Upgrade |
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 | |
| LVM=vg_solus1-kvm533_img | |
| DISTRO=debian-8 | |
| DATE=$(date +%Y-%m-%d) | |
| virt-sysprep -a /dev/mapper/$LVM | |
| virt-sparsify -v /dev/mapper/$LVM --convert qcow2 --compress /home/solusvm/kvm/template/linux-$DISTRO-$DATE-x86_64-min-gen2-v1.gz |