Skip to content

Instantly share code, notes, and snippets.

@lvanasse
lvanasse / ci-sim-03.log
Created February 11, 2025 19:45
[sim-03] CI Log for nuttx @ 381d3fe64f4da2b09f12bd8f0cd2d1f07d86b3d3 / nuttx-apps @ fb0c1e10ded2a6fb9f066b9893662cbcc86e4646
Script started on 2025-02-11 19:24:51+00:00 [COMMAND="/home/ludovic/nuttx-release/run-job.sh sim-03" <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=sim-03
+ neofetch
.-/+oossssoo+/-.
`:+ssssssssssssssssss+:`
-+ssssssssssssssssssyyssss+-
.ossssssssssssssssssdMMMNysssso.
/ssssssssssshdmmNNmmyNMMMMhssssss/
@ibrhmkoz
ibrhmkoz / schemafull-json-over-object-types.md
Last active February 11, 2025 20:02
Why use schemafull json over object types?

The key reason for wanting schemafull JSON alongside object types in EdgeDB comes down to proper modeling of composite values that share their lifecycle with a parent entity. Let me explain with a concrete example:

Consider a Setting resource that looks like this:

{
    "id": "e2ba936c-fdfd-4873-8732-fb748e3f7f94",
    "isActive": true,
    "memberId": "member1",
    "workspaceId": "workspace1",
 "trigger": {
package com.model;
import jakarta.persistence.*;
/**
* Entity representing an address.
*/
@Entity
public class Address {
@clayoster
clayoster / dnsquery,.yaml
Created February 11, 2025 19:44
kube deployment example
apiVersion: apps/v1
kind: Deployment
metadata:
name: dnsquery
labels:
app: dnsquery
spec:
replicas: 1
selector:
matchLabels:
@Serialcut
Serialcut / Cryptohack - Lazy CBC.py
Last active February 11, 2025 20:07
Cryptohack - Lazy CBC
import requests
from pwn import xor
def fetch(url):
return requests.get(url).json()
def main():
ciphertext = fetch(f"http://aes.cryptohack.org/lazy_cbc/encrypt/{(b'a' * 32).hex()}/")['ciphertext']
c0, c1 = ciphertext[:32], ciphertext[32:]
@SurgeonTalus
SurgeonTalus / gen_images.mjs
Last active February 11, 2025 20:24 — forked from yukiarimo/gen_images.mjs
Generate images using Draw Things HTTP API
import { writeFile } from 'fs/promises'
const DRAW_THINGS_URL = 'http://127.0.0.1:7860/sdapi/v1/txt2img'
const BATCH_COUNT = 5
const IMG_SIZE = 512
const MAX_FILE_NAME_LEN = 30
const prompt = 'bunch of carrots'
const params = {
@sfsdfsfdfdsggfdfg
sfsdfsfdfdsggfdfg / %Roxio Creator NXT Gold Crack
Created February 11, 2025 19:43
&^%Roxio Creator NXT Gold Crack 8 v21.1.15.0 Free Download Latest 2025
%<<Roxio Creator NXT Gold Crack
@idkidk83883
idkidk83883 / index.html
Created February 11, 2025 19:43
valentine
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Will You Be My Valentine?</title>
<style>
/* pink Background with subtle Valentine-themed image */
body {
background-color: pink; /* Set background color to pink */
@kirillsimin
kirillsimin / flask-app-truenas-scale-custom-app.md
Created February 11, 2025 19:43
Flask App in TrueNAS SCALE as a Custom App

Deploy a Flask App in TrueNAS SCALE as a Custom App

This guide walks through setting up a Flask application as a Custom App in TrueNAS SCALE using the UI.


1️⃣ Image Configuration

Set up the container image:

Repository: python