Skip to content

Instantly share code, notes, and snippets.

Matthias Kadenbach mattes

Block or report user

Report or block mattes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:06d40238ea65070d565c0eb054c32836
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]:
View postico.md
cat client-key.pem <(echo) client-cert.pem <(echo) server-ca.pem > postico.pem
@mattes
mattes / readme.md
Last active Nov 14, 2017
raspberry pi kiosk mode
View readme.md
  1. Format SD card FAT32
  2. Download and copy files from https://www.raspberrypi.org/documentation/installation/noobs.md to SD card
  3. Plug Raspberry into TV with HDMI, and Ethernet cable to router, use Keyboard/Mouse to install.
  4. Run passwd to change the default password combination (pi:rasbperry)
  5. Finish configuration with sudo raspi-config:
    • Update
    • Hostname
    • Advanced Options > Overscan > Disable
    • Interfacing Options > SSH > Enable
  6. Connect to Wifi
View gist:760133261d7367e2be7d238f72550259
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

Ref: https://gist.github.com/bradmontgomery/6487319

View gist:f2c1f821a59d65b5c5095963707c4963
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;
@mattes
mattes / gist:40b5fac8231ca567e94416e7c88d2c10
Last active May 21, 2017
Multiple Google Chrome instances on MacOS
View gist:40b5fac8231ca567e94416e7c88d2c10
# 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
View keybase.md

Keybase proof

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:

View inotifywait.sh
# apt-get install inotify-tools
# watch 'go test .'
watch() { while inotifywait --exclude .git -r -qq .; sleep 1; do $@; done }
View gist:ffc60821bc7b1715b63dd67fbe6f9a57
while true; do echo -e "HTTP/1.1 200 OK\n\n" | sudo nc -l -p 80 -q 1; done
You can’t perform that action at this time.