Skip to content

Instantly share code, notes, and snippets.

View mildred's full-sized avatar

Mildred Ki'Lya mildred

View GitHub Profile
@mildred
mildred / README.md
Last active March 15, 2023 08:57
SwayWM synchronize workspaces on outputs

This will monitor workspace changes and update the current workspace on other monitors. The idea is that workspace number 1 is paired with workspace 11 on second monitor, workspace 21 on 3rd monitor...

Usage:

run it in background along your sway session

Problem: Sway does not allow switching workspaces without focusing it, and focusing a workspaces moves the mouse cursor. So it's impossible to change the current workspace on the secondary output without disrupting the user.

As a consequence, the implementation - for now - will only update the workspace when the moves moves to the output, but this is far from ideal.

@mildred
mildred / Dockerfile
Last active November 21, 2022 12:31
Dockerfile for filestash
#
# Stage 1: Define base image
#
FROM debian:unstable-slim AS base
#
# Stage 2: Build base image
#
@mildred
mildred / keybase.md
Created March 2, 2019 22:20
keybase.md

Keybase proof

I hereby claim:

  • I am mildred on github.
  • I am mildred (https://keybase.io/mildred) on keybase.
  • I have a public key ASDQFes07Yd_g56-PPV853GxC2dKwU5YV7NzWmXJ8ddP_Qo

To claim this, I am signing this object:

@mildred
mildred / interrupts-4.17
Last active October 4, 2018 20:14
Keyboard and touchscreen not working on chromebook cyan linux 4.18 https://github.com/GalliumOS/galliumos-distro/issues/457#issuecomment-427153928
CPU0 CPU1 CPU2 CPU3
0: 10 0 0 0 IO-APIC 2-edge timer
8: 1 0 0 0 IO-APIC 8-edge rtc0
9: 0 1613 0 0 IO-APIC 9-fasteoi acpi
29: 0 0 0 311 IO-APIC 29-fasteoi intel_sst_driver
32: 0 0 103 0 IO-APIC 32-fasteoi 808622C1:00
33: 0 0 0 248 IO-APIC 33-fasteoi 808622C1:01
37: 1709051 0 0 0 IO-APIC 37-fasteoi 808622C1:05
41: 0 0 0 0 IO-APIC 41-fasteoi 8086228E:00
42: 0 0 0 0 IO-APIC 42-fasteoi dw:dmac-1
@mildred
mildred / README.md
Last active May 13, 2018 13:40
Detect renames

A tool to detect renames, specification

Goal

  • Can be used in conjunction with rsync. Executed before rsync to renames files to their new location and rsync can synchronize the rest as it works well for that
  • Does detect the file renames that happened in a tree and apply the changes in the other tree

Scenarios

@mildred
mildred / terraform-destroy.log
Created May 11, 2018 08:39
terraform destroy logs
2018/05/11 09:38:45 [INFO] Terraform version: 0.11.7 41e50bd32a8825a84535e353c3674af8ce799161
2018/05/11 09:38:45 [INFO] Go runtime version: go1.10.1
2018/05/11 09:38:45 [INFO] CLI args: []string{"/home/mildred/Work/SquareScale/squarescale-infrastructure/bin/terraform-0.11.7", "destroy", "-force"}
2018/05/11 09:38:45 [DEBUG] Attempting to open CLI config file: /home/mildred/.terraformrc
2018/05/11 09:38:45 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/05/11 09:38:45 [INFO] CLI command args: []string{"destroy", "-force"}
2018/05/11 09:38:45 [INFO] command: empty terraform config, returning nil
2018/05/11 09:38:45 [DEBUG] command: no data state file found for backend config
2018/05/11 09:38:45 [DEBUG] New state was assigned lineage "596ea3fc-e5a8-78b7-c0cd-5ee21f559817"
2018/05/11 09:38:45 [INFO] command: backend initialized: <nil>
@mildred
mildred / README.md
Last active May 8, 2018 22:13
P2P sending files / decentralized website

Components:

  • a laptop with a file hierarchy to send
  • a server that will receive the files

Operation:

  • Client generates a unique key pair
  • Client configures server to accept files from this public key
  • Server advertise itself on bittorrent DHT using hash(this protocol name, "server" role, public key)
@mildred
mildred / README.md
Last active September 21, 2024 06:59
Build a fedora kernel rpm using docker and git checkouted sources instead of a src.rpm

Build a fedora kernel rpm

Rationale:

  • I need a custom kernel (because sound won't work with vanilla)
  • I want to use Fedora Atomic Host
  • The only way to override the kernel with Fedora Atomic Host is to install a kernel package using ostree-rpm
  • I have a metered network connection and want to avoid downloading the kernel sources too many times
  • The powerful machine that can build the kernel is nor running Fedora or Red-hat based system with rpmbuild available
@mildred
mildred / README.md
Last active February 5, 2018 13:43
Pull requests from Git CLI

Put this in your PATH. Requires git-hub

@mildred
mildred / boot.log
Created January 24, 2018 17:14
CoreOS m5.large boot log
+----------------------------------------------------------------------------+||||||||||||||||||||||||+----------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, `e' to edit the commands
before booting or `c' for a command-line.  *CoreOS default  CoreOS USR-A  CoreOS USR-B