Skip to content

Instantly share code, notes, and snippets.

View jonesnl's full-sized avatar

Nate Jones jonesnl

View GitHub Profile
@jonesnl
jonesnl / block2.rs
Created October 19, 2018 20:41
Parser for block 2 of shell
use std::io::{self, Write};
use std::process::Command;
trait Statement {
fn run(&self) -> bool;
}
struct AndStatement {
left: Box<Statement>,
right: Box<Statement>,

Keybase proof

I hereby claim:

  • I am jonesnl on github.
  • I am jonesnl (https://keybase.io/jonesnl) on keybase.
  • I have a public key ASC1GOeZN04AwgXQKGf2vnU_5UihRoeqQWpQg908vA6WCQo

To claim this, I am signing this object:

@jonesnl
jonesnl / scapy_broken_route_import.md
Created April 17, 2017 16:31
Scapy Broken Nexthop Route Import

Prior Behavior

As can be seen below, prior to #554, nexthop routes were populated into scapy's routing table properly, allowing us to send traffic to 48.0.54.1 properly. Apologies in advance for the wall of text.

[~/scapy]$ git show -q | cat
commit 63f75c596f4ca167b0f95e4401f8ec53866ad1f5
Author: gpotter2 <gabriel@potter.fr>
Date:   Fri Apr 14 16:49:32 2017 +0200

    Remove unused import
@jonesnl
jonesnl / .nvidia_flipping_disable
Last active December 1, 2015 23:54
Script to Stop Screen Flickering in CAEN Linux
#!/bin/bash
# Save this script to your home directory (or elsewhere)
# Make this script executable
# Run this script on Cinnamon startup by adding it to your start up appliations list by
# opening the "Startup Applications" program, and adding this script as an entry.
# This will set the correct setting every time you log into a CAEN Lab machine.
if hash nvidia-settings 2>/dev/null; then