Skip to content

Instantly share code, notes, and snippets.

View starbops's full-sized avatar

Zespre Chang starbops

View GitHub Profile
@starbops
starbops / bmp-in-openstack.md
Last active March 11, 2016 01:07
Development for Fully-Automated Bare Metal Provisioning in OpenStack

development for fully-automated bare metal provisioning in openstack

setup ironic

  • before deployment, administrator needs to setup

  • enroll baremetal nodes to ironic

@starbops
starbops / purge.sh
Created February 25, 2016 12:16
Remove same prefix files but most recent one.
#!/usr/bin/env sh
#
# purge.sh - Remove same prefix files but most recent one
# Author: Zespre Schmidt <starbops@zespre.com>
# The MIT License (MIT)
# Copyright (c) 2016 ZPCC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@starbops
starbops / .muttrc
Created February 22, 2016 14:14
My Mutt Config
unmy_hdr *
my_hdr Organization: ZPCC
my_hdr X-Homepage: https://blog.zespre.com
my_hdr X-PGP-Key: https://www.zespre.com/starbops.asc
set from = "starbops@zespre.com"
set realname = "Zespre Schmidt"
#set folder = ~/.mail
set spoolfile = "imaps://mail.zespre.com/INBOX"
@starbops
starbops / TwoLayerTreePingall.py
Last active September 26, 2022 16:19
A Testing Mininet Python Script for SDN Lab03
""" A Testing module for SDN Lab03
Use Mininet as underlying network topology, Floodlight as remote controller.
Construct a two-layer tree topology and manually build up switch flow table
entries for basic forwarding without Floodlight-provided forwarding module.
"""
from mininet.net import Mininet
from mininet.node import RemoteController
from mininet.topolib import TreeTopo
#!/usr/bin/env python
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.node import RemoteController
from mininet.link import TCLink
from mininet.cli import CLI
from mininet.util import dumpNodeConnections
from mininet.log import setLogLevel
#include <linux/module.h>
#include <linux/proc_fs.h>
extern int flag_ipaddr;
static struct proc_dir_entry *ipaddr_file;
static int proc_read_ipaddr(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
printk("flag_ipaddr is %d\n", flag_ipaddr);
return 0;
}
#include <linux/module.h>
#include <linux/proc_fs.h>
extern int flag_macaddr;
static struct proc_dir_entry *macaddr_file;
static int proc_read_macaddr(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
printk("flag_macaddr is %d\n", flag_macaddr);
return 0;
}