This file contains hidden or 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 python3 | |
# coding: utf-8 | |
import netaddr | |
import lglass | |
import sys | |
from progress.bar import Bar | |
from progress.spinner import Spinner | |
routes = lglass.bird.Parser().parse_routes(sys.stdin.read()) |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdint.h> | |
#include <unistd.h> | |
#define WINDOW 32 | |
int main() | |
{ | |
int i; | |
int32_t in[WINDOW] = {0}; |
This file contains hidden or 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
CONFIG_EXPERIMENTAL=y | |
CONFIG_LOCALVERSION="-FRITZ" | |
CONFIG_KERNEL_XZ=y | |
CONFIG_SYSVIPC=y | |
CONFIG_POSIX_MQUEUE=y | |
CONFIG_BSD_PROCESS_ACCT=y | |
CONFIG_BSD_PROCESS_ACCT_V3=y | |
CONFIG_FHANDLE=y | |
CONFIG_TASKSTATS=y | |
CONFIG_TASK_DELAY_ACCT=y |
This file contains hidden or 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
# coding: utf-8 | |
class Route: | |
def __init__(self, network): | |
self.network = network | |
class BGPRoute(Route): | |
def __init__(self, network, origin="IGP", as_path=[], next_hop=None, | |
community=[], med=0): | |
Route.__init__(self, network) |
This file contains hidden or 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 python3 | |
# coding: utf-8 | |
import sys | |
peerings = [] | |
print("graph dn42 {") | |
for line in sys.stdin: | |
_as = line.split(" ")[:-1] | |
i = 0 | |
while i < len(_as) - 1: |
This file contains hidden or 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
main: | |
.LFB0: | |
.cfi_startproc | |
pushq %rbp | |
.cfi_def_cfa_offset 16 | |
.cfi_offset 6, -16 | |
movq %rsp, %rbp | |
.cfi_def_cfa_register 6 | |
movl -4(%rbp), %eax | |
movl %eax, %edx |
This file contains hidden or 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
@keyframes rotat { | |
0% { | |
transform: rotate(0deg); | |
-ms-transform: rotate(0deg); | |
-moz-transform: rotate(0deg); | |
-o-transform: rotate(0deg); | |
-webkit-transform: rotate(0deg); | |
} | |
25% { | |
transform: rotate(90deg); |
This file contains hidden or 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
Xft.antialias: true | |
Xft.autohint: false | |
Xft.rgba: rgb | |
URxvt*transparent: 0 | |
URxvt*print-pipe: cat > $(TMPDIR=$HOME mktemp urxvt.XXXXXX) | |
URxvt*scrollBar: False | |
URxvt*letterSpace: -1 | |
URxvt*font: xft:DejaVu Sans Mono:size=8 |
This file contains hidden or 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
find \( -name '*.[chSs]' -or -name '*.asm' \) -exec cat {} \; | grep -vP "^[\s]*([\#]|[\/]?\*|$|\/\/)" | wc -l |
This file contains hidden or 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
#include <arpa/inet.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <netinet/in.h> | |
// gcc -o ipv6_addr ipv6_addr.c -std=c99 |