Skip to content

Instantly share code, notes, and snippets.

tony_leung hklkf

Block or report user

Report or block hklkf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hklkf
hklkf / make-chr.sh
Created Feb 25, 2018 — forked from stroebs/make-chr.sh
Install Mikrotik CHR on a Digital Ocean droplet
View make-chr.sh
wget http://download2.mikrotik.com/routeros/6.40.5/chr-6.40.5.img.zip -O chr.img.zip && \
gunzip -c chr.img.zip > chr.img && \
apt-get update && \
apt install -y qemu-utils pv && \
qemu-img convert chr.img -O qcow2 chr.qcow2 && \
qemu-img resize chr.qcow2 `fdisk /dev/vda -l | head -n 1 | cut -d',' -f 2 | cut -d' ' -f 2` && \
modprobe nbd && \
qemu-nbd -c /dev/nbd0 chr.qcow2 && \
echo "Give some time for qemu-nbd to be ready" && \
sleep 2 && \
@hklkf
hklkf / install-ispconfig3-centos.sh
Created May 12, 2019 — forked from jniltinho/install-ispconfig3-centos.sh
Install ISPConfig3 CentOS 7 64Bits
View install-ispconfig3-centos.sh
#!/bin/bash
## Install ISPConfig 3.x on CentOS 7 64Bits
## http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-centos.html
## https://www.howtoforge.com/tutorial/perfect-server-centos-7-2-apache-mysql-php-pureftpd-postfix-dovecot-and-ispconfig/2/
## http://nareshv.blogspot.com.br/2014/02/configure-hhvm-with-apache-fastcgi-on.html
## ISPConfig3 3.x + Apache2 + CentOS 7 64Bits
## VM HD 50GB, swap 2GB, / 19GB, /var/www all
## Filesystem ext4
## Run as root
You can’t perform that action at this time.