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
| ## some useful aliases | |
| alias ls "ls -h" | |
| alias dir ls | |
| alias less more | |
| alias zless zmore | |
| alias bzless bzmore | |
| alias mirror "mirror -v" | |
| alias sync "mirror -R -v -n" | |
| alias reconnect "close; cache flush; cd ." | |
| alias edit "eval -f \"get $0 -o ~/.lftp/edit.tmp.$$ && shell \\\"cp -p ~/.lftp/edit.tmp.$$ ~/.lftp/edit.tmp.$$.orig && $EDITOR ~/.lftp/edit.tmp.$$ && test ~/.lftp/edit.tmp.$$ -nt ~/.lftp/edit.tmp.$$.orig\\\" && put ~/.lftp/edit.tmp.$$ -o $0; shell rm -f ~/.lftp/edit.tmp.$$*\"" |
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
| ################################################## | |
| # Kill long queries # | |
| # This shell script will kill queries that have # | |
| # passed the $MAX execution time. # | |
| # Julian Capilla-krumbak # | |
| # [email protected] # | |
| # 21-05-2014 # | |
| ################################################## | |
| #!/bin/bash |
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
| To check if OpenGL OMTC is enabled, go to about:support and under the "Graphics" section look for "GPU Accelerated Windows". If it reports "0/1 Basic (OMTC)" (possibly 0/2), OpenGL OMTC is disabled; if it reports "1/1 OpenGL (OMTC)" (possibly 1/2 or 2/2) it is enabled. | |
| To enable OpenGL OMTC go to about:config and set: | |
| layers.acceleration.force-enabled true | |
| layers.offmainthreadcomposition.enabled true (default) | |
| Restart Firefox for changes to take effect. |
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 | |
| # reference https://serverfault.com/questions/544651/vlan-tags-not-shown-in-packet-capture-linux-via-tcpdump | |
| tcpdump -i eth0 -Uw - arp | tcpdump -en -r - vlan 804 |
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
| # this may be possible mistakes | |
| WS-C2960-24TT-L | |
| WS-C2960-24LC | |
| WS-C2960j-mmnnn-o | |
| j = is gigabit or not | |
| G - gigabit ethernets |
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 | |
| raid=cciss | |
| maxdisks=7 | |
| for i in {0..7}; do | |
| temp=$(smartctl -a -d $raid,$i /dev/sda | grep "Current Drive Temperature:" | awk -F: '{ print $2}') | |
| [ -z "$temp" ] && temp=$(smartctl -a -d $raid,$i /dev/sda | grep "Temperature_Celsius" | grep -oE "[0-9]+" | xargs | cut -d ' ' -f7); | |
| [ -n "$temp" ] && echo slot $i: $temp; | |
| done |
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
| set ftp:list-options '-a' | |
| set ftp:ssl-allow false |
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 | |
| DOMAIN=solusvm | |
| /root/certbot-auto renew | |
| cat /etc/letsencrypt/live/$DOMAIN/{privkey,cert}.pem > /usr/local/solusvm/ssl/cert.pem | |
| /etc/init.d/solusvm 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
| #!/bin/sh | |
| # | |
| # Read-only Root-FS for Raspian | |
| # | |
| # Modified 2016 by Stefan Bonfert to make it compatible with Raspbian | |
| # Jessie (vanilla). | |
| # | |
| # Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with | |
| # overlayfs integrated in Linux Kernel >= 3.18. | |
| # |
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
| # cat /etc/network/interfaces | |
| auto vmbr0 | |
| iface vmbr0 inet manual | |
| bridge-ports eno1 | |
| bridge-stp off | |
| bridge-fd 0 | |
| bridge_vlan_aware yes | |
| bridge_vids 610 # not supported multiple vlans, only range 2-4094 | |
| post-up bridge vlan add dev eno1 vid 610; bridge vlan add dev eno1 vid 802 |