Skip to content

Instantly share code, notes, and snippets.

View jabielecki's full-sized avatar

Jakub Bielecki jabielecki

View GitHub Profile
@jabielecki
jabielecki / jj_ignore_working_copy.md
Last active February 26, 2024 08:03
In Jujutsu restore `.gitignore` file from a revision

With github.com/martinvonz/jj (Jujutsu), there is a common failure mode:

You checkout too far back into the history where the .gitignore does not catch anymore your large files and you become stuck forever with:

$ jj show
Error: Failed to snapshot the working copy: New file very/big/file of size ~922.4MiB exceeds snapshot.max-new-file-size (1.0MiB)

If it's just one big file, no biggie:

@jabielecki
jabielecki / terraform.log
Created August 18, 2021 09:08
SetSubnets is not supported for load balancers of type 'gateway'
2021-08-18T11:05:37.775+0200 [DEBUG] Adding temp file log sink: /tmp/terraform-log016570937
2021-08-18T11:05:37.775+0200 [INFO] Terraform version: 1.0.0
2021-08-18T11:05:37.775+0200 [INFO] Go runtime version: go1.16.4
2021-08-18T11:05:37.775+0200 [INFO] CLI args: []string{"/usr/local/bin/tf10", "apply"}
2021-08-18T11:05:37.775+0200 [TRACE] Stdout is a terminal of width 211
2021-08-18T11:05:37.776+0200 [TRACE] Stderr is a terminal of width 211
2021-08-18T11:05:37.776+0200 [TRACE] Stdin is a terminal
2021-08-18T11:05:37.776+0200 [DEBUG] Attempting to open CLI config file: /home/kubit/.terraformrc
2021-08-18T11:05:37.776+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021-08-18T11:05:37.777+0200 [INFO] Loading CLI configuration from /home/kubit/.terraform.d/credentials.tfrc.json