Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rfjakob's full-sized avatar

rfjakob

  • Vienna, Austria
View GitHub Profile
FROM debian
RUN echo root:root | chpasswd
RUN apt-get -qq -y update && apt-get -qq -y install systemd-sysv
CMD [ "systemd" ]
<html lang="en">
<head>
<!-- Includes all JS & CSS for AG Grid -->
<script src="https://cdn.jsdelivr.net/npm/ag-grid-community/dist/ag-grid-community.min.js"></script>
</head>
<body>
<input type="text" id="filter-text-box" placeholder="Filter..." oninput="onFilterTextBoxChanged()">
<!-- Your grid container -->
<div id="myGrid" class="ag-theme-quartz"></div>
<script>
@rfjakob
rfjakob / index.html
Created December 17, 2023 16:44
grid.js
<!DOCTYPE html>
<html lang="en">
<head>
<link
href="https://unpkg.com/gridjs/dist/theme/mermaid.min.css" rel="stylesheet"
/>
</head>
<body>
<div id="wrapper"></div>
<script src="https://unpkg.com/gridjs/dist/gridjs.umd.js"></script>
go-fuse/fs$ go test -run TestStaleHardlinks -count 1000 -failfast -v
[...]
=== RUN TestStaleHardlinks
21:26:56.177273 callFusermount: executing ["/usr/bin/fusermount3" "/tmp/TestStaleHardlinks1964047937/001/mnt" "-o" "subtype=rawBridge,max_read=131072"]
21:26:56.178931 rx 2: INIT n0 {7.38 Ra 131072 ASYNC_READ,POSIX_LOCKS,ATOMIC_O_TRUNC,EXPORT_SUPPORT,BIG_WRITES,DONT_MASK,SPLICE_WRITE,SPLICE_MOVE,SPLICE_READ,FLOCK_LOCKS,IOCTL_DIR,AUTO_INVAL_DATA,READDIRPLUS,READDIRPLUS_AUTO,ASYNC_DIO,WRITEBACK_CACHE,NO_OPEN_SUPPORT,PARALLEL_DIROPS,HANDLE_KILLPRIV,POSIX_ACL,ABORT_ERROR,MAX_PAGES,CACHE_SYMLINKS,NO_OPENDIR_SUPPORT,EXPLICIT_INVAL_DATA,0x70000000} "\a\x00\x00\x00\x00\x00\x00\x00"... 48b
21:26:56.179001 tx 2: OK, {7.28 Ra 131072 ASYNC_READ,BIG_WRITES,AUTO_INVAL_DATA,READDIRPLUS,NO_OPEN_SUPPORT,PARALLEL_DIROPS,MAX_PAGES 0/0 Wr 131072 Tg 0 MaxPages 32}
21:26:56.179126 rx 4: ACCESS n1 {u=1026 g=1026 r}
21:26:56.179184 tx 4: OK
[vagrant@localhost ~]$ uname -a
Linux localhost.localdomain 5.15.0-3.60.5.1.el8uek.x86_64 #2 SMP Wed Oct 19 20:04:48 PDT 2022 x86_64 x86_64 x86_64 GNU/Linux
[vagrant@localhost ~]$ sudo pritunl logs
[undefined][2023-03-18 14:02:05,738][INFO] Starting setup server
[undefined][2023-03-18 14:02:05,740][INFO] Generating setup server ssl cert
[lively-refuge-1534][2023-03-18 14:12:26,924][INFO] Starting server
selinux_context = "system_u:system_r:pritunl_t:s0"
[lively-refuge-1534][2023-03-18 14:12:26,925][INFO] Generating server certificate...
[lively-refuge-1534][2023-03-18 14:17:13,105][INFO] Starting vpn server

plaintext:

$ tree *
d1
d2

ciphertext:

$ tree */*
@rfjakob
rfjakob / mindeps.py
Last active October 22, 2022 21:12 — forked from huitseeker/mindeps.py
Minimizes a list of debian packages by removing those implied as dependencies of the others
#!/usr/bin/env python3
#######################################################################
# This program is free software; you can redistribute it and/or #
# modify it under the terms of the GNU General Public License as #
# published by the Free Software Foundation; either version 2 of the #
# License, or (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# This is on ext4, kernel 5.13.5
$ rm foo ; echo hello > foo; SECONDS=0 ; while sleep 1 ; do echo -n "$SECONDS " ; filefrag -v foo | grep eof ; done
1 0: 0.. 0: 0.. 0: 1: last,unknown_loc,delalloc,eof
2 0: 0.. 0: 0.. 0: 1: last,unknown_loc,delalloc,eof
3 0: 0.. 0: 0.. 0: 1: last,unknown_loc,delalloc,eof
4 0: 0.. 0: 0.. 0: 1: last,unknown_loc,delalloc,eof
5 0: 0.. 0: 0.. 0: 1: last,unknown_loc,delalloc,eof
6 0: 0.. 0: 0.. 0: 1: last,unknown_loc,delalloc,eof
read(0, "\33[I", 4096) = 3
pselect6(1, [0], [], [0], {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
newfstatat(AT_FDCWD, "/home/jakob/tmp/foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
pselect6(1, [0], [], [0], {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
pselect6(1, [0], [], [0], {tv_sec=4, tv_nsec=0}, NULL) = 1 (in [0], left {tv_sec=3, tv_nsec=281668794})
read(0, "\r", 4096) = 1
pselect6(1, [0], [], [0], {tv_sec=0, tv_nsec=0}, NULL) = 0 (Timeout)
write(1, "\r", 1) = 1
newfstatat(AT_FDCWD, "/home/jakob/tmp/foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
newfstatat(AT_FDCWD, "/home/jakob/tmp/foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
"\r", 1) = 1
write(1, "\33[?25l", 6) = 6
poll([{fd=0, events=POLLIN}], 1, 0) = 0 (Timeout)
getcwd("/home/jakob/tmp", 4097) = 16
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
getcwd("/home/jakob/tmp", 4097) = 16
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
newfstatat(AT_FDCWD, "/home/jakob/tmp/foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], NULL, 8) = 0