Skip to content

Instantly share code, notes, and snippets.

@lmmx
lmmx / pdm_autobump.sh
Last active February 11, 2025 20:55
Bashrc function to automatically bump and publish a Python package (with existing aliases before for context)
alias gadd="git add --all"
function gcmmt { git commit -m "$@"; }
alias gitnvm="git reset --soft HEAD~1"
function gotbranch { branch_name=$(git rev-parse --abbrev-ref HEAD); git push origin $branch_name; }
alias pdmpublish='pdm publish -u __token__ -P $(keyring get PYPIRC_TOKEN "")'
function pdmautobump {
pdm bump "$@" && \
gadd && \
gcmmt "chore(temp): version check" && \
@CL-Michael
CL-Michael / binary.wasm.br
Created February 11, 2025 20:50
Compiled workflow WASM binary
This file has been truncated, but you can view the full file.
alias: Light Control
description: Uses an entity's state to control a light
triggers:
- trigger: state
entity_id:
- binary_sensor.motion_sensor
from: "off"
to: "on"
conditions: []
actions:
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 20:50
Rimworld output log published using HugsLib
This file has been truncated, but you can view the full file.
Log uploaded on Tuesday, February 11, 2025, 2:48:42 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)
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)
Visible Error Logs(V1024.VisibleErrorLogs): VisibleErrorLogs(1.0.1)
Visual Exceptions(brrainz.visualexceptions)[mv:1.3.2.0]: CrossPromotion(1.1.2), VisualExceptions(1.3.2)
Core(Ludeon.RimWorld): (no assemblies)
Better Log - Fix your errors(bs.betterlog): 0PrepatcherAPI(1.2.0), 1Fishery(av:0.6.1,fv:0.5.1.2), BetterLog(1.1.0), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Pipeline still running ...
PipelineRun is still running: Tasks Completed: 25 (Failed: 0, Cancelled 0), Incomplete: 2, Skipped: 5
[set-github-started-label : post-comment] + EXTRA_ARGS=
[set-github-started-label : post-comment] + [[ ! -z operator-release-pipeline/started ]]
[set-github-started-label : post-comment] Editing GitHub labels to PR https://github.com/redhat-openshift-ecosystem/certified-operators/pull/5179
[set-github-started-label : post-comment] + EXTRA_ARGS+=' --add-labels operator-release-pipeline/started'
[set-github-started-label : post-comment] + [[ ! -z pipeline/trigger-release ]]
[set-github-started-label : post-comment] + EXTRA_ARGS+=' --remove-labels pipeline/trigger-release'
[set-github-started-label : post-comment] + [[ true == \t\r\u\e ]]
[set-github-started-label : post-comment] + EXTRA_ARGS+=' --remove-matching-namespace-labels'
@chrismatthieu
chrismatthieu / robot.js
Last active February 11, 2025 21:11
Sample robotics.dev boiler plate code
//import robotics from 'robotics-dev';
const robotics = require('robotics-dev');
// Define ROS twist movement commands
const moveForward = {
linear: {x: 0.2, y: 0.0, z: 0.0},
angular: {x: 0.0, y: 0.0, z: 0.0}
};
const turnLeft = {
linear: {x: 0.0, y: 0.0, z: 0.0},
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 20:49
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 8:49:11 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)
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)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
@lucasteles
lucasteles / CheckSum.cs
Last active February 11, 2025 21:08
C# CheckSum algorithms
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Point p1 = new(10, 20);
Point p2 = new(10, 20);
Point p3 = new(1, 3);
Console.WriteLine(
$"""
@choco-bot
choco-bot / FilesSnapshot.xml
Created February 11, 2025 20:49
httrack v3.49.2 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\httrack\httrack.nupkg" checksum="9D1C8A7F4C41F78AA29F8956F8134965" />
<file path="C:\ProgramData\chocolatey\lib\httrack\httrack.nuspec" checksum="555D705AA0167B633A2D17344D627761" />
<file path="C:\ProgramData\chocolatey\lib\httrack\tools\chocolateyInstall.ps1" checksum="B31240727FB354A67F87B08F403796CD" />
</files>
</fileSnapshot>
@nortikin
nortikin / Sverchok
Created February 11, 2025 20:48
Sverchok.v1.3.0 | Blender.4.2.0Alpha | Sverchok | 2025.02.11 | 23:48 | license: CC BY-SA
{
"export_version": "1.0",
"main_tree": {
"nodes": {
"Ring": {
"attributes": {
"location": [
-1000.0,
-340.0
],