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 | |
# Configuration Variables | |
threshold=300 # 5 minutes in seconds.. anything below that means user connected, anything above means disconnected. | |
connection_info_file=/var/log/wireguard/connected_clients.info | |
log_file=/var/log/wireguard/wireguard.log | |
slack_notify=yes | |
SLACK_CHANNEL="#channel" | |
SLACK_USERNAME="WireGuard" | |
SLACK_WEBHOOK_URL="https://hooks.slack.com/services/api_token" |
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
tell application "System Events" | |
delay 2 | |
keystroke (the clipboard as text) | |
end tell |
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
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: dantest | |
labels: &Labels | |
app: dantest | |
spec: | |
replicas: 1 | |
selector: |
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
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: traefik-ingress-controller | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
- services |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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/sh | |
# upgrade_unifi.sh | |
# Easy UniFi Controller Upgrade Script for Unix/Linux Systems | |
# by Steve Jenkins (stevejenkins.com) | |
# Version 2.0 | |
# Last Updated July 2, 2016 | |
# REQUIREMENTS | |
# 1) Assumes you already have any version of UniFi Controller installed |
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 | |
clear | |
echo "============================================" | |
echo "WordPress Install Script" | |
echo "============================================" | |
echo "Do you need to setup new MySQL database? (y/n)" | |
read -e setupmysql | |
if [ "$setupmysql" == y ] ; then | |
echo "MySQL Admin User: " | |
read -e mysqluser |
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
foreach (dirname((__FILE__)) as $filename) { | |
$path = plugin_dir_pathdirname(dirname(__FILE__)) . 'includes/partials/' . $filename; | |
if (is_file($path)) { | |
require $path; | |
} | |
} |
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
<?php | |
//* Custom Gravatar | |
function be_custom_avatar_field( $user ) { ?> | |
<h3>Custom Avatar</h3> | |
<table> | |
<tr> | |
<th><label for="be_custom_avatar">Custom Avatar URL:</label></th> | |
<td> |
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
backend default { | |
.host = "public-IP"; | |
.port = "port-number"; | |
} | |
acl purge { "localhost"; "127.0.0.1"; "public-IP";} | |
sub vcl_recv { |