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/python | |
from __future__ import print_function | |
import sys | |
import termios | |
import tty | |
def main(): | |
fd = sys.stdin.fileno() |
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
#include <assert.h> | |
#include <ctype.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
static int | |
add_tests(const char *testname_re) |
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/sh | |
# | |
# Endlessly download a file with wget and verify that its content is unchanged. | |
# Usage: dlsum URL | |
# | |
error () { | |
echo "Data corruption detected! Here is the diff:" | |
mv $filename "${filename}.bad" | |
hexdump -C "${filename}.good" > "${filename}.good.hex" |
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/python | |
# | |
# The purpose of this script is to ensure that configshell behaves the | |
# same way when simpleparse is replaced with pyparsing. Currently, | |
# configshell uses simpleparse to parse the commands, but I intend to | |
# replace it with pyparsing which is more actively maintained and more | |
# widely used. | |
# | |
# This script reads the command history of targetcli and verifies that | |
# the commands are parsed the same way with simpleparse and pyparsing. |