These derived columns are intended to be used alongside Honeytail to make it easier to visualize and understand your log data in Honeycomb.
Makes it easy to visualize errors using Honeycomb's default dashboards
IF(LTE($severity, 3), $message, "")
format = """ | |
[\uE0B6](fg:#1C4961)[$directory](bg:#1C4961)[\uE0B0](fg:#1C4961 bg:#2F79A1)$git_branch[\uE0B0](fg:#2F79A1 bg:#3A95C7)$git_status[\uE0B0](#3A95C7 bg:#40A9E0)$time[\uE0B0](#40A9E0 bg:none) $all$character """ | |
add_newline = true | |
[directory] | |
style = "bg:#1C4961 fg:white" | |
[git_branch] | |
format = "[ $symbol$branch ]($style)" |
Deploy an Azure VM to help Folding@Home
This is an Azure VM template which deploys a GPU-enabled VM of your choice to help the
Folding@Home project find ways to combat COVID-19. It is
expected that the default VM (Standard_NC6_Promo
) will cost about $350 per month to run
(depending on your choice of region etc) which means that on the stock Azure trial benefit
you should be able to get about 2 weeks of runtime before running out of free credits.
function getRandomDocument(filterQuery){ | |
var collection = getContext().getCollection(); | |
var result = null; | |
var count = 0; | |
var pageSize = 50; | |
function query(responseOptions) { | |
return (filterQuery && filterQuery.length) ? | |
collection.queryDocuments(collection.getSelfLink(), filterQuery, responseOptions, onReadDocuments) : | |
collection.readDocuments(collection.getSelfLink(), responseOptions, onReadDocuments); |
To setup your PowerShell to match mine, simply run the following commands:
# You may need to run this in an administrative PowerShell instance
Set-ExecutionPolicy Unrestricted
$SetupScript = Invoke-WebRequest https://gist.githubusercontent.com/notheotherben/77ccb460948afd826365e85d226509a7/raw/setup.ps1
$ScriptBlock = [ScriptBlock]::Create($SetupScript.Content)
Invoke-Command -ScriptBlock $ScriptBlock
This set of launch.json
and task.json
files allow you to build and debug individual C files from within Windows
while using the gcc
collection installed within your WSL environment.
sudo apt-get update
sudo apt-get install -y gcc gdb
This grammar allows you to parse command lines for program execution into their various components - specifically: environment variables, the executable itself and any arguments passed to the executable.
It will take an input like the following:
ENV_X=true ENV_Y="yes please" ./test/my_exec arg1 -f1 "arg with spaces" 'another arg' --flag2 yet\ another\ arg --flag=10
This script is intended to automatically fix the sequence numbers for all tables in the current database.
This is accomplished through the use of the setval()
command, which we provide with the next ID value we wish to make use of.
We use the setval(sequence, number, is_called)
overload
and set is_called = false
in conjunction with COALESCE(MAX + 1, 1)
to ensure that, with an empty table, the next sequence
value is 1
as expected.
I hereby claim:
To claim this, I am signing this object: