Skip to content

Instantly share code, notes, and snippets.

View stevehenderson's full-sized avatar

Steve Henderson stevehenderson

View GitHub Profile
@stevehenderson
stevehenderson / list_all_bigquery_jobs.md
Created February 9, 2023 17:40 — forked from polleyg/list_all_bigquery_jobs.md
List BigQuery jobs from all users

Sometimes you need to troubleshoot and inspect the details of jobs (load, query etc.) in BigQuery. Inspecting the job history in the BigQuery web UI will only show the jobs that you have run. This is also true when you run run bq ls -j on the command line.

But, what if you need to get all jobs that have been run? An example would be auotmated jobs run by service accounts. A quick tip is to use the --all flag:

-a,--[no]all: Show all results. For jobs, will show jobs from all users. For datasets, will list hidden datasets. For transfer configs and runs, this flag is redundant and not necessary.

bq ls -j --all

(this tip originated from a question on Stack Overflow: https://stackoverflow.com/questions/47583485/bigquery-history-of-jobs-submitted-through-python-api)

@stevehenderson
stevehenderson / revprox.go
Created March 11, 2022 15:22 — forked from JalfResi/revprox.go
Simple reverse proxy in Go
package main
import(
"log"
"net/url"
"net/http"
"net/http/httputil"
)
func main() {
@stevehenderson
stevehenderson / drive-format-ubuntu.md
Created January 1, 2022 04:23 — forked from keithmorris/drive-format-ubuntu.md
Partition, format, and mount a drive on Ubuntu
@stevehenderson
stevehenderson / HOWTO.txt
Created October 5, 2019 19:29 — forked from mcm/HOWTO.txt
Use daemonlogger + VXLAN to create "software span"
**Only really tested on Ubuntu 16.04**
Requirements:
* Two Linux systems (one to send traffic, one to receive)
* Network connectivity over UDP 4789
Sender Setup
* Install daemonlogger (sudo apt install daemonlogger)
* Save systemd service config as /etc/systemd/system/daemonlogger@.service (replace X.X.X.X with IP of receiver)
* Reload systemd (sudo systemctl daemon-reload)
@stevehenderson
stevehenderson / index.html
Created July 25, 2015 03:44 — forked from anonymous/index.html
JS Bin basic paygrade // source http://jsbin.com/dopiva
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="basic paygrade">
<script src="https://code.jquery.com/jquery-1.6.4.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<script>
var myArr = $.parseJSON('["E1","E2","E3","E4","E5","E6","E7","E8","E9","E10","O1","O2","O3","O4","O5","O6","O7","O8","O9","O10","O1E","O2E","O3E","W1","W2","W3","W4","W5"]');
console.log(myArr[0])
@stevehenderson
stevehenderson / hero4.md
Last active August 29, 2015 14:18 — forked from KonradIT/hero4.md

#GoPro HERO4 (A tale of firmware leaks and marketing)

Written by /u/konrad-iturbe (Konrad Iturbe) and with help of /u/OverByThere's leaked firmware.


The GoPro HERO4 Black Adventure edition is 4x times more powerful than ever.

HERO4 cameras:

  • HERO4 Black (BANZAI)