whoami
gcloud-whoami ()
{
gcloud auth list --filter=status:ACTIVE --format="value(account)"
}
what account/project/zone etc
gcloud-get-user () {
whoami
gcloud-whoami ()
{
gcloud auth list --filter=status:ACTIVE --format="value(account)"
}
what account/project/zone etc
gcloud-get-user () {
-- original at https://gist.github.com/DavidWittman/2317570 | |
description = [[ | |
Issues an arbitrary HTTP GET request | |
]] | |
--- | |
-- @usage | |
-- nmap --script http-get [--script-args http-get.path=/status] -p <port> <host> | |
-- @args http-get.path The path to request (defaults to /) |
#if 0 // 2>NUL & GOTO :startbatch | |
COMPILER_OPTIONS="-g -Wall -Wextra --std=c99 -O1";THIS_FILE="$(cd "$(dirname "$0")"; pwd -P)/$(basename "$0")";OUT_FILE="/tmp/build-cache/$THIS_FILE";mkdir -p "$(dirname "$OUT_FILE")";test "$THIS_FILE" -ot "$OUT_FILE" || $(which clang || which gcc) $COMPILER_OPTIONS -xc "$THIS_FILE" -o "$OUT_FILE" || exit;exec "$OUT_FILE" "$@" | |
:startbatch | |
@echo off | |
setlocal enableextensions enabledelayedexpansion | |
md %TEMP%%~p0 2>NUL | |
rem Use xcopy to test if this file is newer than the cached executable. | |
for /f %%i in ('xcopy %0 %TEMP%%~pnx0.exe /D /Y /Q') do set copied=%%i | |
if "%copied:~0,1%" neq "0" ( | |
rem Search for Visual Studio env vars. These are set globally if VS <2017 is installed. |
// ==UserScript== | |
// @name Jenkins Pipeline - Link to Console | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://bc-jenkins.ci.digital.homeoffice.gov.uk/*job/*/console* | |
// @grant none | |
// ==/UserScript== |
#!/bin/bash | |
set -euo pipefail | |
OUTFILE=/tmp/fastest-sources.list | |
ARCHITECTURES=$(printf "$( | |
dpkg --print-architecture | |
dpkg --print-foreign-architectures | |
)") | |
NS_ARCH_OPTIONS=$(echo "${ARCHITECTURES}" | sed -E 's#(.*)#--arch \1#' | tr '\n' ' ') |
I hereby claim:
To claim this, I am signing this object:
Why Should I Care (For Developers)
"Docker interests me because it allows simple environment isolation and repeatability. I can create a run-time environment once, package it up, then run it again on any other machine. Furthermore, everything that runs in that environment is isolated from the underlying host (much like a virtual machine). And best of all, everything is fast and simple."
# This is a Wordpress-optimised VCL configuration file for varnish. | |
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
.connect_timeout = 600s; | |
.first_byte_timeout = 600s; | |
.between_bytes_timeout = 600s; | |
.max_connections = 800; | |
} |