Skip to content

Instantly share code, notes, and snippets.

View rfjakob's full-sized avatar

rfjakob

  • Vienna, Austria
View GitHub Profile
wget \
--recursive \
--no-clobber \
--page-requisites \
--adjust-extension \
--convert-links \
--restrict-file-names=windows \
https://www.example.com
!/bin/bash
set -eu
m1000() {
for i in $(seq 100) ; do
D=mtest.$BASHPID.$i/foo/bar/baz
mkdir -p $D
touch $D/foo $D/bar
echo AAAAAAAAAAAAAAAAAAAAA > $D/foo
package main
import (
"fmt"
"os"
"golang.org/x/sys/unix"
)
func main() {
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 #