Skip to content

Instantly share code, notes, and snippets.

View vladget's full-sized avatar

Volodymyr Hetmanshchuk vladget

View GitHub Profile
@vladget
vladget / strace.md
Created May 11, 2021 13:37 — forked from graste/strace.md
strace process for network and memory and other syscalls

File activity

strace -e trace=file -fp PID (file) or strace -e trace=desc -fp PID (file descriptors)

Common calls:

  • access
  • close – close file handle
  • fchmod – change file permissions
  • fchown – change file ownership
@vladget
vladget / example.md
Created December 13, 2018 22:33
Пример выпадающих блоков с текстом
Все директивы поддерживаемые в dappfile.yaml
dimg: <dimg_name... || ~>
from: <image>
fromDimg: <dimg_name>
fromDimgArtifact: <artifact_name>
git:
@vladget
vladget / gitlab-registry.gc.sh
Created January 25, 2018 11:41 — forked from eedugon/gitlab-registry.gc.sh
Manual garbage collector for gitlab registry, it removes old revisions that are not referenced by any tag
#!/bin/bash
# This is a modification of gitlab-gc.sh script created by Peter Bábics (pbabics/gitlab-gc.sh)
# Improvements
# - Searching in all BASE_PATH, not fixing the search to a depth of 2
# - Directories without valid tags or revisions directories won't be processed (to avoid unexpected issues)
# - Logging in case there's nothing to delete
# - running registry-garbage-collect only when something has been deleted