Skip to content

Instantly share code, notes, and snippets.

{"apiVersion":"operators.coreos.com/v1alpha1","kind":"CatalogSource","metadata":{"creationTimestamp":"2025-02-06T20:34:41Z","generation":1,"managedFields":[{"apiVersion":"operators.coreos.com/v1alpha1","fieldsType":"FieldsV1","fieldsV1":{"f:spec":{".":{},"f:displayName":{},"f:grpcPodConfig":{".":{},"f:securityContextConfig":{}},"f:icon":{".":{},"f:base64data":{},"f:mediatype":{}},"f:image":{},"f:secrets":{},"f:sourceType":{}}},"manager":"preflight","operation":"Update","time":"2025-02-06T20:34:41Z"},{"apiVersion":"operators.coreos.com/v1alpha1","fieldsType":"FieldsV1","fieldsV1":{"f:status":{".":{},"f:connectionState":{".":{},"f:address":{},"f:lastConnect":{},"f:lastObservedState":{}},"f:registryService":{".":{},"f:createdAt":{},"f:port":{},"f:protocol":{},"f:serviceName":{},"f:serviceNamespace":{}}}},"manager":"catalog","operation":"Update","subresource":"status","time":"2025-02-06T20:36:15Z"}],"name":"ack-lambda-controller","namespace":"ack-lambda-controller","resourceVersion":"49638","uid":"44ac0791-c5cb-4
@samuelbray32
samuelbray32 / change_name.py
Created February 6, 2025 20:44
Change subject_id in nwb file
import h5py
def change_name(filepath, new_name):
with h5py.File(filepath, "a") as file:
file["/general/subject/subject_id"][()] = new_name
@choco-bot
choco-bot / Install.txt
Created February 6, 2025 20:44
roadgeek.font v2005.2 - Passed - Package Tests Results
2025-02-06 20:43:18,752 5608 [DEBUG] - XmlConfiguration is now operational
2025-02-06 20:43:18,968 5608 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-06 20:43:18,968 5608 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-06 20:43:18,968 5608 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-06 20:43:18,968 5608 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-02-06 20:43:18,968 5608 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-02-06 20:43:18,999 5608 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-02-06 20:43:18,999 5608 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-02-06 20:43:18,999 5608 [DEBUG] - Adding new typ
@clayg
clayg / gist:174d8e427c4263230b3cdf6591f3365f
Created February 6, 2025 20:43
Test httptools non-ascii header parsing
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 86584c3..74ad0a8 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -16,6 +16,32 @@ Connection: close
'''.replace(b'\n', b'\r\n')
+RESPONSE1_HEAD_NON_ASCII_KEY = b'''HTTP/1.1 200 OK
+Date: Mon, 23 May 2005 22:38:34 GMT
@DolphinOfficial
DolphinOfficial / PostShutdownFullLog.txt
Created February 6, 2025 20:42
Text file created by Roblox
-- AH POST-SERVER LOGS --
-- ServerID: c202e741-3621-47ff-9934-51758694a1e7
-- Server started: February 06, 2025 08:27 PM UTC | Server uptime: 919 seconds
------------------ LOADB LOGS ------------------
{
}
@choco-bot
choco-bot / FilesSnapshot.xml
Created February 6, 2025 20:42
marktext.portable v0.17.1 - 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\marktext.portable\marktext-x64-win.zip.txt" checksum="94F9ED27DB16B04D2C825C350DB6B0B8" />
<file path="C:\ProgramData\chocolatey\lib\marktext.portable\marktext.portable.nupkg" checksum="EC2C701C7147AA3D569A3B2B21791465" />
<file path="C:\ProgramData\chocolatey\lib\marktext.portable\marktext.portable.nuspec" checksum="BBD39123C3EE814E8BA4CDFEB2CEF3E5" />
<file path="C:\ProgramData\chocolatey\lib\marktext.portable\tools\chocolateyinstall.ps1" checksum="69A8A3FD8B5592382F041323A1CE561A" />
<file path="C:\ProgramData\chocolatey\lib\marktext.portable\tools\chocolateyuninstall.ps1" checksum="F91A23381040C62AADDD353445233701" />
<file path="C:\ProgramData\chocolatey\lib\marktext.portable\tools\chrome_100_percent.pak" checksum="0FD0A948532D8C353C7227AE69ED7800" />
<file path="C:\
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="32px" height="32px" viewBox="0 0 32 31" version="1.1">
<g id="surface1">
@enorrmann
enorrmann / fat_link.sh
Last active February 6, 2025 20:42
ls -s like for fat filesystems
@DevJonny
DevJonny / MinimalApiValidation.cs
Last active February 6, 2025 21:03
Minimal API validation using DataAnnotations
public static class CustomRouteHandlerBuilder
{
public static RouteHandlerBuilder Validate<T>(this RouteHandlerBuilder builder)
{
builder.AddEndpointFilter(async (invocationContext, next) =>
{
var argument = invocationContext.Arguments.OfType<T>().FirstOrDefault();
if (argument is null)
return await next(invocationContext);
@choco-bot
choco-bot / FilesSnapshot.xml
Created February 6, 2025 20:40
nvm.portable v1.1.9 - 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\nvm.portable\nvm-noinstall.zip.txt" checksum="E07E6E278CEA124104EF19FA9C7FBE3D" />
<file path="C:\ProgramData\chocolatey\lib\nvm.portable\nvm.portable.nupkg" checksum="FF02B05B02BE0F87A0E9F50C08F94D88" />
<file path="C:\ProgramData\chocolatey\lib\nvm.portable\nvm.portable.nuspec" checksum="7497EE2BA54061C4258F5A0454E41737" />
<file path="C:\ProgramData\chocolatey\lib\nvm.portable\tools\chocolateybeforemodify.ps1" checksum="1CF3C10146BCEA67C9B62BE6AB98AEE7" />
<file path="C:\ProgramData\chocolatey\lib\nvm.portable\tools\chocolateyinstall.ps1" checksum="D18B78E752DAD795B86C88008EB129D8" />
<file path="C:\ProgramData\chocolatey\lib\nvm.portable\tools\chocolateyuninstall.ps1" checksum="8D6455BF08A22A0BECE24984D769ECE1" />
</files>