Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 11, 2025 20:43
pomolectron v1.1.0 - 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="InnoSetup" displayName="Pomolecron-1.1.0 version 1.1.0" displayVersion="1.1.0">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8AE71FFA-EE3A-48AF-8DB3-6B2FDFBF749F}_is1</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files (x86)\Pomolectron\]]></InstallLocation>
<UninstallString><![CDATA["C:\Program Files (x86)\Pomolectron\unins000.exe" /SILENT]]></UninstallString>
import autogen
config_list = [
{
'model': 'gpt-4',
'api_key': 'API_KEY'
}
]
llm_config={
@nuttxpr
nuttxpr / ci-arm-05.log
Created February 11, 2025 20:43
[arm-05] CI Log for nuttx @ 381d3fe64f4da2b09f12bd8f0cd2d1f07d86b3d3 / nuttx-apps @ fb0c1e10ded2a6fb9f066b9893662cbcc86e4646
Script started on 2025-02-12 02:42:31+07:00 [COMMAND="/home/user/nuttx-release/run-job.sh arm-05 " TERM="xterm-256color" TTY="/dev/pts/5" COLUMNS="110" LINES="83"]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh arm-05
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
+ job=arm-05
+ [[ arm-05 == '' ]]
+ instance=
+ set
+ grep TMUX
+ true
+ neofetch
# To make those white background PDFs a little easier on the eyes
import pymupdf
doc = pymupdf.open('path/to/pdf-in.pdf')
background_color = (211/255, 211/255, 211/255)
for page in doc:
page.draw_rect(page.rect, color=None, fill=background_color, overlay=False)
doc.ez_save('path/to/pdf-out.pdf')
@lvanasse
lvanasse / ci-risc-v-02.log
Created February 11, 2025 20:43
[risc-v-02] CI Log for nuttx @ 381d3fe64f4da2b09f12bd8f0cd2d1f07d86b3d3 / nuttx-apps @ fb0c1e10ded2a6fb9f066b9893662cbcc86e4646
Script started on 2025-02-11 20:11:06+00:00 [COMMAND="/home/ludovic/nuttx-release/run-job.sh risc-v-02" <not executed on terminal>]
Now running https://github.com/lupyuen/nuttx-release/blob/main/run-job.sh
Called by https://github.com/lupyuen/nuttx-release/blob/main/run-ci.sh
+ job=risc-v-02
+ neofetch
.-/+oossssoo+/-.
`:+ssssssssssssssssss+:`
-+ssssssssssssssssssyyssss+-
.ossssssssssssssssssdMMMNysssso.
/ssssssssssshdmmNNmmyNMMMMhssssss/
Pipeline still running ...
PipelineRun is still running: Tasks Completed: 11 (Failed: 1, Cancelled 0), Incomplete: 1, Skipped: 42
[get-pr-number : parse-pr-url] + echo -n 5939
[get-pr-number : parse-pr-url] + tee /tekton/results/git_pr_number
[get-pr-number : parse-pr-url] 5939
[acquire-lease : create-lease] + calculate_duration_in_seconds 90m
[acquire-lease : create-lease] + '[' m == m ']'
[acquire-lease : create-lease] + TOTAL_DURATION_IN_SECONDS=5400
[acquire-lease : create-lease] + export TOTAL_DURATION_IN_SECONDS
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 20:42
bitcoin-unlimited.portable v1.0.2.0 - Failed - Package Tests Results
2025-02-11 20:41:47,798 5844 [DEBUG] - XmlConfiguration is now operational
2025-02-11 20:41:47,923 5844 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:41:47,923 5844 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 20:41:47,941 5844 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:41:47,941 5844 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 20:41:47,941 5844 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 20:41:47,955 5844 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 20:41:47,955 5844 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:41:47,955 5844 [DEBUG] - Adding new typ
@GabrielHoffman
GabrielHoffman / PsychAD_analysis.R
Created February 11, 2025 20:41
PsychAD analysis
#########
# SETUP #
#########
# dataset: MSSM or FULL
# AnnoLevel: class or subclass
params = list(dataset = "FULL", variable_type = "CAT", SampleLevel = "SubID", AnnoLevel = "class", ctst_key = "MSSM_AD__controls")
# Load CONTRASTS and metadata
@RedBlaze42
RedBlaze42 / imager_converter.py
Created February 11, 2025 20:41
jpg to raw image converter for a CUDA lab
from PIL import Image
import numpy as np
def to_jpg(image_path, output_path, dimensions=(256, 256)):
with open(image_path, 'rb') as f:
img = np.frombuffer(f.read(), dtype=np.float32)
img = img.astype(np.uint8)
img = img.reshape((3, dimensions[0], dimensions[1]))
img = np.transpose(img, (2, 1, 0))