cat client-key.pem <(echo) client-cert.pem <(echo) server-ca.pem > postico.pem
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
iptables -A OUTPUT -d 127.0.0.0/8 -j ACCEPT | |
iptables -A OUTPUT --dst redis -j ACCEPT | |
iptables -A OUTPUT --dst postgres -j ACCEPT | |
iptables -P OUTPUT DROP | |
iptables -L |
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
FROM debian:stretch | |
RUN apt-get update && \ | |
apt-get install -y \ | |
git \ | |
build-essential \ | |
python3 \ | |
python3-pip \ | |
pkg-config \ | |
libsystemd-dev \ |
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
2017-11-22T16:57:07.259-0800 [DEBUGgoogle_bigquery_table.csp_reports: Importing from ID "reports"... | |
google_bigquery_table.csp_reports: Import complete! | |
] plugin.terraform-provider-google_v1.2.0_x4: 2017/11/22 16:57:07 [INFO] Instantiating Google Cloud Dataproc Client... | |
2017/11/22 16:57:07 [TRACE] root: eval: *terraform.EvalSequence | |
Imported google_bigquery_table (ID: reports) | |
google_bigquery_table.csp_reports: Refreshing state... (ID: reports) | |
2017-11-22T16:57:07.261-0800 [DEBUG] plugin.terraform-provider-google_v1.2.0_x4: 2017/11/22 16:57:07 [INFO] Reading BigQuery table: reports | |
2017-11-22T16:57:07.264-0800 [DEBUG] plugin.terraform-provider-google_v1.2.0_x4: panic: runtime error: index out of range | |
2017-11-22T16:57:07.264-0800 [DEBUG] plugin.terraform-provider-google_v1.2.0_x4: | |
2017-11-22T16:57:07.264-0800 [DEBUG] plugin.terraform-provider-google_v1.2.0_x4: goroutine 51 [running]: |
- Format SD card FAT32
- Download and copy files from https://www.raspberrypi.org/documentation/installation/noobs.md to SD card
- Plug Raspberry into TV with HDMI, and Ethernet cable to router, use Keyboard/Mouse to install.
- Run
passwd
to change the default password combination (pi:rasbperry) - Finish configuration with
sudo raspi-config
:- Update
- Hostname
- Advanced Options > Overscan > Disable
- Interfacing Options > SSH > Enable
- Connect to Wifi
DOMAIN=example.com
openssl req -new -newkey rsa:2048 -nodes -keyout $DOMAIN.key -out $DOMAIN.csr
cat STAR_$DOMAIN.crt COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt > $DOMAIN.crt
openssl rsa -in $DOMAIN.key -text > $DOMAIN.pem
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
SELECT * FROM pg_stat_activity WHERE client_port = -1; | |
SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE client_port = -1; |
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
# http://peter.sh/experiments/chromium-command-line-switches/ | |
mkdir -p /tmp/t1 | |
open -na "Google Chrome" --args --user-data-dir=/tmp/t1 --remote-debugging-port=9222 | |
# protip: press cmd+h to hide window |
I hereby claim:
- I am mattes on github.
- I am mattes (https://keybase.io/mattes) on keybase.
- I have a public key ASC9U3hHQp2jiyutO3gmcTFwJD0Eig5yekL1bwSeRuwTtQo
To claim this, I am signing this object:
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
nohup command </dev/null >/dev/null 2>&1 & |