Skip to content

Instantly share code, notes, and snippets.

View mateuszkwiatkowski's full-sized avatar
🏠
Working from home

Mateusz Kwiatkowski mateuszkwiatkowski

🏠
Working from home
View GitHub Profile
#!/usr/bin/env python
import logging
import os
from datetime import datetime, timedelta
import django
django.setup()
@mateuszkwiatkowski
mateuszkwiatkowski / vscode-remote-ssh-freebsd.md
Last active August 28, 2024 03:10
Configure FreeBSD to work with VScode's remote ssh extension

This procedure was tested on FreeBSD-CURRENT build from d8819d88af52.

  1. Enable linuxulator and install linux userland:
    # sysrc linux_enable="YES"
    # service linux start
    # pkg install linux_base-c7
    
@mateuszkwiatkowski
mateuszkwiatkowski / freebsd-oci-contianers.md
Last active May 11, 2022 12:57
Run OCI (docker) containers on FreeBSD

Install runj and containerd: pkg install runj containerd

Currently containerd port is missing rc.d script so we need to create one:

cat <<EOF > /usr/local/etc/rc.d/containerd
#! /bin/sh

# PROVIDE: containerd
# REQUIRE: DAEMON NETWORKING

Keybase proof

I hereby claim:

  • I am mateuszkwiatkowski on github.
  • I am kwiat (https://keybase.io/kwiat) on keybase.
  • I have a public key whose fingerprint is 28C7 0863 4399 1658 FC55 435C 596C CE75 D3D6 0563

To claim this, I am signing this object:

@mateuszkwiatkowski
mateuszkwiatkowski / Awesome, dual head and mixed DPI
Last active June 10, 2021 18:06
Awesome WM, and two heads with different DPI
### Problem description
To improve my productivity I bought a 4K display and wanted to use it altogether with old 1K display.
It turned out that mixing two different DPIs doesn't work out of the box so some hacks are needed.
### Solution
##### 1. Set HiDPI as a default
To set HiDPI as default please refer to https://wiki.archlinux.org/index.php/HiDPI#X_Resources