start new:
tmux
start new with session name:
tmux new -s myname
| import requests, random | |
| from termcolor import colored | |
| from multiprocessing.dummy import Pool as ThreadPool | |
| def get(proxy): | |
| #print('Trying %s' % proxy) | |
| try: | |
| proxies = { | |
| 'http': 'http://%s' % (proxy) , | |
| 'https': 'http://%s' % (proxy), |
| #!/bin/bash | |
| DEVICE_ID="$1" | |
| MNT_DIR="$2" | |
| if [[ "$DEVICE_ID" == "" || "$MNT_DIR" == "" ]]; then echo "Usage: ./gce-new-disk.sh DEVICE_ID MNT_DIR"; exit 1; fi | |
| sudo mkfs.ext4 -m 0 -F -E lazy_itable_init=0,lazy_journal_init=0,discard /dev/$DEVICE_ID | |
| sudo mkdir -p $MNT_DIR | |
| sudo mount -o discard,defaults /dev/$DEVICE_ID $MNT_DIR |
| #!/bin/bash | |
| # Configuration for the script | |
| POSTFIX_CONFIG=/etc/postfix/main.cf | |
| POSTFIX_SASL=/etc/postfix/sasl_passwd | |
| function confirm () { | |
| read -r -p "${1:-Are you sure? [Y/n]} " response | |
| if [[ $response == "" || $response == "y" || $response == "Y" ]]; then | |
| echo 0; |
Cloud-Init is the defacto multi-distribution package that handles early initialization of a virtual machine instance. Using Cloud-Init, one can configure network
ifdef::wiki[] :pve-toplevel: endif::wiki[]
http://cloudinit.readthedocs.io[Cloud-Init] is the defacto multi-distribution package that handles early initialization of a virtual machine instance. Using Cloud-Init, configuration of network
| <table width="276" cellspacing="0" cellpadding="0" border="0"> <tr> <td style="text-align:left;padding-bottom:10px"><a style="display:inline-block" href="https://www.blackcreeper.com"><img style="border:none" width="200" src="https://s1g.s3.amazonaws.com/46ae128cfd420103e7481d2ac40d8882.png"></a></td> </tr> <tr> <td style="border-top:solid #000000 2px" height="12"></td> </tr> <tr> <td style="vertical-align: top; text-align:left;color:#000000;font-size:10px;font-family:helvetica, arial;; text-align:left"> <span><b><span style="color:#000000;font-size:12px;font-family:helvetica, arial">Nicolas Hug</span></b><br> <span style="color:#000000;font-size:10px;font-family:helvetica, arial">Manager</span></span> <br><br> <table cellspacing="0" cellpadding="0" border="0" width="100%" style="margin:10px 0"><tr><td width="50%" style="vertical-align:top;padding-right:10px;font:10px helvetica, arial"> <table cellspacing="0" cellpadding="0" border="0" style="margin:0 5px 5px 0"><tr><td style="padding-right:5px"><img width="2 |
| ip link add link enp2s0 name enp2s0.4000 type vlan id 4000 | |
| ip link set enp2s0.4000 mtu 1400 | |
| ip link set dev enp2s0.4000 up | |
| ip addr add 192.168.100.1/24 brd 192.168.100.255 dev enp2s0.4000 | |
| auto enp2s0.4000 | |
| iface enp2s0.4000 inet static | |
| address 192.168.100.1 | |
| netmask 255.255.255.0 |
| wget https://github.com/EnterpriseVE/eve4pve-autosnap/releases/download/0.1.8/eve4pve-autosnap_0.1.8_all.deb && \ | |
| dpkg -i eve4pve-autosnap_0.1.8_all.deb && \ | |
| eve4pve-autosnap create --vmid=all --label=weekly --keep=3 |