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
| body package_method packer { | |
| package_changes => "bulk"; | |
| package_list_command => "/usr/bin/pacman -Q"; | |
| package_list_name_regex => "([^\s]+).*"; | |
| package_list_version_regex => "[^\s]+ ([^\s\n\r]+)"; | |
| package_name_convention => "$(name)"; | |
| package_installed_regex => ".*"; | |
| package_name_regex => "([^\s]+).*"; |
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
| bundle edit_line sshd_config { | |
| replace_patterns: | |
| "^.*Port (?!22).*$" replace_with => content("Port 22"); | |
| "^.*Protocol (?!2).*$" replace_with => content("Protocol 2"); | |
| "^.*ServerKeyBits (?!2048).*$" replace_with => content("ServerKeyBits 2048"); | |
| "^.*PermitRootLogin (?!without-password).*$" replace_with => content("PermitRootLogin without-password"); | |
| "^.*PubkeyAuthentication (?!yes).*$" replace_with => content("PubkeyAuthentication yes"); | |
| "^.*PermitEmptyPasswords (?!no).*$" replace_with => content("PermitEmptyPasswords no"); | |
| "^.*TCPKeepAlive (?!yes).*$" replace_with => content("TCPKeepAlive yes"); |
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
| #!/bin/bash | |
| dir=$(dirname "$0") | |
| . "$dir/vif-common.sh" | |
| netdev=${netdev:-eth1} | |
| vlan=${vlan:-0} | |
| vlandev=$netdev.$vlan | |
| retval=$( ip link show | grep $vlandev | wc -l ) |
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
| [error] Server.scala:55: type mismatch; | |
| [error] found : io.netty.channel.ChannelOption[java.lang.Boolean] | |
| [error] required: io.netty.channel.ChannelOption[Any] | |
| [error] Note: java.lang.Boolean <: Any, but Java-defined class ChannelOption is invariant in type T.[error] You may wish to investigate a wildcard type such as `_ <: Any`. (SLS 3.2.10) | |
| [error] .childOption(ChannelOption.TCP_NODELAY, true) | |
| [error] |
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
| [error] AuthenticationHandler.scala:54: overriding method inboundBufferUpdated in class ChannelInboundMessageHandlerAdapter of type (x$1: io.netty.channel.ChannelHandlerContext)Unit; | |
| [error] method inboundBufferUpdated cannot override final member | |
| [error] def inboundBufferUpdated(ctx: ChannelHandlerContext) { | |
| [error] ^ | |
| [error] one error found |
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
| Oct 14, 2012 4:01:44 PM io.netty.channel.socket.nio.NioEventLoop | |
| WARNING: Unexpected exception in the selector loop. | |
| java.util.ConcurrentModificationException | |
| at java.util.HashMap$HashIterator.nextEntry(Unknown Source) | |
| at java.util.HashMap$KeyIterator.next(Unknown Source) | |
| at io.netty.channel.socket.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:268) | |
| at io.netty.channel.socket.nio.NioEventLoop.run(NioEventLoop.java:211) | |
| at io.netty.channel.SingleThreadEventExecutor$1.run(SingleThreadEventExecutor.java:80) | |
| at java.lang.Thread.run(Unknown Source) |
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
| def toLong(buf: Array[byte], offset: Int, length: Int) = { | |
| var ret = 0L | |
| var i = offset | |
| while (i < offset + length) { | |
| ret = ((ret << 8) & 0xffffffff) + (buf(i) & 0xff) | |
| i += 1 | |
| } | |
| ret | |
| } |
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
| scala> exit | |
| <console>:11: warning: method exit in object Predef is deprecated: Use sys.exit() instead | |
| exit | |
| ^ | |
| null | |
| scala> sys.exit() | |
| null | |
| scala> <- (i hit ctrl+d, screen locked up and i had to wait a few seconds) |
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
| build:~/kyotocabinet$ cat pkg/.control.kyotocabinet/.PKGINFO | |
| # Generated by abuild 2.13.1 | |
| # using fakeroot version 1.18.4 | |
| # Thu Nov 22 14:44:22 UTC 2012 | |
| pkgname = kyotocabinet | |
| pkgver = 1.2.76-r0 | |
| pkgdesc = GDBM, QDBM and Tokyo Cabinet successor | |
| url = http://falllabs.com/kyotocabinet | |
| builddate = 1353595462 | |
| packager = me |
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
| dom0:~# apk add cfengine | |
| (1/5) Installing pcre (8.31-r0) | |
| (2/5) Installing pkgconf (0.8.9-r0) | |
| (3/5) Installing pkgconfig (0.25-r1) | |
| (4/5) Installing tokyocabinet (1.4.48-r0) | |
| (5/5) Installing cfengine (3.3.8-r0) | |
| Executing busybox-1.20.2-r3.trigger | |
| Executing uclibc-utils-0.9.33.2-r14.trigger | |
| OK: 344 MiB in 75 packages |