Skip to content

Instantly share code, notes, and snippets.

@chrisob
chrisob / debug.log
Created February 7, 2020 18:56
GCP TF 400 error
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: ---[ REQUEST ]---------------------------------------
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: POST /v1beta1/projects/REDACTED/locations/europe-west3/clusters/my-cluster:setResourceLabels?alt=json&prettyPrint=false HTTP/1.1
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Host: container.googleapis.com
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: User-Agent: google-api-go-client/0.5 HashiCorp Terraform/0.12.20 (+https://www.terraform.io) Terraform Plugin SDK/1.4.0 terraform-provider-google/3.7.0
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Content-Length: 33
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: Content-Type: application/json
2020-02-07T19:50:38.439+0100 [DEBUG] plugin.terraform-provider-google_v3.7.0_x5: X-Goog-Api-Client: gl-go/1.13.0 gdcl/2019
@chrisob
chrisob / hostapd.conf
Last active February 6, 2017 09:57
Automated secure layer 3 tunnel bridge with local wlan access point
interface=wlan0
driver=rtl871xdrv
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
@chrisob
chrisob / reverse-tether.sh
Last active January 22, 2024 12:26
Android reverse tethering over bridged SSH tap interface
#!/bin/bash
# Based on the scripts written by class101 of xda-developers.com:
# http://forum.xda-developers.com/showpost.php?p=57490025&postcount=205
#
# This script enables a secure tunnel for your android phone to "reverse tether"
# and access the internet/a private network via the following steps:
#
# 1. Establish a level 3 (TAP) tunnel from your local host to a remote server via SSH (tap0)
# 2. Establish a level 3 interface between your local host and your android phone via USB (usb0)