I hereby claim:
- I am notheotherben on github.
- I am spartan563 (https://keybase.io/spartan563) on keybase.
- I have a public key whose fingerprint is 8C4F FBEC 8CE2 C93F E838 DE7D B808 C16A 3F74 B2C4
To claim this, I am signing this object:
var request = require('superagent'), | |
fs = require('fs'), | |
_ = require('lodash'); | |
var config = require('./config.json'); | |
var status = require('./status.json'); | |
_.each(config.areas, function(area) { | |
request.get('/api/' + area.code + '/' + var2).end(function(err, data) { | |
if(err) throw err; |
#! /usr/bin/env bash | |
echo "Sierra Softworks Certificate Request Script" | |
echo "v1.0.0-beta" | |
KEY_NAME=$1 | |
EDITOR=$2 | |
################################################# | |
################### IMPORTANT! ################## | |
################################################# | |
# These defaults are the StartSSL CA certificates |
I hereby claim:
To claim this, I am signing this object:
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.
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 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
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
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); |
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.