Skip to content

Instantly share code, notes, and snippets.

@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))
@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)