Skip to content

Instantly share code, notes, and snippets.

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

Luis León ljle

🏠
Working from home
  • Chile
  • 19:12 (UTC -04:00)
View GitHub Profile
@ld100
ld100 / ArchLinuxWSL2.md
Last active May 23, 2024 13:20
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Obsolete notice

This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.
@LukeMathWalker
LukeMathWalker / audit.yml
Last active May 28, 2024 11:03
GitHub Actions - Rust setup
name: Security audit
on:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
@chabala
chabala / using-google-takeout.md
Last active May 30, 2024 05:42
Merge and extract tgz files from Google Takeout

Recently found some clowny gist was the top result for 'google takeout multiple tgz', where it was using two bash scripts to extract all the tgz files and then merge them together. Don't do that. Use brace expansion, cat the TGZs, and extract:

$ cat takeout-20201023T123551Z-{001..011}.tgz | tar xzivf -

You don't even need to use brace expansion. Globbing will order the files numerically:

$ cat takeout-20201023T123551Z-*.tgz | tar xzivf -