Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340
Old Monterey docs in this old revision: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd/32c410e3a1de73539c76fa13ea5486569c4e0c5d
Solution for Sonoma: https://gist.github.com/sghiassy/a3927405cf4ffe81242f4ecb01c382ac
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"vmName": { | |
"defaultValue": "parsec-azure", | |
"type": "string" | |
}, | |
"userName": { | |
"defaultValue": "parsec", |
SELECT | |
now()-pg_postmaster_start_time() "Uptime", now()-stats_reset "Since stats reset", | |
round(100.0*checkpoints_req/total_checkpoints,1) "Forced checkpoint ratio (%)", | |
round(np.min_since_reset/total_checkpoints,2) "Minutes between checkpoints", | |
round(checkpoint_write_time::numeric/(total_checkpoints*1000),2) "Average write time per checkpoint (s)", | |
round(checkpoint_sync_time::numeric/(total_checkpoints*1000),2) "Average sync time per checkpoint (s)", | |
round(total_buffers/np.mp,1) "Total MB written", | |
round(buffers_checkpoint/(np.mp*total_checkpoints),2) "MB per checkpoint", | |
round(buffers_checkpoint/(np.mp*np.min_since_reset*60),2) "Checkpoint MBps", | |
round(buffers_clean/(np.mp*np.min_since_reset*60),2) "Bgwriter MBps", |
(*.ics AND has:attachment AND ("(GMT" OR "Invitation:")) |
// Usage: | |
// Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread | |
// then use as follows: | |
// | |
// query(term | [term, term, ...], term | [term, term, ...], ...) | |
// | |
// When arguments are in an array then that means an "or" and when they are seperate that means "and" | |
// | |
// Term is of the format: | |
// ((-)text/RegExp) ( '-' means negation ) |
I was toying around with my PowerMate USB on the Mac.
I noticed that in the PowerMate application, you can set triggers for mouse wheel scrolling. But some applications coughMAMEcough don't pick it up.
Investigating I found that it provides its spinner as a uncommon HID type. So applications ignore it, not knowing how to handle that.
The click is presented as a normal button though. So no big deal there.
brew install libusb
brew install hidapi
library webglapp; | |
import 'dart:typed_data'; | |
import 'dart:html'; | |
import 'dart:web_gl'; | |
import 'dart:async'; | |
CanvasElement canvas = document.getElementById("gameCanvas"); | |
RenderingContext gl; |
#!/bin/sh | |
if (( $# < 2 )) || (( $# > 3 )) | |
then | |
echo "$0 <are-in-this-branch> <are-not-in-this-branch> [<url-of-repo>]" | |
exit 1 | |
fi | |
URLPREFIX= | |
if (( $# == 3 )) | |
then | |
URLPREFIX=$(echo "$3/pull/" | sed -e 's/[\/&]/\\&/g') |