Skip to content

Instantly share code, notes, and snippets.

View lamont-granquist's full-sized avatar

Lamont Granquist lamont-granquist

View GitHub Profile
{"chef_server_fqdn":"localhost","entity_uuid":"52487b14-ccc8-4b5e-94fd-41c1838e4f75","id":"168b7b3f-9236-4d92-b45f-b2ce2037b46c","message_version":"1.0.0","message_type":"run_start","node_name":"coredump.scriptkiddie.org","organization_name":"chef_solo","run_id":"168b7b3f-9236-4d92-b45f-b2ce2037b46c","source":"chef_solo","start_time":"2022-03-01T20:22:22Z"}
{"chef_server_fqdn":"localhost","entity_uuid":"52487b14-ccc8-4b5e-94fd-41c1838e4f75","expanded_run_list":{"id":"_default","run_list":[{"type":"recipe","name":"wrapper","version":null,"skipped":false}]},"id":"168b7b3f-9236-4d92-b45f-b2ce2037b46c","message_version":"1.1.0","message_type":"run_converge","node":{"name":"coredump.scriptkiddie.org","chef_environment":"_default","json_class":"Chef::Node","automatic":{"hostname":"coredump","machinename":"coredump.scriptkiddie.org","fqdn":null,"domain":null,"kernel":{"name":"Darwin","release":"21.2.0","version":"Darwin Kernel Version 21.2.0: Sun Nov 28 20:29:10 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T8101","m
using Kode.Interfaces;
using Kode.Interfaces.PartModules;
using static Kode.Logging;
namespace Kode.AutopilotModules
{
// TODO: hotstaging [requires deltaV analysis]
// TODO: early solid jettison [requires deltaV analysis]
// TODO: prevent prelaunch activation? [requires events from KSP]
#!/usr/bin/env ruby
require "async"
class Global
class << self
attr_accessor :counter
def counter
@counter ||= 0
end
grammar KspConfigNode
rule doc
__ (single_statement / "}" __ )* __ <Doc>
end
rule node
identifier __ ( single_statement / multi_statement ) __ <Node>
end
rule single_statement
package nbody
import (
"encoding/csv"
"math"
"os"
"strconv"
"strings"
)
private static double InterpolantRootfinder(double wt1, double wt2, double x)
{
double t = 0.5;
if (wt1 == 1 / 3.0d && wt2 == 1 / 3.0d) return x;
double wt2S = 1 - wt2;
int i = 10;
using System;
namespace Kode
{
/// <summary>
/// Brent's rootfinding method.
/// </summary>
public static class BrentRoot
{
/// <summary>
class Car
def initialize
self.all_cars << self
end
def self.all_cars
@all_cars ||= []
end
def self.reset!
global Thrust O Rbody ScaleH Rho0 Aref Cd Mdot
Aref = 2.7770013648359075e-12
Cd = 0.80000000000000004
Mdot = 161107.22668495434
O = 0.072123427831452785
%O = 0
Rbody = 0.99986023590346207
Rho0 = 2.6471097575924006e+17
ScaleH = 0.0095986582646732359
--- Makefile-rubyinstasller 2021-04-06 19:26:19.981202804 -0700
+++ Makefile-chef 2021-04-06 19:26:01.177875330 -0700
@@ -12,12 +12,12 @@
#### Start of system configuration section. ####
srcdir = .
-topdir = /C/Ruby30-x64/include/ruby-3.0.0
+topdir = /C/opscode/chef/embedded/include/ruby-3.0.0
hdrdir = $(topdir)
-arch_hdrdir = C:/Ruby30-x64/include/ruby-3.0.0/x64-mingw32