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
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: selenium-hub | |
| labels: | |
| name: selenium-hub | |
| spec: | |
| selector: | |
| app: selenium-hub | |
| ports: |
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
| # | |
| # udev rule | |
| # Mount USB drive to the media directory using the partition name as mount point | |
| # | |
| # Description: | |
| # Created for Home Assistant OS, this rule mounts any USB drives | |
| # into the Hassio media directory (/mnt/data/supervisor/media). | |
| # When a USB drive is connected to the board, the rule creates one directory | |
| # per partition under the media directory. The newly created partition is named | |
| # as the partition name. If the partition does not have a name, then the following |
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
| import time | |
| import re | |
| from datetime import datetime | |
| DATE_REGEX = re.compile(r"(.*?) dnsmasq\[.*?\]:.*$") | |
| FORWARDED_REGEX = re.compile(r".*: forwarded (.*?) to (.*?)$") | |
| QUERY_REGEX = re.compile(r".*: query\[(.*?)\] (.*?) from (.*?)$") | |
| REPLY_REGEX = re.compile(r".*: reply (.*?) is (.*?)$") | |
| CACHE_HITS_REGEX = re.compile(r".*: queries forwarded (\d+), queries answered locally (\d+)$") | |
| QUERIES_REGEX = re.compile(r".*: server .*?: queries sent (\d+), retried or failed (\d+)$") |
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
| #!/bin/bash | |
| # Authorize TCP, SSH & ICMP for default Security Group | |
| #ec2-authorize default -P icmp -t -1:-1 -s 0.0.0.0/0 | |
| #ec2-authorize default -P tcp -p 22 -s 0.0.0.0/0 | |
| # The Static IP Address for this instance: | |
| IP_ADDRESS=$(cat ~/.ec2/ip_address) | |
| # Create new t1.micro instance using ami-cef405a7 (64 bit Ubuntu Server 10.10 Maverick Meerkat) |
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
| // Assumptions | |
| // Boomerang makes beacon call to port :8080 | |
| // StatsD is running on same server (localhost) | |
| // The following NodeJS modules are installed: | |
| // https://github.com/tobie/ua-parser | |
| // https://github.com/bluesmoon/node-geoip | |
| // Boomerang is configured to send custom parameters for "domain", "page_type", "user_status", "ip" and "user_agent". | |
| // http://lognormal.github.io/boomerang/doc/howtos/howto-5.html |