I hereby claim:
- I am 0xjac on github.
- I am 0xjac (https://keybase.io/0xjac) on keybase.
- I have a public key ASA-NPIxmyFQ1ismXY0MvmW8bisZKMokD0XOFXQdGhZgHAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import java.util.concurrent.ThreadLocalRandom; | |
import java.util.function.Supplier; | |
public abstract class Bool { | |
public static final Bool TRUE = new True(); | |
public static final Bool FALSE = new False(); | |
public abstract <T> T ifTrueIfFalse(Supplier<T> fTrue, Supplier<T> fFalse); | |
private static class True extends Bool { | |
public <T> T ifTrueIfFalse(Supplier<T> fTrue, Supplier<T> fFalse) { |
#!/usr/bin/env python | |
import argparse | |
import sys | |
from scapy.all import IP, UDP, Packet, XIntField, XByteField, bind_layers, Ether, sendp, sniff | |
class EasyTrace(Packet): | |
PROTOCOL = 0xFD | |
PORT = 0x6901 |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare git@github.com:usi-systems/easytrace.git
Hello, I found that this assignment had quite a bit of overhead to setup everything properly. The information below should facilitate your work with vagrant, Mininet and Ryu. I however will not provide any help on how to do the actual assignment.
If anything is unclear or if something does not work, don't hesitate to comment below.
If you find the information below helpful and use part or all of it for your assignment, I would appreciate if you could mention it in your submission. Either just by indicating my name or the link to this gist.
#!/usr/bin/env bash | |
FLOP=4000000; | |
gcc -o main main.c; | |
TIMEFORMAT=%R | |
ELAPSED=`( time ./main ) 2>&1 > /dev/null` | |
FLOPS=$(echo "$FLOP/$ELAPSED" | bc) |
#!/usr/bin/env bash | |
HOSTNAME="aca-lab" | |
VMNAME="aca-lab" | |
HOST_PORT=3022 | |
SSH_PORT=22 | |
function cleanup { | |
# Poweroff the machine on exit or failure | |
VBoxManage controlvm "$VMNAME" poweroff |
/** | |
* <p>Ketai Library for Android: http://KetaiProject.org</p> | |
* | |
* <p>KetaiBluetooth wraps the Android Bluetooth RFCOMM Features: | |
* <ul> | |
* <li>Enables Bluetooth for sketch through android</li> | |
* <li>Provides list of available Devices</li> | |
* <li>Enables Discovery</li> | |
* <li>Allows writing data to device</li> | |
* </ul> |
// ==UserScript== | |
// @name fix_icorsi | |
// @namespace https://gist.github.com/jacquesd/ | |
// @version 0.4 | |
// @description Shows the course names instead of ides on the side menu. | |
// @author Jacques Dafflon | |
// @match https://www2.icorsi.ch/* | |
// @website https://gist.github.com/jacquesd/a322655dd93b30f0bba8 | |
// @source https://gist.githubusercontent.com/jacquesd/a322655dd93b30f0bba8/raw/fix_icorsi.user.js | |
// @updateURL https://gist.githubusercontent.com/jacquesd/a322655dd93b30f0bba8/raw/fix_icorsi.user.js |
Traceback (most recent call last): | |
File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__ | |
return self.wsgi_app(environ, start_response) | |
File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app | |
response = self.make_response(self.handle_exception(e)) | |
File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception | |
reraise(exc_type, exc_value, tb) | |
File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app | |
response = self.full_dispatch_request() | |
File "/home/jd/.virtualenvs/indico-mobile/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request |