I hereby claim:
- I am coreyoconnor on github.
- I am coreyoconnor (https://keybase.io/coreyoconnor) on keybase.
- I have a public key ASCbJzbEcR8xnVlClaH9ZsZ_wXJF6zTCobFS7_uaI3MH4wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| [coconnor@agh:~/Development/nixpkgs]$ virsh net-list --all | |
| Name State Autostart Persistent | |
| ---------------------------------------------------------- | |
| default inactive yes yes | |
| [coconnor@agh:~/Development/nixpkgs]$ ifconfig | |
| enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | |
| inet 192.168.1.2 netmask 255.255.255.0 broadcast 0.0.0.0 | |
| inet6 fe80::76d4:35ff:fe9d:6e30 prefixlen 64 scopeid 0x20<link> |
| {-# LANGUAGE ExistentialQuantification, DeriveDataTypeable #-} | |
| module Main where | |
| import Data.Typeable | |
| data Highlighter cache syntax = SynHL {hlFocus :: Int -> cache -> cache} | |
| data HLState syntax = forall cache. HLState !(Highlighter cache syntax) !cache | |
| data BufferImpl syntax = |
| <% if @port != 80 -%> | |
| Listen <%= @port %> | |
| <% end -%> | |
| <VirtualHost *:<%= @port %>> | |
| ServerAdmin webmaster@localhost | |
| DocumentRoot <%= @document_root %> | |
| <Directory /> | |
| Options FollowSymLinks |
| module Main where | |
| import Language.C | |
| import Language.C.System.GCC | |
| import Control.Monad | |
| import Data.Maybe | |
| import Data.IORef | |
| main = do | |
| r <- parseCFile (newGCC "gcc") Nothing [] "raw_data_dump.h" | |
| client_data_ref <- newIORef [] |
| template<typename array_type, std::size_t array_size> | |
| std::string hex_dump_array(const boost::array<array_type, array_size>& in_array) | |
| { | |
| // 100 chars max stride. 2 chars per byte. | |
| using namespace std; | |
| const uint32_t chunks_per_stride = 50 / (sizeof(array_type) + 1); | |
| uint32_t chunk_offset = 0; | |
| std::stringstream out_stream; | |
| std::string stride_txt; | |