Skip to content

Instantly share code, notes, and snippets.

View AaronFriel's full-sized avatar
🙃

Aaron Friel AaronFriel

🙃
View GitHub Profile
@AaronFriel
AaronFriel / example.ts
Last active February 9, 2022 01:38
TypeScript pulumi.all() and output#apply()
import * as pulumi from '@pulumi/pulumi';
import { PulumiFn } from '@pulumi/pulumi/automation';
type Node = {
role: pulumi.Output<string>;
};
// 'simple' way of faking an output is to wrap it in a promise, which should test our ability to
// wait on its value via pulumi.all, pulumi.output:
function mkOutputString(value: string): pulumi.Output<string> {
from types import FrameType
from traceback import format_stack, format_tb
import sys
PREFIX='Traceback (most recent call last):\n'
def frame_as_traceback(frame: FrameType):
traceback = ''.join(format_stack(f=frame, limit=10))
return f'{PREFIX}{traceback}'

Keybase proof

I hereby claim:

To claim this, I am signing this object:

gistup
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"resourceName": {
"type": "string",
"metadata": {
"description": "The name of the Managed Cluster resource."
}
},
@AaronFriel
AaronFriel / Windows ReFS versions.en.md
Created August 3, 2017 00:36 — forked from 0xbadfca11/00_README.md
Windows ReFS versions

Version number is reported by fsutil fsinfo refsinfo, available on Windows 10 and Windows Server 2016.

ReFS 1.1

  • Version of formatted by Windows Server 2012.
  • Version 1.1 is used already in Windows Server 8 Beta. I have never seen version 1.0.
  • Can use and store alternate data streams, when mount on 8.1/2012 R2 or later.

ReFS 1.2

  • Version of formatted by Windows 8.1, Windows 10 v1507 to v1607, Windows Server 2012 R2, and when specified ReFSv1 on Windows Server 2016 and Windows Server Insider Preview build 16237.
  • Cannot use alternate data streams, when mount on 2012.
#![feature(collections)]
#![allow(dead_code)]
use std::sync::{Arc, Mutex};
use std::thread;
type Money = i64;
// Need to be safe here!
struct AccountInner {
{-# LANGUAGE DeriveDataTypeable #-}
import Control.Concurrent
import Control.Concurrent.MVar
import Control.Concurrent.STM
import Control.Exception
import Data.Foldable
import Data.Typeable
type Money = Int
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StringConcat
{
class Program