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 -W ignore::DeprecationWarning | |
"""rel_unpack.py - unpacks the contents of a release directory, optionally | |
checking SFV check sums prior to unpacking. The script only handles RAR | |
compressed content, and descends into any CD sub directories as well. | |
Usage: rel_unpack.py <release directory> | |
This script relies on the 'unrar' binary being installed. For SFV checking | |
to take place, the cfv Python module must be present. |
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 | |
# Script that downloads and builds defender-prototype and lambda (Project Lambda). | |
set -e | |
set -u | |
function error_exit() | |
{ | |
echo >&2 $@ |
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 | |
# Lists Linux block devices and for each one the controller | |
# it is connected to. | |
set -o pipefail | |
for i in /sys/block/sd*; do | |
# Find the path that contains the PCI ID of the controller. | |
link=$(readlink $i) |
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
/* Tiny program for listing network interface names and indexes in Linux. | |
* | |
* Compile with: gcc -std=c99 -o listifs listifs.c | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <net/if.h> | |
int main(int argc, char *argv[]) |
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 | |
#pylint: indent-string=' ' | |
import serial | |
import daemon | |
import signal | |
import lockfile | |
import time | |
import getopt | |
import os |
NewerOlder