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 | |
# Set envioroment, for cloud-init | |
set -e | |
export DEBIAN_FRONTEND=noninteractive | |
export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin' | |
export HOME='/root' | |
# upon launch wait for internet connection | |
echo "Waiting for network connection." |
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
const fs = require('fs') | |
const WebSocket = require('ws'); | |
const wsoptions = { | |
cert: fs.readFileSync('../../.config/lxc/client.crt'), | |
key: fs.readFileSync('../../.config/lxc/client.key'), | |
rejectUnauthorized: false | |
} | |
var ws = new WebSocket('wss://127.0.0.1:8443/1.0/events?type=operation', wsoptions); |
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 | |
/** | |
* .htaccess writer CRUD class | |
* | |
* @author Lawrence Cherone | |
* @version 1.00 | |
*/ | |
class htaccessCRUD | |
{ | |
public $file; |
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 | |
date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php | |
/** | |
* The root directory where the repos live. | |
* | |
* @var string | |
*/ | |
$root_dir = '/your/root/dir/'; |