Skip to content

Instantly share code, notes, and snippets.

@Castone22
Castone22 / Dockerfile
Created February 11, 2021 13:28
Azure Pipelines Docker Compose environment binding failure mode 2
FROM busybox
@Castone22
Castone22 / Dockerfile
Created February 11, 2021 13:23
Azure Pipelines Docker Compose environment variable with in pipeline env variable configuration
FROM busybox
@Castone22
Castone22 / scratch.rb
Last active December 2, 2019 14:35
Simple Solution to Rest Client NTLM
require 'ntlm/http'
require 'rest-client'
require 'json'
# Quick monkey patch to rest client payloads since for some reason Net/NTLM insists on playing payload streams backwards.
class RestClient::Payload::Base
def rewind
@stream.rewind
end
end
for CableType cableType : CableType.values(){
name = cable.name;
voltage = cable.voltage;
}
@Castone22
Castone22 / fast_buzz.rb
Last active February 11, 2019 13:54
hashbuzz
# Faster solution using map, bottleneck'd by ruby's puts method.
def buzz_hash(arg_hash)
hash_thing = {}
arg_hash.each do |key, value|
hash_thing[key] = value
end
@buzz_hash = hash_thing
end
class CoreElement;
end
require_all('./elements')
class CoreElement
def self.type
:core_element
end
@@locator_options = [:id, :class, :xpath, :text, :href, :for, :name]
<div class = "header">
<h1>Lystrasynthra</h1>
<div class = dynamic-carosel>
<div><p>3D production for 4D People!</p></div>
<img></img>
<img></img>
<img></img>
<img></img>
<img></img>
</div>
@Castone22
Castone22 / e21.nix
Created October 4, 2018 22:16
Erisia 21 unparsed modlist
{
"version" = "1.12.2";
"imports" = ["mm2.yaml"];
"mods" = {
"actually-additions" = {
"title" = "Actually Additions";
"name" = "actually-additions";
"id" = 228404;
"side" = "both";
"required" = true;