Given two collections, dest and src:
def dest = [1]
def src = [2,3] as Set
dest += src
| DEVICE=eth1 | |
| HWADDR=08:00:27:6a:63:6c | |
| TYPE=Ethernet | |
| BOOTPROTO=static | |
| IPADDR=192.168.56.10 | |
| PREFIX=24 | |
| DNS1=192.168.1.1 | |
| ONBOOT=yes |
| tail -n 500 *.log|egrep " ERROR | WARNING |^==>"|grep -v DEBUG |
| /* Located in /tmp/groovy/mine */ | |
| package mine | |
| class Person { | |
| int age | |
| String name | |
| } |
| neutron subnet-update private_subnet --dns_nameservers list=true 192.168.1.1 192.168.1.2 |
| def m = 'one.two.three' =~ /(.*)\.(.*)/ | |
| assert(m) | |
| assert(m[0][1] == 'one.two') | |
| assert(m[0][2] == 'three') |
| nc -l 8801 | od -A x -t x1 |
| @Grapes( | |
| @Grab(group='io.netty', module='netty-codec', version='4.0.17.Final') | |
| ) | |
| import io.netty.buffer.PooledByteBufAllocator | |
| def alloc = new PooledByteBufAllocator() | |
| def buf = alloc.buffer() | |
| assert(buf.refCnt() == 1) |
| @Grapes( | |
| @Grab(group='io.netty', module='netty-codec', version='4.0.17.Final') | |
| ) | |
| import io.netty.buffer.ByteBuf | |
| import io.netty.buffer.Unpooled | |
| import io.netty.bootstrap.ServerBootstrap | |
| import io.netty.bootstrap.Bootstrap | |
| import io.netty.channel.nio.NioEventLoopGroup | |
| import io.netty.channel.socket.nio.NioServerSocketChannel | |
| import io.netty.channel.socket.nio.NioSocketChannel |
| msm jargroup create bukkit https://dl.bukkit.org/latest-rb/craftbukkit.jar |