Skip to content

Instantly share code, notes, and snippets.

View Trouble shooting
Spin up a quick shell with network-utils.
```k run tmp-shell --rm -i --tty --image amouat/network-utils -- /bin/bash```
View style.rb
#Non-align
def foo
some_function(true, { :before => 1,
:after => 2 })
end
def bar
case @var
when 1
print 'a'
View gist:93f003c02727331c2daa
#!/bin/bash
# chkconfig: 345 20 80
# description: Play start/shutdown script
# processname: play
#
# Instalation:
# copy file to /etc/init.d
# chmod +x /etc/init.d/play
# chkconfig --add /etc/init.d/play
# chkconfig play on
View mut_stream_error.rs
//! A simplistic echo server that allows client to exit using the quit command.
//! Based on various examples and sources from the internet.
#[crate_id = "echo:0.1pre"];
use std::io::{Listener, Acceptor, BufferedStream};
use std::io::net::tcp::TcpListener;
use std::io::net::ip::{SocketAddr, Ipv4Addr};
//FIXME: In general, need more error handling.
@elyzion
elyzion / echo.rs
Last active Aug 29, 2015
A very simple echo server.
View echo.rs
//! A simplistic echo server that allows client to exit using the quit command.
#![crate_id = "echo:0.1pre"]
#![feature(phase)]
#[phase(plugin, link)] extern crate log;
use std::io::{Listener, Acceptor, BufferedStream};
use std::io::net::tcp::TcpListener;