Install auditing on a per-table basis, e.g.:
SELECT audit.audit_table('billing.subscriptions'),
audit.audit_table('billing.customers'),
audit.audit_table('billing.plans');
rubocop | egrep ' (W|C): ' | cut -d ' ' -f 3 | sort -u | sed 's/:$//' | while read cop; do | |
git checkout . | |
rubocop -a --only "$cop"; | |
if [[ $(git diff --stat) != '' ]]; then | |
git add --all | |
git commit -m "fix rubocop cop $cop" | |
fi | |
done |
Install auditing on a per-table basis, e.g.:
SELECT audit.audit_table('billing.subscriptions'),
audit.audit_table('billing.customers'),
audit.audit_table('billing.plans');
class GoInteractive | |
def self.start(*args, **kwargs) | |
@init ||= begin | |
Pry.hooks.add_hook(:before_eval, "go_interactive") do |code, pry| | |
current.before_eval(code, pry) | |
end | |
Pry.hooks.add_hook(:after_eval, "go_interactive") do |result, pry| | |
current.after_eval(result, pry) | |
end |
This is a quick explanation of how to configure both ZeroTier and two Ubiquiti UniFi USGs to allow routing between two IPv4 networks. Both networks are in private (RFC1918) address space and each one has its own DHCP service. There is no need for NAT between them, only IP routing.
The two networks are 192.168.1.0/24
(call this the "left" network) and 192.168.10.0/24
(the "right" network) but they can be anything. Also, you can have multiple CIDR blocks on one side or the other of the ZeroTier route; if you do, you just have to create more routing table entries.
Recent release of Chrome will add a nice 'Copy' button next to the console output.
waitseconds
can be adjusted if nessessary to ensure all play history gets loaded.
You can locally pull data from your Rainforest Eagle-200 using cURL.
Rainforest has published a local API document which explains the details of the protocol. But this particular document is about quickly getting to the point and giving you some cURL commands you can use to immediately start pulling out data.
First, I'll assume that you have the following environment variables set:
Use a Raspberry Pi as a bridge into my home LAN. The pi is plugged into a switch, which is plugged into an airport express, which is plugged into a cable modem; Nothing fancy.
This isn't a tutorial. Just some example output from a working setup.
off the top of my head, here's the order I would do it in:
The laptop works well on Archlinux. A few notes based on the installation guide for the previous version.
Per the Arch wiki, more power can be saved by creating /etc/modprobe.d/i915.conf
with the following content:
options i915 modeset=1 enable_rc6=1 enable_fbc=1 enable_guc_loading=1 enable_guc_submission=1 enable_psr=1
#!/usr/bin/env bash | |
exec > >(tee /var/log/prepare-instance.log|logger -t prepare-instance -s 2>/dev/console) 2>&1 | |
set -e | |
AZ=$(curl --show-error --silent http://169.254.169.254/latest/meta-data/placement/availability-zone) | |
ID=$(curl --show-error --silent http://169.254.169.254/latest/meta-data/instance-id) | |
REGION=$(printf "%s" "$AZ" | sed 's/.$//') | |
set_instance_health() { |
version: '3.3' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
networks: | |
- myvlan |