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
configure | |
set service mdns repeater interface eth1 | |
set service mdns repeater interface eth2 | |
commit | |
save |
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
# Set proxy for all users | |
# See: | |
# https://www.securelink.be/windows-proxy-settings-explained/ | |
# https://technet.microsoft.com/en-us/library/cc770473(v=ws.11).aspx | |
# https://msdn.microsoft.com/en-us/library/windows/desktop/aa362813(v=vs.85).aspx | |
$domain_name='example.com' | |
$proxy='proxy.foo.com' | |
$port=8080 | |
$bypass = "10.*.*.*;" |
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 python3 | |
import os | |
import sys | |
import json | |
import requests | |
import argparse | |
import re | |
SLACK_WEBHOOK_URL = os.environ.get("SLACK_WEBHOOK_URL") |
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 python3 | |
# https://grafana.com/docs/http_api/annotations/ | |
import os | |
import sys | |
import json | |
import requests | |
import argparse | |
import datetime |
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 | |
totals=() | |
while read -r item; do | |
cal=$((cal + item)) | |
if [ -z "$item" ]; then | |
totals+=($cal) | |
cal=0 | |
fi | |
done < input |
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
set vpn l2tp remote-access authentication mode local | |
set vpn l2tp remote-access authentication local-users username <username> password <password> | |
set vpn l2tp remote-access client-ip-pool start 10.0.3.10 | |
set vpn l2tp remote-access client-ip-pool stop 10.0.3.20 | |
set vpn l2tp remote-access dns-servers server-1 10.0.0.1 | |
set vpn l2tp remote-access ipsec-settings authentication mode pre-shared-secret | |
set vpn l2tp remote-access ipsec-settings authentication pre-shared-secret <secret> | |
set vpn l2tp remote-access ipsec-settings ike-lifetime 3600 |
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
import json | |
import ssl | |
import requests | |
from requests_toolbelt import SSLAdapter | |
# URL or IP Address of the unifi controller: | |
PORTAL_URL = 'https://ubiquiti.example.com/' | |
# Username and password for the unifi controller: | |
PORTAL_LOGIN_PARAMS = { |
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 -e | |
# Write out prometheus metrics for docker volume size. | |
while read -r container_id; do | |
container=$(docker inspect "$container_id") | |
state=$(jq --raw-output .[].State.Status <(echo "$container")) | |
if [[ $state = 'running' ]]; then |
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
# Create the Azure end of an Azure Site to Site VPN | |
$subscription = 'Visual Studio Enterprise' | |
$location = 'Australia East' | |
$resourceGroup = 'RG-Network' | |
$networkName = 'VN-Azure' | |
$networkPrefix = '10.20.0.0/16' |
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
code | country | |
---|---|---|
1 | United States | |
20 | Egypt | |
27 | South Africa | |
30 | Greece | |
31 | Netherlands | |
32 | Belgium | |
33 | France | |
34 | Spain | |
36 | Hungary |
NewerOlder