Title pretty much sums it up. I wanted it to support drag and drop as well, which is why the .droparea
is positioned absolutely; It's below the input field and the field itself gets its opacity set to 0, for better UX experience.
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 | |
# | |
# Update Pihole's custom.list based on the "hostname" property of a container. | |
# | |
# Environment variables | |
# - OVERRIDE_IP sets the IP of the container in Pihole's DNS records. Defaults to container IP in Docker network. | |
# - DOMAIN_FILTER only triggers the updates on a match. If empty, it'll always update the records file. | |
# - PIHOLE_CUSTOM_LIST_FILE /etc/hosts compatible DNS records file in format "IP hostname". | |
# - PIHOLE_CONTAINER_NAME because we need to reload Pihole's internal resolver when making changes | |
# |
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 bash | |
# Messaging script for pushover.net (make sure you have an account) | |
# put this somewhere in your $PATH and make it executable | |
if [ $# -eq 0 ]; then | |
echo "Usage: pushover <title> <message>" | |
echo "Example: $ pushover \"This is the title\" \"This is a nice message\"" | |
exit | |
fi |
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: Endpoints | |
apiVersion: v1 | |
metadata: | |
name: glusterfs | |
subsets: | |
- addresses: | |
# Change the following to match your GlusterFS instance IPs | |
- ip: 10.132.0.5 | |
- ip: 10.132.0.6 | |
ports: |
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 superagent from 'superagent'; | |
import { merge } from 'lodash'; | |
import { camelizeKeys, decamelizeKeys } from 'humps'; | |
import config from 'config'; | |
const CALL_API = Symbol.for('Call API'); | |
export const GENERIC_ERROR = 'GENERIC_ERROR'; | |
const genericErrors = { | |
400: 'You\'ve attempted to make a request the server didn\'t expect', |
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
# description: An xinetd service to show PSQL status | |
# put this file into /etc/xinetd.d | |
service postgrescheck | |
{ | |
type = UNLISTED | |
flags = REUSE | |
wait = no | |
disable = no | |
socket_type = stream | |
protocol = tcp |
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: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
labels: | |
name: etcd | |
name: etcd | |
spec: | |
template: | |
metadata: | |
labels: |
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 python | |
import os | |
import sys | |
from jinja2 import Environment, FileSystemLoader | |
def set_environment(template_dir): | |
env = Environment(loader=FileSystemLoader(template_dir), trim_blocks=True) | |
env.globals['env_var'] = lambda varname, default='': os.getenv(varname, default) | |
env.globals['exists'] = lambda varname: varname in os.environ |
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 superagent from 'superagent'; | |
import merge from 'lodash/merge'; | |
import { camelizeKeys, decamelizeKeys } from 'humps'; | |
import config from 'config'; | |
const CALL_API = Symbol.for('Call API'); | |
/** | |
* Prepare headers for each request and include the token for authentication. | |
* @param {Boolean} token Authentication token |
NewerOlder