- Start the exec server
tsx exec-server.ts &
- Run Maestro test
#!/bin/bash | |
# | |
# Display the realtime bandwidth usage for the specified interface. | |
# | |
# dsimmons@squiz.co.uk | |
# 2011-08-03 | |
# | |
# Number of seconds to average data over | |
avgsecs=3 |
#!/bin/bash | |
# | |
# Converts LDIF data to CSV. | |
# Doesn't handle comments very well. Use -LLL with ldapsearch to remove them. | |
# | |
# 2010-03-07 | |
# dsimmons@squiz.co.uk | |
# | |
# Show usage if we don't have the right params |
import os | |
import re | |
import sys | |
# Crazy URL regexp from Gruber | |
# http://daringfireball.net/2010/07/improved_regex_for_matching_urls | |
r = re.compile(r'(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'".,<>?]))') | |
# grep -r | |
for parent, dnames, fnames in os.walk(sys.argv[1]): |
#!/bin/bash | |
# | |
# Do a ping and output results as CSV. | |
# | |
# dsimmons@squiz.co.uk | |
# 2011-12-23 | |
# | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 [--add-timestamp] <ping host>" |
#!/usr/bin/python | |
import sys | |
import time | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(s): | |
while True: | |
time.sleep(1000) |
We need to run everything under x86 emulation, because Powershell needs opensslv1 and opensslv1 only builds under x86.
Create home directory and script to launch x86 shell:
mkdir -p $HOME/x86shell
cat <<EOF > $HOME/x86shell/.bash_profile
export PATH=$PATH:/usr/bin
#!/bin/bash | |
# | |
# Spawn a process and restart it if it exits. | |
# | |
declare -i exit_code | |
declare -i pid | |
_cleanup() { | |
echo "[$(date)]: sending TERM to pid $pid" | |
kill -TERM $pid |
#!/usr/bin/env python3 | |
import json | |
import subprocess | |
import sys | |
from typing import List | |
def list_users_in_groups(group_names: List[str]): | |
groups_stack: List[str] = group_names; | |
users: List[str] = []; |