Moved to https://github.com/Xaero252/unraid-plex-nvdec/tree/master
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 | |
# Necessario configurar no /etc/crontab a seguinte linha: | |
# | |
# */30 * * * * zabbix /etc/zabbix/scripts/dnsbl.sh | |
# | |
########################################################## | |
# Debug | |
#set -x |
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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
// Following code is a modified version of that found at https://blog.cloudflare.com/dronedeploy-and-cloudflare-workers/ | |
/** | |
* Fetch and log a request | |
* @param {Request} request | |
*/ |
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
version: '3' | |
services: | |
app: | |
image: nginx:alpine | |
ports: ["80:80"] | |
restart: unless-stopped | |
restarter: | |
image: docker:cli | |
volumes: ["/var/run/docker.sock:/var/run/docker.sock"] |
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 | |
# Put commands to run in target after install here |
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
{{-- | |
This makes a great "partial" to add to your template layout file. It will self manage your | |
notifications so you do not need to worry about displaying them. Simply just add notifications | |
using LaraFlash (Laravel Package) in your controllers, and they will display intelligently | |
and elegantly into your views. | |
Simply use an @include statement in your main template/layout file to this partial so that | |
this partial is included with every view. The rest can be set once and forgotten. | |
Requirements: |
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
FROM php:7.1.11-apache-jessie | |
RUN set -e; \ | |
BUILD_PACKAGES="libzip-dev libssh2-1-dev unixodbc-dev"; \ | |
a2enmod headers proxy proxy_http ssl rewrite; \ | |
apt-get update; \ | |
apt-get install -y $BUILD_PACKAGES; \ | |
set +e; \ | |
docker-php-ext-install odbc; \ | |
set -e; \ | |
cd /usr/src/php/ext/odbc; \ |
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
- hosts: "*" | |
become: True | |
serial: 1 | |
tasks: | |
- name: Initiate graceful shutdown | |
shell: "nodetool {{item}} && sleep 5" | |
with_items: | |
- disablethrift | |
- disablebinary | |
- disablegossip |
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 | |
if (!function_exists('timezoneArray')) { | |
/** | |
* description | |
* | |
* @param | |
* @return | |
*/ |
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
// Creates a new promise that automatically resolves after some timeout: | |
Promise.delay = function (time) { | |
return new Promise((resolve, reject) => { | |
setTimeout(resolve, time) | |
}) | |
} | |
// Throttle this promise to resolve no faster than the specified time: | |
Promise.prototype.takeAtLeast = function (time) { | |
return new Promise((resolve, reject) => { |