-XX:NativeMemoryTracking=detail
jps
ps -p <PID> -o pcpu,rss,size,vsize
--- | |
version: "3.5" | |
networks: | |
penpot: | |
volumes: | |
penpot_postgres_v15: | |
penpot_assets: | |
# penpot_traefik: |
(ns user | |
(:require | |
[clojure.tools.namespace.repl :as r] | |
[clojure.core.async :as a] | |
[promesa.core :as p] | |
[promesa.exec :as px] | |
[promesa.exec.csp :as sp] | |
[promesa.protocols :as pt] | |
[promesa.util :as pu]) | |
(:import |
/** | |
@class BroadcastChannel | |
A simple BroadcastChannel polyfill that works with all major browsers. | |
Please refer to the official MDN documentation of the Broadcast Channel API. | |
@see <a href="https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API">Broadcast Channel API on MDN</a> | |
@author Alessandro Piana | |
@version 0.0.6 | |
*/ | |
/* |
DROP TABLE task; | |
CREATE TABLE task (id bigint not null, parent_id bigint null); | |
-- Create many unrelated linked lists in the same table | |
INSERT INTO task values (1, null); | |
INSERT INTO task (id, parent_id) | |
SELECT i, i-1 FROM generate_series(2, 50000) AS t(i); | |
INSERT INTO task values (50001, null); |
#include <time.h> | |
#include <stdio.h> | |
#include <errno.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <sys/random.h> | |
#define UUID_T_LENGTH (16) | |
#define UNIX_TS_LENGTH (6) |
#!/usr/bin/env bash | |
set -x | |
DOCKER_CLI_EXPERIMENTAL=enabled | |
ORG=${PENPOT_DOCKER_NAMESPACE:-penpotapp}; | |
PLATFORM=${PENPOT_BUILD_PLATFORM:-linux/amd64}; | |
IMAGE=${1:-backend}; | |
DOCKER_IMAGE="$ORG/$IMAGE"; | |
OPTIONS="--platform $PLATFORM -t $DOCKER_IMAGE:$PENPOT_BUILD_BRANCH"; |
#!/bin/bash | |
# Get temp dir | |
tmpdir=$(mktemp -d) | |
# Generate test | |
cat > ${tmpdir}/ListenToSignal.java <<EOF | |
import sun.misc.Signal; | |
import sun.misc.SignalHandler; | |
public class ListenToSignal { |