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 | |
# Create a temporary directory and store its name in a variable ... | |
TMPDIR=$(mktemp -d) | |
# Bail out if the temp directory wasn't created successfully. | |
if [[ ! -d "$TMPDIR" ]]; then | |
>&2 echo "Failed to create temp directory" | |
exit 1 | |
fi |
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 bash | |
ADDRESSES=`sudo arp-scan --localnet --ignoredups --interface=enp0s25 | grep $'\t' | cut -f1` | |
#echo $ADDRESSES | |
get_ssh_info () { | |
local out err | |
{ | |
out=( $(ssh-keyscan -t ed25519 $1 2>/dev/fd/3) ) |
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/python3 | |
# running with no arguments will dump all the origins known by apt | |
# running with a list of package names as arguments will dump the sources for those packages and the known versions for those packages. | |
import os | |
import re | |
import string | |
import subprocess | |
import sys |