From ae53e48342e26c7aa7626fbdb88ff39c581ceb17 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 22 May 2024 00:13:44 +0000 Subject: [PATCH] Update cheatsheets --- tldr/chezmoi | 12 ++++++++---- tldr/linux/tor | 41 +++++++++++++++++++++++++++++++++++++++++ tldr/linux/torify | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+), 4 deletions(-) create mode 100644 tldr/linux/tor create mode 100644 tldr/linux/torify diff --git a/tldr/chezmoi b/tldr/chezmoi index d7168ece..bc4e562b 100644 --- a/tldr/chezmoi +++ b/tldr/chezmoi @@ -13,10 +13,18 @@ source: https://github.com/tldr-pages/tldr.git `chezmoi init` +- Set up `chezmoi` from existing dotfiles of a Git repository: + +`chezmoi init {{repository_url}}` + - Start tracking one or more dotfiles: `chezmoi add {{path/to/dotfile1 path/to/dotfile2 ...}}` +- Update repository with local changes: + +`chezmoi re-add {{path/to/dotfile1 path/to/dotfile2 ...}}` + - Edit the source state of a tracked dotfile: `chezmoi edit {{path/to/dotfile_or_symlink}}` @@ -29,10 +37,6 @@ source: https://github.com/tldr-pages/tldr.git `chezmoi -v apply` -- Set up `chezmoi` from existing dotfiles of a Git repository: - -`chezmoi init {{repository_url}}` - - Pull changes from a remote repository and apply them: `chezmoi update` diff --git a/tldr/linux/tor b/tldr/linux/tor new file mode 100644 index 00000000..96431f43 --- /dev/null +++ b/tldr/linux/tor @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# tor + +> Enable anonymous communication through the Tor network. +> More information: . + +- Connect to the Tor network: + +`tor` + +- Start a Tor relay: + +`tor --relay` + +- View Tor configuration: + +`tor --config` + +- Check Tor status: + +`tor --status` + +- Run as client only: + +`tor --client` + +- Run as relay: + +`tor --relay` + +- Run as bridge: + +`tor --bridge` + +- Run as a hidden service: + +`tor --hidden-service` diff --git a/tldr/linux/torify b/tldr/linux/torify new file mode 100644 index 00000000..37169cb9 --- /dev/null +++ b/tldr/linux/torify @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# torify + +> Route network traffic through the Tor network. +> More information: . + +- Route traffic via Tor: + +`torify {{command}}` + +- Toggle Tor in shell: + +`torify {{on|off}}` + +- Spawn a Tor-enabled shell: + +`torify --shell` + +- Check for a Tor-enabled shell: + +`torify show` + +- Specify Tor configuration file: + +`torify -c {{config-file}} {{command}}` + +- Use a specific Tor SOCKS proxy: + +`torify -P {{proxy}} {{command}}` + +- Redirect output to a file: + +`torify {{command}} > {{path/to/output}}`