Skip to content

Instantly share code, notes, and snippets.

@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))
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 20:41
bitcoin-unlimited.install v1.0.2.0 - Failed - Package Tests Results
2025-02-11 20:40:49,801 3624 [DEBUG] - XmlConfiguration is now operational
2025-02-11 20:40:49,940 3624 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:40:49,940 3624 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 20:40:49,940 3624 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:40:49,940 3624 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 20:40:49,940 3624 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 20:40:49,958 3624 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 20:40:49,958 3624 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:40:49,958 3624 [DEBUG] - Adding new typ
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/redhat-marketplace-operators/pull/968
[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'
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 20:40
bitcoin-unlimited v1.0.2.0 - Failed - Package Tests Results
2025-02-11 20:39:42,452 2120 [DEBUG] - XmlConfiguration is now operational
2025-02-11 20:39:42,573 2120 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:39:42,573 2120 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 20:39:42,573 2120 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:39:42,573 2120 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 20:39:42,591 2120 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 20:39:42,591 2120 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 20:39:42,591 2120 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:39:42,591 2120 [DEBUG] - Adding new typ
---
- name: Perform nslookup on IPs from a file
hosts: localhost
gather_facts: no
tasks:
- name: Read IPs from file
slurp:
src: ips.txt
register: ip_list
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 20:39
Rimworld output log published using HugsLib
Log uploaded on Wednesday, February 12, 2025, 4:39:23 AM
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.1.1)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
@camflan
camflan / load_dotenv.sh
Created February 11, 2025 20:39 — forked from mihow/load_dotenv.sh
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a
@choco-bot
choco-bot / Install.txt
Created February 11, 2025 20:39
exchange-edb-viewer v15.9 - Passed - Package Tests Results
2025-02-11 20:38:01,524 6104 [DEBUG] - XmlConfiguration is now operational
2025-02-11 20:38:01,663 6104 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:38:01,663 6104 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 20:38:01,663 6104 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:38:01,663 6104 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-11 20:38:01,685 6104 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-11 20:38:01,685 6104 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-11 20:38:01,685 6104 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-11 20:38:01,696 6104 [DEBUG] - Adding new typ
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 20:38
Rimworld output log published using HugsLib
Log uploaded on Wednesday, February 12, 2025, 1:28:21 AM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Map Designer(zylle.MapDesigner): MapDesigner(1.0.0)
Replace Stuff(Uuugggg.ReplaceStuff): Replace_Stuff(av:1.0.0,fv:1.1.0)
Ancient urban ruins(XMB.AncientUrbanrUins.MO): ACM_RandomBuildings(1.0.0), AncientMarket_Libraray(1.0.0), AncientMarketAI_Libraray(1.0.0), BuildingExtraRenderer(1.0.0), DebugLogHarmony(1.0.0), 手电筒(1.0.0)
AAAA(Allowed Area Automatic Adapter)(seekiworksmod.no17): AAAA(3.1.0)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
@import url(https://fonts.googleapis.com/css2?family=Manrope:wght@400;500&display=swap);
*{box-sizing:border-box;margin:0;padding:0}.btn-check:focus+.btn,.btn:focus{box-shadow:unset!important;outline:unset!important}.vcard3-btn-group{background-color:#fff;border:1px solid #4ca1f2;border-radius:50px!important;color:#4ca1f2;height:50px;padding:10px;width:50px}.vcard3-sticky-btn{background:#4ca1f2;border-radius:50px!important;box-shadow:inset 6px 6px 12px #3172b1,inset -6px -6px 12px #51acff;color:#fff;height:40px;padding:10px 20px}a{color:#4ca1f2!important;text-decoration:none!important}body{background-color:#e5e5e5!important;font-family:Manrope,sans-serif}.vcard-three.main-content{background-color:#141e30;max-width:576px;min-height:100vh}.vcard-three .vcard-three-heading{color:#fff;font-size:28px;font-weight:500}.vcard-three .heading-line{padding-top:30px;z-index:1}.vcard-three .heading-line:before{background:#afafaf;background:linear-gradient(90deg,#141e30,#fff 50%,#141e30);border-radius:50%;content:"";height