Skip to content

Instantly share code, notes, and snippets.

{
"eventId": "6660be23-4477-4b9a-abf8-3cfe9cddd38e",
"eventTimestamp": "2021-07-20T09:28:06.4939859-07:00",
"timestamp": "2021-07-20T16:28:06.4967239+00:00",
"metadata": {
"service": "WasSetToMyService?",
"schema": "http://schemas.data.api.godaddy.com/v1/events/pleskshared/domains.json"
},
"source": {
"producer": "KinesisTestDriver"
// This is based partially on the code lifted from this article:
// https://stackoverflow.com/questions/41594683/encrypt-decrypt-in-c-sharp-using-certificate
using System;
using System.Text;
using System.IO;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
namespace Setec.Astronomy.ConsoleApp
using System;
using System.IO;
using Amazon;
using Amazon.SecretsManager;
using Amazon.SecretsManager.Model;
using Amazon.Runtime;
@mahldcat
mahldcat / BlockStates.java
Created March 19, 2021 16:29
block states class that I pulled from McJty's Youtube tutorial vids
package com.mahldcat.mcjtytutorial.datagen;
import com.mahldcat.mcjtytutorial.ExampleMod;
//import com.mcjty.mytutorial.blocks.ComplexMultipartBlock;
//import com.mcjty.mytutorial.blocks.ComplexMultipartTile;
import com.mahldcat.mcjtytutorial.setup.Registration;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.data.DataGenerator;
import net.minecraft.state.properties.BlockStateProperties;
@mahldcat
mahldcat / build.gradle
Created March 19, 2021 16:28
Gradle build file for my "import stuff from McJty's tutorial as I consume his tutorial vids"....using a new copy of the mdk
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
@mahldcat
mahldcat / DeferredCreate.cs
Created March 16, 2021 20:45
Just screwing around with expanding a pattern I saw in a Java tutorial--but with C#
using System;
using System.Collections.Generic;
// This is based off a code fragment I saw in a java tutorial.
// Wanted to play around with this--both to convert it to C#
// and was screwing around with abstracting this into a separate
// component that would "Do Work", and defer instantiation of the
// worker entities until later?
//
namespace DeferredCreate
@mahldcat
mahldcat / PumpkinPie.md
Last active November 25, 2020 23:02
Pumpkin Chiffon Pie Recipe

Ingredients

  • 1 envelope knox gelatin
  • 1/4 cup cold water
  • 1 1/4 cup canned pumpkin (not pre spiced)
  • 1/2 cup milk
  • 1/2 tsp ginger
  • 1/2 tsp nutmeg
  • 1 tsp cinnamon
  • 1/2 tsp salt
  • 1 tsp vanilla
@mahldcat
mahldcat / ArtifactoryNugetCleaner.ps1
Created October 21, 2020 15:25
Script that will uses Artifactory's API to clear out older nuget packages.
param(
#the repo to walk
[Parameter(Mandatory=$true)]
$repoKey="",
#how many artifacts should we keep?
[int]$toLive = 5,
#any packages we want to black list?
$blackList =@(),
#the api key to use
[Parameter(Mandatory=$true)]
@mahldcat
mahldcat / nuget.groovy
Created October 16, 2020 17:59
Ephemeral nuget config (build pipeline extension)
package <<NAMESPACE THIS THING>>
class nuget {
// it is possible to define values in the pipeline, and pass them in as args
// so no need to put them into the script object
static def generatenugetconfig(script, nugetList) {
def workspace = script.pwd()
def nugetConfigName= "nuget.config"
//HACK: the java libs is causing all sorts of glitchy behavior on windows....
@Library('net-core-build') _
import static <<namespace from net-core-build lib>>.nuget.*;
import static <<namespace from net-core-build lib>>.csproj.*;
pipeline {
agent {
label 'netcore'
}
environment {