Skip to content

Instantly share code, notes, and snippets.

@mikefaille
mikefaille / Fed_install_3.7_rc6_krnl
Created November 20, 2012 02:36
Fedora install kernel 3.7 rc6 x64
sudo yum install http://kojipkgs.fedoraproject.org//packages/kernel/3.7.0/0.rc6.git1.1.fc19/x86_64/kernel-3.7.0-0.rc6.git1.1.fc19.x86_64.rpm http://kojipkgs.fedoraproject.org//packages/kernel/3.7.0/0.rc6.git1.1.fc19/x86_64/kernel-headers-3.7.0-0.rc6.git1.1.fc19.x86_64.rpm http://kojipkgs.fedoraproject.org//packages/kernel/3.7.0/0.rc6.git1.1.fc19/x86_64/kernel-modules-extra-3.7.0-0.rc6.git1.1.fc19.x86_64.rpm --nogpg
@mikefaille
mikefaille / Linc-sys.config.diff
Created April 27, 2013 07:49
diff --git a/rel/files/sys.config b/rel/files/sys.config
index 9655fd4..88e9b6c 100644
--- a/rel/files/sys.config
+++ b/rel/files/sys.config
@@ -23,7 +23,7 @@
%% Default OFP controller port is 6633.
{controllers,
[
- %% {"Switch0-DefaultController", "localhost", 6633, tcp}
+ {"Switch0-DefaultController", "localhost", 6633, tcp}
]},
@mikefaille
mikefaille / Linc-Ctrl-FlowMod
Created April 27, 2013 07:50
This is my flow activation (using table 1)
FlowMod = #ofp_message{
version = 3,
xid = 100,
body = #ofp_flow_mod{
cookie = <<0:64>>,
cookie_mask = <<0:64>>,
table_id = 1,
command = add,
idle_timeout = 30000,
hard_timeout = 60000,
@mikefaille
mikefaille / Linc-Ctrl-RemoveFlows
Created April 27, 2013 07:51
This my flow deletion :
RemoveFlows = #ofp_message{
version = 3,
xid = 200,
body = #ofp_flow_mod{
cookie = <<0:64>>,
cookie_mask = <<0:64>>,
table_id = 1,
command = delete,
idle_timeout = 30000,
hard_timeout = 60000,
@mikefaille
mikefaille / HSVandRGBtest.java
Created September 16, 2014 16:12
HSVtoRGB and vice versa test
public class HSVtoRGB {
public static void main(String[] args) {
float []hsbVal = null;
hsbVal = RGBtoHSBfloat(180, 58, 58, hsbVal );
int rgb = HSBtoRGB(hsbVal[0], hsbVal[1], hsbVal[2]);
int red = (rgb >> 16) & 0xFF;
test
@mikefaille
mikefaille / System Design.md
Created April 18, 2016 11:17 — forked from vasanthk/System Design.md
System Design Cheatsheet

#System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@mikefaille
mikefaille / pedantically_commented_playbook.yml
Created May 31, 2016 12:23 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@mikefaille
mikefaille / vagrant.py
Created November 9, 2016 21:02 — forked from lorin/vagrant.py
Vagrant dynamic inventory script for Ansible
#!/usr/bin/env python
# Adapted from Mark Mandel's implementation
# https://github.com/ansible/ansible/blob/devel/plugins/inventory/vagrant.py
import argparse
import json
import paramiko
import subprocess
import sys
;;; ox-confluence-en.el --- Enhanced Confluence Wiki Back-End for Org Export Engine
;; Copyright (C) 2015, Correl Roush
;; Author: Correl Roush <correl@gmail.com>
;; Keywords: outlines, confluence, wiki
;; This file is not part of GNU Emacs.
;; This program is free software: you can redistribute it and/or modify