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
package test | |
import kotlinx.coroutines.experimental.async | |
import kotlinx.coroutines.experimental.launch | |
import kotlinx.coroutines.experimental.runBlocking | |
fun main(args: Array<String>) = runBlocking { | |
loopingSerially() | |
loopingConcurrently() |
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
yum install dnsmasq | |
groupadd -r dnsmasq | |
useradd -r -g dnsmasq dnsmasq | |
CUSTOM_RESOLV_CONF=/etc/resolv.conf.dhclient | |
DHCLIENT_HOOKS_FILE=/etc/dhcp/dhclient-enter-hooks | |
cat > /etc/dnsmasq.conf <<EOF | |
server=/<internal domain name>/<internal dns server> | |
listen-address=127.0.0.1 |
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
# http://sysadminsjourney.com/content/2008/07/07/dnsmasq-dhclient/ | |
# man dhclient-script | |
################# | |
### amazon linux | |
################# | |
yum install dnsmasq | |
groupadd -r dnsmasq | |
useradd -r -g dnsmasq dnsmasq |