Skip to content

Instantly share code, notes, and snippets.

View gist:863c558e4c8ec88ed6e584e4916c9894
diff --git a/provider/cmd/pulumi-resource-aws/schema.json b/provider/cmd/pulumi-resource-aws/schema.json
index 4b9553258..72bdfca93 100644
--- a/provider/cmd/pulumi-resource-aws/schema.json
+++ b/provider/cmd/pulumi-resource-aws/schema.json
@@ -148781,6 +148781,93 @@
},
"provider": {
"description": "The provider type for the aws package. By default, resources use package-wide configuration\nsettings, however an explicit `Provider` instance may be created and passed during resource\nconstruction to achieve fine-grained programmatic control over provider settings. See the\n[documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.\n",
+ "properties": {
+ "accessKey": {
@jen20
jen20 / 0001-Update-mock-credentials-service-for-warp-0.2.patch
Last active Jan 24, 2020
Update Rusoto credentials helper for warp 0.2
View 0001-Update-mock-credentials-service-for-warp-0.2.patch
From 2b6318761ca99f26e5d25e5c9ed6cf2f606dcd12 Mon Sep 17 00:00:00 2001
From: James Nugent <james@jen20.com>
Date: Fri, 24 Jan 2020 21:15:53 +0000
Subject: [PATCH] Update mock credentials service for warp 0.2
---
rusoto/credential_service_mock/Cargo.toml | 1 +
rusoto/credential_service_mock/src/main.rs | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
@jen20
jen20 / 0001-Upgrade-warp-to-prevent-Tokio-0.1-dependency-pin-Tok.patch
Created Jan 24, 2020
Patch to change some dependency versions in Rusoto
View 0001-Upgrade-warp-to-prevent-Tokio-0.1-dependency-pin-Tok.patch
From 53e4a37039ecf5ee461e9f47b262e1d6349a23eb Mon Sep 17 00:00:00 2001
From: James Nugent <james@jen20.com>
Date: Fri, 24 Jan 2020 21:04:58 +0000
Subject: [PATCH] Upgrade warp to prevent Tokio 0.1 dependency, pin Tokio to
0.2 rather than a point release
---
rusoto/credential_service_mock/Cargo.toml | 2 +-
rusoto/credential_service_mock/src/main.rs | 2 +-
rusoto/signature/Cargo.toml | 2 +-
@jen20
jen20 / main.rs
Created Jan 3, 2020
Get peer certificate
View main.rs
let (_, session) = tls.get_ref();
match session.get_peer_certificates() {
Some(certs) => {}
None => {}
}
@jen20
jen20 / install-jetbrains-toolbox.sh
Created Sep 16, 2019
Script for installing JetBrains Toolbox on Linux
View install-jetbrains-toolbox.sh
#!/bin/bash
[ $(id -u) != "0" ] && exec sudo "$0" "$@"
echo -e " \e[94mInstalling Jetbrains Toolbox\e[39m"
echo ""
function getLatestUrl() {
USER_AGENT=('User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36')
URL=$(curl 'https://data.services.jetbrains.com//products/releases?code=TBA&latest=true&type=release' -H 'Origin: https://www.jetbrains.com' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8' -H "${USER_AGENT[@]}" -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Referer: https://www.jetbrains.com/toolbox/download/' -H 'Connection: keep-alive' -H 'DNT: 1' --compressed | grep -Po '"linux":.*?[^\\]",' | awk -F ':' '{print $3,":"$4}'| sed 's/[", ]//g')
@jen20
jen20 / deregister-task-definitions.sh
Created Jul 22, 2019
Script to deregister all ECS Task Definitions in a given region
View deregister-task-definitions.sh
#!/usr/bin/env bash
get_task_definition_arns() {
aws ecs list-task-definitions --region ${AWS_REGION} \
| jq -M -r '.taskDefinitionArns | .[]'
}
delete_task_definition() {
local arn=$1
@jen20
jen20 / capslock.reg
Created Apr 23, 2019
Map Caps Lock to Escape on Windows
View capslock.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,46,00,01,00,3a,00,00,00,00,00
View gist:30590888ce15d1893fe07ec65b7a04ca
warning: google.golang.org/api version conflict (google.golang.org/api/appengine/v1@087779f1d2c96357d4c45bd04c4d10d7b5f22736 != google.golang.org/api/composer/v1beta1@83a9d304b1e613fc253e1e2710778642fe81af53); chose google.golang.org/api/composer/v1beta1 (sooner)
warning: google.golang.org/api version conflict (google.golang.org/api/composer/v1beta1@83a9d304b1e613fc253e1e2710778642fe81af53 != google.golang.org/api/compute/v0.beta@04bb50b6b83d0e72253821af8cf3252d8e866517); chose google.golang.org/api/composer/v1beta1 (sooner)
warning: google.golang.org/api version conflict (google.golang.org/api/composer/v1beta1@83a9d304b1e613fc253e1e2710778642fe81af53 != google.golang.org/api/compute/v1@087779f1d2c96357d4c45bd04c4d10d7b5f22736); chose google.golang.org/api/composer/v1beta1 (sooner)
warning: google.golang.org/api version conflict (google.golang.org/api/composer/v1beta1@83a9d304b1e613fc253e1e2710778642fe81af53 != google.golang.org/api/container/v1@087779f1d2c96357d4c45bd04c4d10d7b5f22736); chose google.golang.o
View class.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
namespace Messaging101 {
/* Create inventory bucket
* Check into inventory (quantity)
* Check out of inventory (quantity)
* throw Exception
View gist:7be582f04eec47bcdee4e684b97b1f52
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.0-1044-aws (buildd@lgw01-amd64-013) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) ) #53-Ubuntu SMP Mon Dec 11 13:49:57 UTC 2017 (Ubuntu 4.4.0-1044.53-aws 4.4.98)
[ 0.000000] Command line: BOOT_IMAGE=/ROOT/ubuntu@/boot/vmlinuz-4.4.0-1044-aws root=ZFS=rpool/ROOT/ubuntu ro boot=zfs console=tty1 console=ttyS0 ip=dhcp tsc=reliable net.ifnames=0
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[3]: 960, xstate_sizes[3]: 64