#Country ban with UFW#
Grab your different country ip addresses and save as Linux IPTables
http://www.ip2location.com/free/visitor-blocker
##Add country## Run the following command
| # Arch Linux installation procedure on a Lenovo ThinkPad X200s | |
| # BIOS boot (no UEFI), SSD + LVM + LUKS + TRIM + discards | |
| # Randomize (or zero) drive contents | |
| dd if=/dev/urandom of=/dev/sda | |
| # Create GPT and partitions | |
| # Use gdisk to ensure proper partition alignment | |
| gdisk /dev/sda | |
| # 100MB boot partition on /dev/sda1 type 8300 |
| altscreen on | |
| hardstatus on | |
| hardstatus alwayslastline | |
| startup_message off | |
| termcapinfo xterm ti@:te@ | |
| hardstatus string " %{= kC}%-w%{.rW}%n %t%{-}%+w %=%{..C} %H %{..C} %m/%d " | |
| defscrollback 1000 | |
| # Bind C-a v to copy buffer to Mac OS X clipboard. | |
| bind v eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'" |
#Country ban with UFW#
Grab your different country ip addresses and save as Linux IPTables
http://www.ip2location.com/free/visitor-blocker
##Add country## Run the following command
| #!/bin/bash | |
| # proxvm | |
| # Output in specifed format (default csv) all virtual machines on proxmox 4+ | |
| SERVER=localhost | |
| USERNAME=apiread@pve | |
| PASSWORD=123456 | |
| FORMAT=csv | |
| while [[ $# > 0 ]]; do | |
| key="$1" |
| .vagrant |
| <?php | |
| /* | |
| * This file is part of the Symfony package. | |
| * | |
| * (c) Fabien Potencier <fabien@symfony.com> | |
| * | |
| * For the full copyright and license information, please view the LICENSE | |
| * file that was distributed with this source code. | |
| */ |
| Install: | |
| ---------- | |
| * Activate Hetzner Rescue System (Debian) | |
| * Connect to Hetzner Rescue System using SSH and live boot RancherOS | |
| (thanks goes to William Fleurant for showing how this can be done: https://github.com/wfleurant/boot-rancheros-hetzner/) | |
| * apt-get update | |
| * apt-get install kexec-tools aria2 |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
| ############################################# | |
| ### Proxmox V & Docker-CE + Portainer # | |
| ############################################# | |
| ## Rescue System | |
| # Erase other disks | |
| dd if=/dev/zero of=/dev/sda bs=1M count=100 | |
| dd if=/dev/zero of=/dev/sdb bs=1M count=100 | |
| # You can install debian 9 via the guide: |
| <?php | |
| namespace Acme\MyBundle\Service; | |
| use Symfony\Component\HttpFoundation\File\File; | |
| use Imagine\Image\ImagineInterface; | |
| use Imagine\Image\BoxInterface; | |
| use Imagine\Image\Point; | |
| use Imagine\Image\Box; | |