View maintenance
#!/bin/bash | |
# Icinga2 Maintenance mode / Downtime | |
# | |
# https://icinga.com/docs/icinga2/latest/doc/12-icinga2-api/#icinga2-api-actions | |
# Program details | |
PROGNAME=$(basename $0) | |
RELEASE="Revision 1.0.0" | |
AUTHOR="(c) 2020 Paul Bargewell (paul.bargewell@opusvl.com)" |
View template.sh
#!/bin/bash | |
EXAMPLE="example default" | |
# Plugin variable description | |
PROGNAME=$(basename $0) | |
RELEASE="Revision 1.0.0" | |
AUTHOR="(c) 2020 Warlord0" | |
# Functions plugin usage |
View entry.sh
#!/usr/bin/env bash | |
set -e | |
[ "$DEBUG" == 'true' ] && set -x | |
DAEMON=sshd | |
echo "> Starting SSHD" |
View 00-nuxtjs.conf
map_hash_max_size 262144; | |
map_hash_bucket_size 262144; | |
map $sent_http_content_type $expires { | |
"text/html" epoch; | |
"text/html; charset=utf-8" epoch; | |
default off; | |
} | |
server { |
View FireSyncObserver.php
<?php | |
/** | |
* FireSync Observer | |
* | |
* Watch for changes and replicate them to the Firebase database | |
* | |
* PHP Version 7.1 | |
* | |
* @category Observer | |
* @package Firebase |
View esriFunctions.js
import { | |
loadScript, | |
loadModules | |
} from 'esri-loader' | |
// preload the ArcGIS API | |
const options = { | |
url: '//js.arcgis.com/3.27/', | |
} |
View config.xml
<config control-bind="127.0.0.1:8059" version="1.0"> | |
<!-- see example-config.xml and config.xsd for more documentation --> | |
<web-server context="/crucible" site-url="https://jira.domain.local/crucible"> | |
<http bind=":8060" proxy-host="jira.domain.local" proxy-port="443" proxy-scheme="https"/> | |
</web-server> | |
<security allow-anon="true" allow-cru-anon="true"/> | |
<repository-defaults> | |
<linker/> | |
<allow/> | |
<tarball enabled="false" maxFileCount="0"/> |
View .babelrc
{ | |
"presets":[ | |
"@babel/preset-env", "@babel/preset-react" | |
] | |
} |
View WSDLController.php
<?php | |
namespace App\Http\Controllers\Lagan; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
// We need Guzzle for the POST requests | |
use GuzzleHttp\Exception\GuzzleException; | |
use GuzzleHttp\Client; |
View WSDLController.php
<?php | |
namespace App\Http\Controllers\Lagan; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
// We need Guzzle for the POST requests | |
use GuzzleHttp\Exception\GuzzleException; | |
use GuzzleHttp\Client; |
NewerOlder