Skip to content

Instantly share code, notes, and snippets.

View Hoverbear's full-sized avatar
🐻‍❄️
Am a bear, hovering there.

Ana Hobden Hoverbear

🐻‍❄️
Am a bear, hovering there.
View GitHub Profile
[sources.in]
include = ["C:\\Windows\\System32\\winevt\\Logs\\System.evtx"]
type = "file" # required
[sinks.debug]
type = "console"
inputs = ["in"]
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
// BEGIN DIFFERENT CODE
// Make a SYN
packet_t syn_packet;
syn_packet.type = SYN;
syn_packet.seqno = (unsigned short) rand();
syn_packet.ackno = 0;
syn_packet.payload = 0;
syn_packet.window = 0;
syn_packet.data = calloc(1, sizeof(char));
strcpy(syn_packet.data, "");
use std::os;
use std::rt::io::net::{ip,udp};
// Usage Notes
static USAGE: &'static str = "Usage: ./sws <port> <folder>";
// The options available to the program.
struct Options {
port: ip::SocketAddr,
directory: ~str
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
block = []
switch req.workshop.session
# Block 1
when 1
block = [1, 2, 3]
when 2
block = [1, 2]
when 3
block = [1, 3]
# Block 2
@Hoverbear
Hoverbear / Gruntfile.coffee
Created August 28, 2013 18:06
Gruntfile template
module.exports = (grunt) ->
# Package configuration.
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
coffee:
options:
join: true
bare: true
files:
src: "src/**/*.coffee"
@Hoverbear
Hoverbear / coreOS.md
Created August 23, 2013 17:49
Awesome IRC logs

Aug 23:

marineam is terrible at writing readable emails
vitaminmoo: marineam: Have you tried more profane interjections?
marineam: vitaminmoo: @$#*!
vitaminmoo: marineam: You don't have to bring perl into this
@Hoverbear
Hoverbear / doesnt_work.coffee
Created June 19, 2013 03:14
Express.js app.use() middleware example.
###
Browse to http://localhost:8080 to see the following output:
# Hello
###
# Ignore
app = require('express')()
# Important stuff!
app.use (req, res)->
@Hoverbear
Hoverbear / main.rs
Last active August 29, 2015 14:16
Cap'n Proto RPC
#![feature(path)]
extern crate capnp;
extern crate capnpc;
extern crate "capnp-rpc" as capnp_rpc;
mod raft_capnp {
include!("./schema/raft_capnp.rs");
}
use std::thread;