Skip to content

Instantly share code, notes, and snippets.

@bocon13
bocon13 / crowd_bulk_remove.py
Created May 10, 2018 22:37
Script for bulk removing users from a group in Crowd
#!/usr/bin/env python
import base64
import json
import os
import sys
import urllib2
if len(sys.argv) < 3:
print 'USAGE: %s <crowd group> <user filter>' % (os.path.basename(__file__))
@bocon13
bocon13 / mininetSocketTest.py
Last active March 22, 2022 20:20
Example of opening a UDP socket in a Mininet host and writing the received packets to a file
#!/usr/bin/python
from mininet.topo import Topo, SingleSwitchTopo
from mininet.net import Mininet
from mininet.log import lg, info
from mininet.cli import CLI
def main():
lg.setLogLevel('info')