Skip to content

Instantly share code, notes, and snippets.

Intelligent Investment
Global Data
Center Trends
2023
REPORT
New technology
is driving record
demand but power
constraints are
inhibiting growth
@peytonmcnully
peytonmcnully / map.geojson
Last active October 15, 2022 06:20 — forked from cosh/map.geojson
datatable(lng:real, lat:real)
[
-88.473227,30.223334,
-88.473227,35.008028,
-84.88908,35.008028,
-84.88908,30.223334
]
| project h3_hash = geo_point_to_h3cell(lng, lat, 6)
| project h3_hash_polygon = geo_h3cell_to_polygon(h3_hash)
| summarize h3_hash_polygon_lst = make_list(h3_hash_polygon)
@peytonmcnully
peytonmcnully / index.js
Created January 18, 2020 02:39
download both files
var couchbase = require('couchbase')
var cluster = new couchbase.Cluster('couchbase://167.172.139.14/');
cluster.authenticate('Administrator', 'andystrator');
var bucket = cluster.openBucket('bucketohshiii');
var N1qlQuery = couchbase.N1qlQuery;
bucket.manager().createPrimaryIndex(function() {
bucket.upsert('user:king_arthur', {
'email': '[email protected]', 'interests': ['Holy Grail', 'African Swallows']
},
provider "google" {
credentials = "${file("account.json")}"
project = "blox"
region = "us-central1"
}
resource "google_compute_vpn_tunnel" "tunnel1" {
name = "tunnel1"
peer_ip = "15.0.0.120"
shared_secret = "a secret message"
@peytonmcnully
peytonmcnully / install ncurses on macosx
Created August 7, 2018 14:44 — forked from cnruby/install ncurses on macosx
HOW TO INSTALL ncurses on MacOSX
$ curl -O ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz
$ tar -xzvf ncurses-5.9.tar.gz
$ cd ./ncurses-5.9
$ ./configure --prefix=/usr/local \
--without-cxx --without-cxx-binding --without-ada --without-progs --without-curses-h \
--with-shared --without-debug \
--enable-widec --enable-const --enable-ext-colors --enable-sigwinch --enable-wgetch-events \
&& make
$ sudo make install
set -v VolumeLabel MYRAMDISK
set -v FsIndex 0
set -v RamDiskStr 0
set -v RamDiskSize 512
set -v DownloadFile1 sas2flash.efi
set -v Url https://www.dropbox.com/s/6dqqjv3w8gferbo/sas2flash.efi?dl=1
ramdisk -c -s %RamDiskSize% -v %VolumeLabel% -t F32 >v RamDiskStr
webclient -g %Url% -o %DownloadFile1%
set -v VolumeLabel MYRAMDISK
set -v FsIndex 0
set -v RamDiskStr 0
set -v RamDiskSize 512
set -v DownloadFile1 sas2flash.efi
set -v Url https://www.dropbox.com/s/6dqqjv3w8gferbo/sas2flash.efi?dl=1
ramdisk -c -s %RamDiskSize% -v %VolumeLabel% -t F32 >v RamDiskStr
webclient -g %Url% -o %DownloadFile1%
Verifying that "peyton.id" is my Blockstack ID. https://onename.com/peyton
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<body>
<scene id="scene1">
<label t="translate(0,346)">
<tspan x="0" y="0em">OAUTH nesting dolls</tspan>
</label>
<actor t="translate(131,49)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|-18,59|-6,79|-1,59">