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 | |
# The following script parses podcast feeds and downloads all podcast episodes listed in | |
# the feed if they don't exist within the target path. The target directory will be created | |
# if it does not exist. | |
[ -x "$(command -v wget)" ] || (echo "wget is not installed" && exit 1) | |
[ -x "$(command -v sed)" ] || (echo "sed is not installed" && exit 1) | |
[ -x "$(command -v xargs)" ] || (echo "xargs is not installed" && exit 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 | |
# | |
# PROVIDE: caddy | |
# REQUIRE: networking | |
# KEYWORD: shutdown | |
# | |
# Add the following lines to /etc/rc.conf to enable caddy: | |
# caddy_enable (bool): Set to "NO" by default. | |
# Set it to "YES" to enable caddy |
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
owncloud.dev.local:80 { | |
root /usr/local/www/owncloud/ | |
fastcgi / 127.0.0.1:9000 php | |
rewrite { | |
regexp /index.php/.* | |
to /index.php?{query} | |
} | |
log /usr/local/www/owncloud.log |
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 | |
# | |
# zfs-backup.sh | |
# | |
# Simple backup script utilizing rsync and ZFS snapshots. | |
# | |
# rsync must be installed both on the server and the client. | |
# ssh must be installed on the client. | |
# bash must be installed on the server. |
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 | |
# Homebrew requires Xcode CLI tools to be installed. OS X provides stubs for CLI tools | |
# that trigger the CLI tools installer when called. So we call `git` to start the installation. | |
git | |
echo "Press any key when Xcode CLI tools installation is complete..." | |
read | |
# Install Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
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 | |
# | |
# PROVIDE: gogs | |
# REQUIRE: networking syslog | |
# KEYWORD: | |
. /etc/rc.subr | |
name="gogs" | |
rcvar="gogs_enable" |
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 | |
// / ----------------------------------------------------------------------------------- | |
// / The follwoing code checks for required core files and terminates if they are missing. | |
if (!file_exists(realpath(dirname(__FILE__)).'/securityCore.php')) die ('<body>ERROR!!! HRC2AppCore21, Cannot process the HRCloud2 Security Core file (securityCore.php).'.PHP_EOL.'</body></html>'); | |
else require_once (realpath(dirname(__FILE__)).'/securityCore.php'); | |
// / ----------------------------------------------------------------------------------- | |
// / ----------------------------------------------------------------------------------- | |
// / The following code sets the global variables for the session. | |
$AppDir = $InstLoc.'/Applications/'; |