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
| acl intermediate_fetching transaction_initiator certificate-fetching | |
| http_access allow intermediate_fetching | |
| # | |
| # Recommended minimum configuration: | |
| # | |
| # Example rule allowing access from your local networks. | |
| # Adapt to list your (internal) IP networks from where browsing | |
| # should be allowed | |
| acl localnet src 0.0.0.1-0.255.255.255 # RFC 1122 "this" network (LAN) |
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
| #!/usr/bin/python3 | |
| # reads a list of IP subnets in CIDR notation from stdin and collapses it | |
| import sys | |
| import ipaddress | |
| subnets6 = [] | |
| subnets4 = [] | |
| input_list = sys.stdin.readlines() |
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
| # capture info messages and any errors in a log file | |
| exec >> log/hooks-out.log 2>&1 | |
| if git diff-tree --name-only --no-commit-id ORIG_HEAD HEAD | grep -q 'package.json'; then | |
| echo "$(date): reinstalling deps since package.json changed" | |
| yarn > /dev/null | |
| else | |
| echo "$(date): no changes detected in package.json" | |
| fi |
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 | |
| # Referenced and tweaked from http://stackoverflow.com/questions/6174220/parse-url-in-shell-script#6174447 | |
| proto="$(echo $1 | grep :// | sed -e's,^\(.*://\).*,\1,g')" | |
| # remove the protocol | |
| url="$(echo ${1/$proto/})" | |
| # extract the user (if any) | |
| userpass="$(echo $url | grep @ | cut -d@ -f1)" | |
| pass="$(echo $userpass | grep : | cut -d: -f2)" | |
| if [ -n "$pass" ]; then |
OlderNewer