- When specifying IPv6 Address w/ port, use this format:
[2001:db8:0:10::1]:80
- /64 is standard IPv6 subnet mask (but providers generally use /48)
- Important IPv6 Addresses:
- ::1/128 => localhost (equivalent to 127.0.0.1/8)
This file contains hidden or 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 ruby | |
# | |
# THOR template | |
$PROG = File.basename($PROGRAM_NAME) | |
$DIR = File.dirname($PROGRAM_NAME) | |
# Possibly modify the LOAD_PATH | |
# $LOAD_PATH << File.join(__dir__, '..', 'lib/migrations') |
This file contains hidden or 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
**** RHCSA NOTE **** | |
==== Basic access | |
ssh-keygen | |
ssh-copy-id <servername> | |
==== Diagnostic Information | |
sosreport |
This file contains hidden or 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
# basic pfctl control | |
# == | |
# Related: http://www.OpenBSD.org | |
# Last update: Tue Dec 28, 2004 | |
# == | |
# Note: | |
# this document is only provided as a basic overview | |
# for some common pfctl commands and is by no means | |
# a replacement for the pfctl and pf manual pages. |
This file contains hidden or 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
Notes from my mastodon test instance config. | |
Assumptions: you own some domain-name and its pointing to the ip of this instance. I'm calling it my.domain | |
This may or may not work for you. I've moved notes around so things might break. | |
I'm basically just doing config as described here: | |
https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Production-guide.md | |
# Start: I'm creating the machine on DigitalOcean. | |
# You can probably skip this part ( 9.) | |
### DigitalOcean guest creation ### | |
1.#create digitalocean host. 10$ (non-zfs freebsd host) i did this on a 5$ but upgraded later. |
The goal of this cheatsheet is to make it easy to add hand-rolled authentication to any rails app in a series of layers.
First the simplest/core layers, then optional layers depending on which features/functionality you want.
Specs |
|
---|---|
AUTHOR | Ira Herman |
LANGUAGE/STACK | Ruby on Rails Version 4, 5, or 6 |
====================
- SSH
- ssh-keygen => create public + private key pair
- ssh-copy-id => easy way to copy key to correct location in remote system
- I.E. 'ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]'
- ssh-agent => prevents you from having to re-enter a password protected key multiple times
- ssh-add => adds private key identities to the authentication agent
This file contains hidden or 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 | |
url='http://pgl.yoyo.org/as/serverlist.php?hostformat=nohtml' | |
ftp -o - "$url" | awk '{printf "local-zone: \"%s.\" static\n", $1}' > /var/unbound/etc/blacklist.conf.new || exit $? | |
mv /var/unbound/etc/blacklist.conf.new /var/unbound/etc/blacklist.conf | |
rcctl reload unbound |