Skip to content

Instantly share code, notes, and snippets.

@ehurheap
ehurheap / gist:7fdac55f10f2c4960851bb072c675172
Created February 11, 2025 17:25
Onsite coding, part 3 (Go)
*
Another team has introduced the idea of combo events, essentially events that can be made up of other events.
For the purposes of this question we will think of combo events like a sort of "bulk tracking" event that collects many events inside of it.
We want to support alerting on these kinds of events by finding any child events that match our criteria and aggregating them and the regular events in the stream together.
Additional notes on how combo events will work in our system:
- Combo events can be nested multiple levels deep.
- Combo events will always have the type 'combo'.
- The type 'combo' will never be used in our alerting criteria.
Types:
type Alert struct {
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 17:24
rpc v6.1 - Failed - Package Tests Results
2025-02-11 17:24:31,136 5076 [DEBUG] - XmlConfiguration is now operational
2025-02-11 17:24:31,261 5076 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 17:24:31,261 5076 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 17:24:31,278 5076 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 17:24:31,278 5076 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 17:24:31,278 5076 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 17:24:31,278 5076 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 17:24:31,294 5076 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 17:24:31,294 5076 [DEBUG] - Adding new typ
Redirect to /build/tmp.oUczhdt9CM and /build/tmp.lcQys1Km8n
Tree base:
6b46e067bcd0 ("Adding CI files")
Building the whole tree with the patch
error:
real 16m51.735s
user 661m19.202s
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 17:24
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 12:24:27 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Faster Game Loading(Taranchuk.FasterGameLoading): FasterGameLoading(1.0.0), System.Drawing(av:4.0.0,fv:4.6.57)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)

BOOKS:

  • The Secret Life of Programs: Understand Computers -- Craft Better Code [Steinhart, Jonathan E.]
  • Computer Systems: A Programmer's Perspective, 3 Edition [Randal E. Bryant, David R. O'Hallaron]
  • Code: The Hidden Language of Computer Hardware and Software [Petzold, Charles]
  • How Computers Really Work: A Hands-On Guide to the Inner Workings of the Machine [Justice, Matthew]
  • How the Internet Really Works: An Illustrated Guide to Protocols, Privacy, Censorship, and Governance [Article 19, Knodel, Mallory, Uhlig, Ulrike, ten Oever, Niels, Cath, Corinne]
  • How Software Works: The Magic Behind Encryption, CGI, Search Engines, and Other Everyday Technologies [Spraul, V. Anton]
  • The Secret Life of Programs: Understand Computers -- Craft Better Code [Steinhart, Jonathan E.]
  • How Cybersecurity Really Works: A Hands-On Guide for Total Beginners [Grubb, Sam]
@itsrick07
itsrick07 / 2birthday.html
Last active February 11, 2025 17:26
Happy Birthday Tamanna
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
#!/bin/bash
# README: A more updated version is on the comments by (ashmna)[https://gist.github.com/ashmna]
# See at: https://gist.github.com/allangarcia/938b052a7d55d1652052e4259364260b?permalink_comment_id=4265898#gistcomment-4265898
# this is for tools required
brew update
brew install ninja
brew install cmake
@scottt732
scottt732 / partial.tf
Created February 11, 2025 17:23
argoproj/argo-cd!17064 terraform
#
# ArgoCD Config - Clusters
#
resource "kubernetes_manifest" "clusters" {
for_each = {
for k, v in var.argo_managed_clusters : k => v if var.env_code == "mgmt"
}
manifest = {
"apiVersion" = "v1"
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 11, 2025 17:23
gh-api-cli v4.0.2 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-2270195762-3335344054-2709297393-1000</user>
<keys>
<key installerType="Msi" displayName="gh-api-cli" displayVersion="4.0.2">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{12B2F28F-DCF9-4518-BAB5-7CA5BD91357A}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /I{12B2F28F-DCF9-4518-BAB5-7CA5BD91357A}]]></UninstallString>
@ryanhossain9797
ryanhossain9797 / windows_activation.md
Created February 11, 2025 17:23 — forked from bramada/windows_activation.md
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition: