This example takes olddisk.qcow2 and resizes it into newdisk.qcow2,
extending one of the guest's partitions to fill the extra space.
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
| ## | |
| ## Dovecot SSL settings with Intermediate compatibility | |
| ## Follows Mozilla's Security/Server Side TLS guidelines | |
| ## https://wiki.mozilla.org/Security/Server_Side_TLS | |
| ## | |
| ## | |
| ## Optionial: | |
| ## Disable 3DES ciphersuites to prevent CVE-2016-2183 | |
| ## by appending ":!3DES" to the ssl_cipher_list |
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
| <?php | |
| // secure hashing of passwords using bcrypt, needs PHP 5.3+ | |
| // see http://codahale.com/how-to-safely-store-a-password/ | |
| // salt for bcrypt needs to be 22 base64 characters (but just [./0-9A-Za-z]), see http://php.net/crypt | |
| $salt = substr(strtr(base64_encode(openssl_random_pseudo_bytes(22)), '+', '.'), 0, 22); | |
| // 2y is the bcrypt algorithm selector, see http://php.net/crypt | |
| // 12 is the workload factor (around 300ms on my Core i7 machine), see http://php.net/crypt |
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
| sudo apt-get install libgnutls30:i386 libldap-2.4-2:i386 libgpg-error0:i386 libxml2:i386 libasound2-plugins:i386 libsdl2-2.0-0:i386 libfreetype6:i386 libdbus-1-3:i386 libsqlite3-0:i386 | |
| sudo dpkg --add-architecture i386 | |
| wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - | |
| sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' | |
| sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport | |
| sudo apt update && sudo apt install --install-recommends winehq-stable |
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 | |
| # Set Variables | |
| EXIMLOG=/var/log/exim4/mainlog | |
| MYLOG=/tmp/exim_status.log | |
| OFFSETFILE=/tmp/eximstatusoffset.dat | |
| EXIMSTATS=/usr/sbin/eximstats | |
| LOGTAIL=/usr/sbin/logtail | |
| ZABBIX_SENDER=/usr/bin/zabbix_sender | |
| ZABBIX_CONF=/etc/zabbix/zabbix_agentd.conf |
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
| // XPath CheatSheet | |
| // To test XPath in your Chrome Debugger: $x('/html/body') | |
| // http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
| // 0. XPath Examples. | |
| // More: http://xpath.alephzarro.com/content/cheatsheet.html | |
| '//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
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
| # | |
| # OpenLDAP schema file for Sudo | |
| # Save as /etc/openldap/schema/sudo.schema | |
| # | |
| attributetype ( 1.3.6.1.4.1.15953.9.1.1 | |
| NAME 'sudoUser' | |
| DESC 'User(s) who may run sudo' | |
| EQUALITY caseExactIA5Match | |
| SUBSTR caseExactIA5SubstringsMatch |
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
| dn: cn=sudo,cn=schema,cn=config | |
| objectClass: olcSchemaConfig | |
| cn: sudo | |
| olcAttributeTypes: {0}( 1.3.6.1.4.1.15953.9.1.1 NAME 'sudoUser' DESC 'User(s | |
| ) who may run sudo' EQUALITY caseExactIA5Match SUBSTR caseExactIA5Substrin | |
| gsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) | |
| olcAttributeTypes: {1}( 1.3.6.1.4.1.15953.9.1.2 NAME 'sudoHost' DESC 'Host(s | |
| ) who may run sudo' EQUALITY caseExactIA5Match SUBSTR caseExactIA5Substring | |
| sMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) | |
| olcAttributeTypes: {2}( 1.3.6.1.4.1.15953.9.1.3 NAME 'sudoCommand' DESC 'Com |
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
| # basic pfctl control | |
| # == | |
| # Related: http://www.OpenBSD.org | |
| # Last update: Tue Dec 28, 2004 | |
| # == | |
| # Note: | |
| # this document is only provided as a basic overview | |
| # for some common pfctl commands and is by no means | |
| # a replacement for the pfctl and pf manual pages. |
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 | |
| # Set defaults if not provided by environment | |
| CHECK_DELAY=${CHECK_DELAY:-5} | |
| CHECK_IP=${CHECK_IP:-8.8.8.8} | |
| PRIMARY_IF=${PRIMARY_IF:-eth0} | |
| PRIMARY_GW=${PRIMARY_GW:-1.2.3.4} | |
| BACKUP_IF=${BACKUP_IF:-eth1} | |
| BACKUP_GW=${BACKUP_GW:-2.3.4.5} |
NewerOlder