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
    
  
  
    
  | #!/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
    
  
  
    
  | # 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} | 
  
    
      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
    
  
  
    
  | --- | |
| - hosts: | |
| - all | |
| become: true | |
| tasks: | |
| - name: Update apt cache | |
| apt: update_cache=yes | |
| - name: Upgrade packages | |
| apt: upgrade=dist | 
  
    
      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
    
  
  
    
  | #! /usr/bin/env python | |
| import secure | |
| import pexpect | |
| # the file containing the list of servers to log into | |
| input_file = "script_list" | |
| # The login creds | |
| user = secure.USER | 
  
    
      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 | |
| service elasticsearch stop | |
| service graylog2-server stop | |
| killall -9 java | |
| service apache2 stop | |
| rm -Rf /opt/elasticsearch/data/* | |
| # IF YOU HAVE AUTH USE THIS LINE - mongo graylog2 --eval "db.auth('graylog2', 'PASSWORD'); db.message_counts.remove();" | |
| mongo graylog2 --eval "db.message_counts.remove();" | |
| service elasticsearch start | |
| service graylog2-server start | 
NewerOlder