This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
/* | |
* This is my main function | |
*/ | |
while (1) { | |
if (this == that) { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> /etc/fail2ban/jail.conf | |
[freeswitch] | |
enabled = true | |
port = 5060,5061,5080,5081 | |
filter = freeswitch | |
logpath = /var/log/freeswitch/freeswitch.log | |
maxretry = 10 | |
action = iptables-allports[name=freeswitch, protocol=all] | |
[freeswitch-dos] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to the Kafo installer! | |
------------------------------ | |
This wizard will gather all required information. You can change any parameter | |
to your needs. | |
Ready to start? (y/n) | |
y | |
y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, argparse | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--foo", required=True) | |
parser.add_argument("--bar", type=int, default=0) | |
args = parser.parse_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/projectw/RouteFlow/build/include/mongo/bson/bson_field.h:99:33: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] | |
ar r /home/projectw/RouteFlow/build/lib/rflib.a /home/projectw/RouteFlow/build/obj/rfclient/FlowTable.o /home/projectw/RouteFlow/build/obj/rfclient/FPMServer.o /home/projectw/RouteFlow/build/obj/rfclient/PortMapper.o /home/projectw/RouteFlow/build/obj/rfclient/RFClient.o | |
g++ -I/home/projectw/RouteFlow/rflib -I/home/projectw/RouteFlow/build/include -I/home/projectw/RouteFlow/rflib/ipc -I/home/projectw/RouteFlow/rflib/types -I/home/projectw/RouteFlow/rflib/bson -o /home/projectw/RouteFlow/build/rfclient /home/projectw/RouteFlow/build/obj/rfclient/FlowTable.o /home/projectw/RouteFlow/build/obj/rfclient/FPMServer.o /home/projectw/RouteFlow/build/obj/rfclient/PortMapper.o /home/projectw/RouteFlow/build/obj/rfclient/RFClient.o /home/projectw/RouteFlow/build/lib/rflib.a -lrt -lnetlink -lutil -lpthread -lzmq -lboost_thread -lboost_system -lboost_filesystem -lboost_progr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nzmirror: &nzmirror [cdn-fastly.deb.debian.org, ftp.citylink.co.nz, | |
mirror.akl.tmnetwork.co.nz, mirror.wlg.tmnetwork.co.nz, | |
ftp.slingshot.co.nz, debian.catalyst.net.nz, mirror.inspire.net.nz, | |
ucmirror.canterbury.ac.nz, ftp.wicks.co.nz, | |
nz.archive.ubuntu.com, ftp.nz.debian.org] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls -lah /srv/tftp/ | |
total 152K | |
drwxr-xr-x 4 root nogroup 4.0K Jun 18 2013 . | |
drwxr-xr-x 3 root root 4.0K Jun 5 2013 .. | |
drwxr-xr-x 3 foreman-proxy root 4.0K Apr 29 11:16 boot | |
-rw-r--r-- 1 root root 21K Jun 5 2013 chain.c32 | |
-rw-r--r-- 1 root root 26K Jun 18 2013 memdisk | |
-rw-r--r-- 1 root root 55K Jun 5 2013 menu.c32 | |
-rw-r--r-- 1 root root 26K Jun 5 2013 pxelinux.0 | |
drwxr-xr-x 2 foreman-proxy root 4.0K May 18 09:09 pxelinux.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brad@faucet-dev:~# cat /etc/ryu/faucet/faucet-zodiacfx01.yaml | |
dp_id: 0x70B3D56CD023 | |
name: "Zodiac-FX01" | |
hardware: "ZodiacFX" | |
interfaces: | |
1: | |
native_vlan: 100 | |
2: | |
tagged_vlans: [100] | |
vlans: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
insmod /usr/local/src/dpdk-16.07/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko | |
# Bind eth4, eth5, eth6, eth7 to DPDK instead of kernel | |
/usr/local/src/dpdk-16.07/tools/dpdk-devbind.py - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Kill ovs | |
ovs-appctl -t ovs-vswitchd exit | |
ovs-appctl -t ovsdb-server exit | |
# Bind eth4, eth5, eth6, eth7 to kernel instead of DPDK | |
/usr/local/src/dpdk-16.07/tools/dpdk-devbind.py --bind=igb 0000:04:00.0 | |
/usr/local/src/dpdk-16.07/tools/dpdk-devbind.py --bind=igb 0000:04:00.1 | |
/usr/local/src/dpdk-16.07/tools/dpdk-devbind.py --bind=igb 0000:04:00.2 |
OlderNewer