Skip to content

Instantly share code, notes, and snippets.

@Arnazz10
Arnazz10 / .deps...remix-tests...remix_accounts.sol
Created February 11, 2025 19:47
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
return address(0);
}
}
@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 */