Skip to content

Instantly share code, notes, and snippets.

Router#show run
Building configuration...
Current configuration : 1655 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
Router#sh run
Building configuration...
Current configuration : 1655 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
Router#sh run
Building configuration...
Current configuration : 1358 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
Router#show ip arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.1 - 0013.7f16.a4f0 ARPA FastEthernet0/0
Internet 192.168.0.1 - 0013.7f16.a4f0 ARPA FastEthernet0/0
Internet 186.67.181.201 11 78da.6ec4.8cd4 ARPA FastEthernet0/1
Internet 186.67.181.202 - 0013.7f16.a4f1 ARPA FastEthernet0/1
public class Server extends Verticle {
Vertx vertx = VertxFactory.newVertx();
public void start() {
vertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {
public void handle(HttpServerRequest req) {
System.out.println("Got request: " + req.uri());
System.out.println("Headers are: ");
'use strict';
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('PhoneCat App', function () {
describe('Phone list view', function () {
beforeEach(function () {
browser.get('app/index.html');
package client;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioDatagramChannel;
/**
public class OutboundHandler extends ChannelOutboundHandlerAdapter{
@Override
public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception {
System.out.println("Bind happened");
System.out.println(localAddress);
InetSocketAddress ipSocketAddress = new InetSocketAddress("255.255.255.255", 7686);
ByteBuf byteBuf = Unpooled.copiedBuffer("QOTM?", CharsetUtil.UTF_8);
public class FlushHandler extends ChannelOutboundHandlerAdapter {
@Override
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
ctx.flush();
System.out.println("Flushed");
}
private byte[] toPrimitives(Byte[] oBytes){
byte[] bytes;
int i =0;
for(Byte b : oBytes){
bytes[i] = b;
}
return bytes;
}