Skip to content

Instantly share code, notes, and snippets.

{"apiVersion":"operators.coreos.com/v1alpha1","kind":"CatalogSource","metadata":{"creationTimestamp":"2025-02-07T00:12:06Z","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-07T00:12:06Z"},{"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-07T00:13:42Z"}],"name":"ack-eks-controller","namespace":"ack-eks-controller","resourceVersion":"103704","uid":"c0ea76b1-0cef-4e6c-a
@lmmx
lmmx / reading-highly-nested-tree-data-as-polars-dataframes.ipynb
Created February 7, 2025 00:22
Reading highly nested tree data as Polars DataFrames.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@janiosarmento
janiosarmento / theme-preview.html
Last active February 7, 2025 00:30
Go Sparkline Theme Preview
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Theme Preview</title>
<style>
body { background-color: #222; font-family: monospace; padding: 0; margin: 0; }
.terminal {
background-color: #000; /* Fundo preto real */
@pravindbrx
pravindbrx / readexcel.py
Created February 7, 2025 00:20
pandas code
import pandas as pd
def update_metadata_from_excel(catalog_name, schema_name, table_name):
"""
Updates table and column metadata in Unity Catalog from an Excel file stored in DBFS.
"""
try:
# Read the Excel file from DBFS path
excel_file_path = "/dbfs/FileStore/metadata/table_metadata.xlsx"
df = pd.read_excel(excel_file_path)
Pipeline still running ...
PipelineRun is still running: Tasks Completed: 24 (Failed: 0, Cancelled 0), Incomplete: 1, Skipped: 7
[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/community-operators-prod/pull/5915
[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'
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 7, 2025 00:18
Rimworld output log published using HugsLib
Log uploaded on Friday, February 7, 2025, 3:17:10 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)
Better Log - Fix your errors(bs.betterlog): 0PrepatcherAPI(1.2.0), 1Fishery(av:0.6.1,fv:0.5.1.2), BetterLog(1.1.0), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
@TechByTom
TechByTom / Web-InterfaceIdentifier-0.2.1.ps1
Created February 7, 2025 00:18
WIP - nmap xml file interpreter that checks a variety of information about any web interfaces found.
param(
[Parameter(Mandatory=$true)]
[string]$XmlPath,
[Parameter(Mandatory=$false)]
[int]$MaxHosts = 15,
[Parameter(Mandatory=$false)]
[int]$RequestTimeout = 10
)
# Function definitions must come before usage
@cReAtOR0009
cReAtOR0009 / App.js
Last active February 7, 2025 00:34
React Native Encryption and Decryption App
import { useRouter } from 'expo-router';
import { View, Text, StyleSheet, TouchableOpacity, ImageBackground } from 'react-native';
export default function WelcomeScreen({ navigation }) {
const router = useRouter()
return (
<ImageBackground
source={require('../assets/1682.jpg')} // Add a background image
style={styles.background}
@danteabrahamdan
danteabrahamdan / advance.ts
Created February 7, 2025 00:17
Advance 07
// pagination.component.html
<div class="flex justify-center mt-3">
<p-button icon="pi pi-angle-double-left" [text]="true" [rounded]="true" (click)="onPageChange(1)" [disabled]="currentPage === 1" />
<p-button icon="pi pi-angle-left" [text]="true" [rounded]="true" (click)="onPageChange(prevPage)" [disabled]="!prevPage" />
@for (page of visiblePages; track $index) {
<p-button [label]="page+''" [text]="true" [rounded]="true" (click)="onPageChange(page)" [disabled]="currentPage === page" />
}
<p-button icon="pi pi-angle-right" [text]="true" [rounded]="true" (click)="onPageChange(nextPage)" [disabled]="!nextPage" />