Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import autogen | |
config_list = [ | |
{ | |
'model': 'gpt-4', | |
'api_key': 'API_KEY' | |
} | |
] | |
llm_config={ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Web.InvokeWebService.InvokeWebService Url: $'''https://api.github.com/repos/cbaragao/PQ-Shared-Library/git/trees/main?recursive=1''' Method: Web.Method.Get Accept: $'''application/json''' ContentType: $'''application/json''' ConnectionTimeout: 30 FollowRedirection: True ClearCookies: False FailOnErrorStatus: False EncodeRequestBody: True UserAgent: $'''Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20100312 Firefox/3.6''' Encoding: Web.Encoding.AutoDetect AcceptUntrustedCertificates: False TrimRequestBody: True ResponseHeaders=> WebServiceResponseHeaders Response=> WebServiceResponse StatusCode=> StatusCode | |
Variables.ConvertJsonToCustomObject Json: WebServiceResponse CustomObject=> GithubResponse | |
Variables.CreateNewDatatable InputTable: { ^['Path', 'URL'], [$'''''', $''''''] } DataTable=> GH | |
LOOP FOREACH tree IN GithubResponse.tree | |
Variables.AddRowToDataTable.InsertItemToDataTable DataTable: GH RowIndex: 1 RowToAdd: [tree.path, tree.url] | |
END | |
Variables.FilterDataTable DataTable: GH Filt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######### | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |