Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.
####1. anchor file
Create an anchor file under /etc/pf.anchors/<anchor file> with your redirection rule like:
| #!/bin/bash | |
| VAULT_DIR="secrets" | |
| EXIT_CODE=0 | |
| for file in $(git diff --cached --name-only | grep "^$VAULT_DIR/"); do | |
| if [ ! -f "$file" ]; then | |
| echo "Warning: $file does not exist. Skipping." | |
| continue | |
| fi |
| #!/usr/bin/env bash | |
| # Install UniFi Controller Software v7.x on Ubuntu 22.04 (Jammy) | |
| # | |
| # - https://help.ui.com/hc/en-us/articles/360012282453 | |
| # - https://help.ui.com/hc/en-us/articles/220066768-UniFi-How-to-Install-and-Update-via-APT-on-Debian-or-Ubuntu | |
| # - https://help.ui.com/hc/en-us/articles/360006634094-UniFi-Repairing-Database-Issues-on-the-UniFi-Network-Application | |
| # | |
| # lxc init -p default -p br0 images:ubuntu/22.04 unifi-controller | |
| # lxc init -p default images:ubuntu/22.04 unifi-controller |
| /* | |
| Taken and cribbed from blog.datalicious.com/free-download-all-australian-postcodes-geocod | |
| May contain errors where latitude and longitude are off. Use at own non-validated risk. | |
| */ | |
| SET NAMES utf8; | |
| SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
| DROP TABLE IF EXISTS postcodes_geo; |
A summary of the Rails Guides on Routes, plus other tips.
The Rails router recognizes URLs and dispatches them to a controller's action. It can also generate paths and URLs, avoiding the need to hardcode strings in your views.
Examples
# Redirects /orders/report to orders#report.
get 'orders/report', to: 'orders#report'| # 1) Create your private key (any password will do, we remove it below) | |
| $ cd ~/.ssh | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |
| /** | |
| * Move Category Post Counts Inside Link | |
| * | |
| * filters wp_list_categories() | |
| * | |
| * @param string $links link html output | |
| * @return string | |
| */ | |
| function prefix_move_category_count( $links ) { |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.