All pastesPublic feed

Public feed

Pastes people chose to make public. Author names hidden.
  • untitled

    7KBabZzBrU·text·2.5 KB·2026-06-17 12:02 UTC
    # ================================
    # CONFIG
    # ================================
    $outputFile = "C:\pslog\process_usage_log.csv"
    $maxFileSizeMB = 100
    $maxArchives = 5
    $intervalSeconds = 15
    
    # ===========
  • untitled

    8SRJnNSgfP·text·2.5 KB·2026-06-16 18:33 UTC
    # ================================
    # CONFIG
    # ================================
    $outputFile = "C:\Temp\process_usage_log.csv"
    $maxFileSizeMB = 10
    $maxArchives = 5
    $intervalSeconds = 15
    
    # =============
  • untitled

    7cKsyLUZjX·text·8.7 KB·2026-06-16 18:01 UTC
    gst-launch-1.0 -vv v4l2src device=/dev/video0 norm=PAL ! 'video/x-raw(format:Interlaced), width=720, height=288, interlace-mode=alternate' ! deinterlace method=linear ! videoconvert ! videoscale ! 'vi
  • untitled

    54DFLenpHq·text·8.7 KB·2026-06-16 18:01 UTC
    gst-launch-1.0 -vv v4l2src device=/dev/video0 norm=PAL ! 'video/x-raw(format:Interlaced), width=720, height=288, interlace-mode=alternate' ! deinterlace method=linear ! videoconvert ! videoscale ! 'vi
  • untitled

    56cT6ShEu9·text·9.5 KB·2026-06-14 07:06 UTC
    # -*- coding: UTF-8 -*-
    import sys
    import os
    os.environ['PYSPARK_PYTHON']='/home/zhangyu/anaconda3/bin/python3'
    from time import time
    import pandas as pd
    import matplotlib.pyplot as plt
    from pyspark i
  • dvwa_test

    6NnpUYdKw5·text·27 B·2026-06-13 09:36 UTC
    <script>alert("1")</script>
  • untitled

    3ATTCfayNE·text·1.4 KB·2026-06-13 07:24 UTC
    background #1B1A1C
    
    color0 #1B1A1C
    color1 #EE49DC
    color2 #FFBAC0
    color3 #FFDDE6
    color4 #95ABD7
    color5
  • untitled

    5EV6SPH7NU·text·584.0 KB·2026-06-13 00:56 UTC
    [Event "Live Chess"]
    [Site "Chess.com"]
    [Date "2026.06.13"]
    [Round "-"]
    [White "cobybrian67"]
    [Black "WordSurgeon"]
    [Result "0-1"]
    [CurrentPosition "2k5/ppp1r1pp/n4p2/8/3P4/P2P1P2/P4KPP/4R3 b - - 1 23
  • untitled

    2Ugdq67zQr·text·4.9 KB·2026-06-12 00:43 UTC
    Improved Mission Timer
    We've updated the mission timer to better communicate what's happening during a run.
    
     Overall clearer timer feedback and readability
    
    The last section is now visually distin
  • untitled

    97UWpSa48A·text·1.0 KB·2026-06-11 12:09 UTC
    certificate="@ByteArray(-----BEGIN CERTIFICATE-----\nMIICvzCCAaegAwIBAgIBADANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhOVklE\nSUEgR2FtZVN0cmVhbSBDbGllbnQwHhcNMjYwMzEwMDAyNjU3WhcNNDYwMzA1MDAy\nNjU3WjAjMSEwHwY
  • Hew metrics aggregation demo

    9GkN25dHc6·hew·2.8 KB·2026-06-11 04:02 UTC
    //! A small metrics aggregation service: sources push samples to a
    //! collector actor, a periodic ticker counts snapshots, and asks read
    //! the aggregates back out.
    
    type Sample {
     name: string;
  • untitled

    6g8S94dQ66·text·10.5 KB·2026-06-08 07:05 UTC
    /\n/mg
    /api
    /api/${o}
    /api/appoints/alipay/pay
    /api/appoints/appointbill/appointmentSubmit
    /api/appoints/appointbill/cancleAppointBill
    /api/appoints/appointbill/instrumentPrice-export
    /api/appoints/ap
  • untitled

    9NzSPMQ6dX·hew·1.3 KB·2026-06-04 22:54 UTC
    // Structured concurrency in Hew: a scope owns its child tasks and joins them
    // all before the scope expression returns. Tasks are forked with `fork { ... }`
    // and run on real OS threads; the enclos
  • untitled

    77kV6cU5B2·hew·4.8 KB·2026-06-04 06:43 UTC
    // demo-tcp-http-proxy.hew
    //
    // Architecture: TCP->HTTP transform proxy with per-connection actors.
    //
    // main - binds :7878, loops accept(); spawns one ProxyConn per client
    // ProxyC
  • untitled

    8j7gcYzjf8·hew·4.9 KB·2026-06-04 05:29 UTC
    // demo-tcp-http-proxy.hew
    //
    // Architecture: TCP->HTTP transform proxy with per-connection actors.
    //
    // main - binds :7878, loops accept(); spawns one ProxyConn per client
    // ProxyC
  • untitled

    2bw7M3FZQv·hew·5.0 KB·2026-06-04 04:06 UTC
    // demo-tcp-http-proxy.hew
    //
    // Architecture: TCP->HTTP transform proxy with per-connection actors.
    //
    // main - binds :7878, loops accept(); spawns one ProxyConn per client
    // ProxyC
  • untitled

    5hU5jZccLe·hew·3.6 KB·2026-06-04 02:38 UTC
    // Multi-actor TCP -> HTTP transform proxy (Hew, v0.5)
    //
    // A TCP server where each accepted connection is handled by its own actor in
    // "active mode": the runtime reactor reads the socket and deliv
  • Hew v0.5 — redis-style KV server (Session machine + Store actor, MULTI/EXEC)

    72Qe5sQSGf·hew·2.9 KB·2026-06-03 01:53 UTC
    // A redis-style key/value server: a Store actor owns the data, a Session
    // machine drives MULTI/EXEC transactions on the client side.
    //
    // Invariants:
    // * All key/value state lives in the Store
  • Hew v0.5 — redis-like server v2 (match dispatch, MULTI/EXEC transactions, conn state machine)

    6L33vWtDjC·hew·4.6 KB·2026-06-03 01:34 UTC
    // A redis-like server in Hew v0.5 — command parsing, key/value storage, and
    // MULTI/EXEC transactions, behind actor message-passing.
    //
    // WHAT IS REAL HERE:
    // * line-oriented command parsing (sp
  • Hew v0.5 — redis-like KV store (in-process actor + ask, RESP-style protocol)

    2XBm7c82nD·hew·2.9 KB·2026-06-03 01:23 UTC
    // In-process redis-like KV store (v0.5 Hew).
    //
    // The actor + HashMap + ask CORE a networked redis server is built on. The TCP
    // front-end is currently blocked by the D10 module-qualified-type-in-R

older pastes →