Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<title>Allure Report</title>
@listerr
listerr / rt-groupadd
Last active March 13, 2025 12:21
RT REST2 API bash example
#!/bin/bash
# Simple example using RT's REST2 API to add an existing user to a group:
# Requires curl and jq to be installed.
CURL=/usr/bin/curl
RT_URL='https://<your_rt_server>'
RT_TOKEN='<your_token>'
[[ -z "$1" ]] && echo "usage: $0 <user> <group>" && exit 1
GET /v4/subscriptions HTTP/1.1
X-Device-Token-V2: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3NDE4Njc4NDMsImV4cCI6MTc0OTkwMzA0MywiaWQiOiI2NmQ5NGNmYmJkMzkzZTNiZTUwYjgyMTQifQ.tVcAWYcaOWIURRqa2_L27zgaU799USv8_yigkpF4B3ONnri3YZlSR6qP16hO1BShrG8_s7zE39geasZh6jpTV6GyKzoVZCCVVSdIxmiT6kmQMD1XJiFOraQDg4588RzAR0ReSdFPwEDmd3R01Z0MugltnqZNlfx0WhL9YDHMac2Y4_zyAe0hbOTBs5aMtSHAcEZnhtQ2SIztSdmNKxeWvlIQzaqxv4pTksIP95Jkw5CR-tYWi9G9MwAkno_XLVVRU_Ld5sRNvZ_uGtPDo-7nDab0E84AeM7nvr96kAyB6MnRtcR22-J3AxN12UwPl2C7fOd6z4dhPvSAkLW-9CTIs65Fq5LG2xgwCbBMw6KsMqxVbhSfEQrRItKOqBBiaOqiYGAFB3rcYzq_dKug4cbudjt_984stdMC3ZMnLYDd2Ubf81eAmMAneZuV-ImbYygtS-w895hcD9y5QrFL0EYAHPyq2RfZdRzBLHZVHCn-bEIQoXnJetbFABnzStBbAQZwN7T342CnDAQT9NLsynZkIg_InY2mzBxBOSzBoKkS0YnvsV_RRAFjDmOffzLPntLQvZdG3IyM1xCHMC00BPVmcqR_qGRCHQXK3ZYbIRFKuatOv4bJO9c9jO_5O49lba66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or OkHttp
Accept: application/json
Accept-Charset: UTF-8
Content-Type: application/json
Content-L
@erossini
erossini / middlenote.cs
Last active March 13, 2025 12:18
Coding Challenge: Find the Middle Node in a Linked List
/* Coding Challenge: Find the Middle Node in a Linked List
Problem Statement:
Write a method that finds and returns the middle node of a singly linked list.
If the list has an even number of nodes, return the first of the two middle nodes.
Examples:
FindMiddle(["a", "b", "c", "d", "e", "f", "g"])"d"
FindMiddle(["a", "b", "c", "d", "e", "f"])"c"
@fabricioifc
fabricioifc / tutorial.md
Last active March 13, 2025 12:32
Monolito + Docker + NGinx

🛠 Atividade Prática: Criando um To-Do List Monolítico

📌 Objetivo: Criar um sistema simples de cadastro de tarefas com funcionalidades de adicionar, editar, excluir e marcar como concluído.

👨‍💻 Tecnologias recomendadas

  • Stack básica: HTML, CSS, JavaScript (para frontend) + Python (Flask) ou Node.js (Express) para o backend.
  • Banco de dados: SQLite (simples e não precisa de configuração extra).

📌 Passo 1: Configurar o Ambiente

@birdgun
birdgun / agent loop
Created March 13, 2025 12:17 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
PUT /v2/devices HTTP/1.1
User-Agent: Lift/1.29.1 (samsung SM-G990U1; Android 14) Ktor OkHttp
Accept: application/json
Accept-Charset: UTF-8
Content-Type: application/json
Content-Length: 340
Host: stage-api.liftstory.com
Connection: Keep-Alive
Accept-Encoding: gzip
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created March 13, 2025 12:15
Rimworld output log published using HugsLib
Log uploaded on Thursday, March 13, 2025, 2:15:03 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies)
Vanilla Backgrounds Expanded(vanillaexpanded.backgrounds): VBE(1.0.0)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)