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/python | |
import json | |
import sys | |
# take json from stdin, from source such as https://ip-ranges.amazonaws.com/ip-ranges.json | |
# and turn it into an AWS security group using Ansible | |
region = 'eu-west-1' | |
header_str = """--- | |
- hosts: 127.0.0.1 |
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 | |
# /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh | |
# chmod +x /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh | |
curl -L https://gist.github.com/tommeier/6255771/raw/update_plex_connect.sh | bash & |
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
## BEGIN: Template (rendered on serverside) ### | |
<div id="wrap_page_view"> | |
<h1>Title</h1> | |
<p> | |
Description: lorem foobar... | |
</p> | |
</div> | |
<script type="text/javascript"> |
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 | |
// FormHandler class which checks user input and does some preformatting. It is called by the DataHandler class. | |
class FormHandler { | |
// Function to performat and check user inputs | |
public function preProcessor($stringField, $stringValue, $trim, $stripTags, $removeAllWhitespaces, $required, $email, $minLength, $maxLength, $minValue, $maxValue, $alphaOnly, $numericOnly, $alphaAndNumericOnly) { | |