Skip to content

Instantly share code, notes, and snippets.

@luckylittle
luckylittle / Mock Exam 1.md
Last active July 23, 2026 20:55
Prometheus Certified Associate (PCA)

Mock Exam

1

Q1. The metric node_cpu_temp_celcius reports the current temperature of a nodes CPU in celsius. What query will return the average temperature across all CPUs on a per node basis? The query should return {instance=“node1”} 23.5 //average temp across all CPUs on node1 {instance=“node2”} 33.5 //average temp across all CPUs on node2.

node_cpu_temp_celsius{instance="node1", cpu="0"} 28
node_cpu_temp_celsius{instance="node1", cpu="1"} 19
node_cpu_temp_celsius{instance="node2", cpu="0"} 36
node_cpu_temp_celsius{instance="node2", cpu="1"} 31
@Gargron
Gargron / map.gdf
Created January 30, 2018 21:28
Map of the fediverse
This file has been truncated, but you can view the full file.
nodedef>name VARCHAR,label VARCHAR
1,social.touha.me
2,gs.jonkman.ca
3,m.bonzoesc.net
4,social.consumium.org
5,occitanie.social
6,redwombat.social
7,community.highlandarrow.com
8,mastodon.daiko.fr
@Pythonation
Pythonation / prompt.md
Last active July 23, 2026 20:18
3 PROMPTS OF CODING AGENTS

1. برومبت التخطيط المطوّر (The Planning Protocol)

[الدور والمسؤولية] أنت الآن تعمل بصفة Staff Software Engineer ومدير تقني Tech Lead. مهمتك التخطيط المعماري الصارم للمشروع التالي: [أدخل وصف المشروع هنا]

[قواعد ما قبل التتخطيط] قبل البدء بالبروتوكولات، يجب أن تطبق مبدأ "Think Before Coding":

@sstrang
sstrang / gist:2ae7ab91881e04508e5af4a56c02367e
Last active July 23, 2026 19:54
Home Assistant Factorio Disco Science automation
alias: "Factorio: Research Lab Lighting (Disco Science)"
description: >-
Cycles the WLED light through the colours of the science packs consumed by
active research using the Candle Multi effect. Colours crossfade smoothly like
the Disco Science mod. Flashes white once when research completes, and turns
the light off when research is cancelled.
triggers:
- trigger: mqtt
topic: factorio/events/research-started
id: started

Supporting Case Studies in Your read.cv App

This is a guide to help you extend the functionality of your exported read.cv app so that it supports case studies.

If you copy and paste the code from this guide, you should have working case study pages for your projects.

read.cv case studies demo

Check out Pei Yi's CV for an example.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active July 23, 2026 20:48
Complete Recent Discord Quest

Caution

As of April 7th 2026, Discord has expressed their intent to crack down on automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you most likely WILL get flagged by doing so.

Complete Recent Discord Quest

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active July 23, 2026 20:53
Conventional Commits Cheatsheet
abroad.api.comm.intl.miui.com
account-alpha.vip.miui.com
account.vip.miui.com
act.browser.india.miui.com
act.browser.intl.miui.com
act.browser.miui.com
activities.xk.miui.com
activity.browser.intl.miui.com
adinfo.ra1.xlmc.sec.miui.com
admin.cloudctl.inf.miui.com

HP LaserJet P1102 Drivers for macOS Sequoia

This instructions provides a solution for installing HP LaserJet P1102 drivers on macOS Sequoia (15.0+). The official HP drivers don't install on the latest macOS versions, but with a simple modification to bypass the operating system version check, you can get your printer working again.

Supported Printer Models

  • HP LaserJet P1102
  • HP LaserJet Pro P1102
  • HP LaserJet Pro P1102w
@Robertof
Robertof / busybox applets
Created September 5, 2022 00:41
Hikvision DS-KH9510-WTE1 dump
# busybox
BusyBox v1.22.1 (2014-11-27 12:30:44 CST) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2012.
Licensed under GPLv2. See source distribution for detailed
copyright notices.
Usage: busybox [function [arguments]...]
or: busybox --list
or: function [arguments]...