diff --git a/data/unison.md b/data/unison.md index 55a1168..6b0781b 100644 --- a/data/unison.md +++ b/data/unison.md @@ -1,6 +1,7 @@ --- title: "unison" tags: [ "backups", "synch" ] +requires: [ "ssh" ] --- Install unison on both machines, and make sure both have the same version of unison, with the same version of the ocaml compiler (the smallest difference will cause problems). @@ -14,7 +15,7 @@ Create the `~/.unison` directory on both machines. Make a job called `backup`: ```sh -JOB=backup +job=backup ``` Here is an example job, which synchronizes the `~/music` directory with a remote machine which has the same username. @@ -24,16 +25,16 @@ Here is an example job, which synchronizes the `~/music` directory with a remote echo " auto = true root=$HOME -root=ssh://$USER@$IP_ADDRESS/$HOME +root=ssh://${user}@${ip_address}/$HOME path=music ignore=Name *.flac -" > ~/.unison/"$JOB".prf +" > ~/.unison/"${job}".prf ``` -Remember to specify `$IP_ADDRESS` +Remember to specify `${ip_address}` The last command means it will ignore any file with a name ending in `.flac`. @@ -43,7 +44,7 @@ The first command means this will run but also confirm which files will be delet Or you can deleted that line in the `.prf` file and run it with a flag: ```sh -unison -batch *backup*.prf +unison -batch ${job}.prf ``` Set unison to run with crontab or a systemd unit file to have directories synchronize automatically. diff --git a/data/view_torrents.md b/data/view_torrents.md index 9218034..b8e4561 100644 --- a/data/view_torrents.md +++ b/data/view_torrents.md @@ -5,7 +5,7 @@ tags: [ "data", "transmission", "torrenting" ] ```sh -transmission-show $file.torrent | less +transmission-show ${file}.torrent | less ``` `TRACKERS` shows where transmission will ask who has the torrent, but will probably be out of date. diff --git a/data/w3m.md b/data/w3m.md index 082963b..e192b52 100644 --- a/data/w3m.md +++ b/data/w3m.md @@ -1,6 +1,6 @@ --- title: "w3m" -tags: [ "browsers" ] +tags: [ "browser" ] --- Open a search tab: diff --git a/distros/debian/apt.md b/distros/debian/apt.md index 73203a0..aadaea8 100644 --- a/distros/debian/apt.md +++ b/distros/debian/apt.md @@ -1,15 +1,12 @@ --- -title: "apt" -tags: [ "distros" ] +title: "apt troubleshooting" +tags: [ "debian" ] --- -## apt - -### Configurations? Messed up a package's configuration files? ```sh -sudo apt-get purge [thing] +sudo apt-get purge ${package} ``` ```sh @@ -19,16 +16,16 @@ sudo apt autoremove Check if you still have related things: ```sh -apt search [thing] +apt search ${package} ``` ```sh -sudo apt-get install [ thing ] +sudo apt-get install ${package} ``` Still have problems? ```sh -sudo dpgk --force-confmiss -i /var/cache/apt/archives/[thing] +sudo dpgk --force-confmiss -i /var/cache/apt/archives/${package} ``` diff --git a/distros/void/aeroplanes.md b/distros/void/aeroplanes.md index 1cf414a..a67f67e 100644 --- a/distros/void/aeroplanes.md +++ b/distros/void/aeroplanes.md @@ -2,6 +2,7 @@ title: "Aeroplane Mode in Void" tags: [ "void" ] --- + Put your device in 'aeroplane' mode (e.g. where no trace of signal leaves it) by turning off Wi-Fi and blue-tooth. ```sh diff --git a/networking/ssh.md b/networking/ssh.md index 8b97ff8..f6af8a2 100644 --- a/networking/ssh.md +++ b/networking/ssh.md @@ -2,6 +2,7 @@ title: "ssh" tags: [ "networking" ] --- + # Basic `ssh` Try out basic ssh by accessing `git.charm.sh`, without needing authentication: @@ -35,7 +36,7 @@ Test it works by using ssh into your own system, from inside: ```sh -ssh $USER@localhost +ssh ${user}@localhost ``` Access the computer from another computer on the same local network by finding your computer's IP address. @@ -83,7 +84,7 @@ The other is secret. Now send those keys to a remote computer: ```sh -ssh-copy-id $USERNAME@IP_ADDRESS +ssh-copy-id ${username}@{ip_address} ``` Now you can log in without a password. diff --git a/networking/tor.md b/networking/tor.md index 8af5d80..2387ed6 100644 --- a/networking/tor.md +++ b/networking/tor.md @@ -16,6 +16,8 @@ Uncomment the lines about `/var/lib/tor/hidden_services`, including port 22 (or # SSH over tor -install package `torsocks`, and add it before `ssh` command, for easier use, add it to `.ssh/config` +Install package `torsocks`, and add it before `ssh` command, for easier use, add it to `.ssh/config`. -`torsocks ssh user@{someonionhash}.onion` +```sh +torsocks ssh ${user}@{someonionhash}.onion +``` diff --git a/networking/transmission.md b/networking/transmission.md index 4920676..bc59c75 100644 --- a/networking/transmission.md +++ b/networking/transmission.md @@ -2,7 +2,6 @@ title: "transmission" tags: [ "networking", "torrenting" ] --- -# Torrench Search for a torrent, e.g. 'sita sings the blues'. diff --git a/networking/troubleshooting.md b/networking/troubleshooting.md deleted file mode 100644 index e50f0bf..0000000 --- a/networking/troubleshooting.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -title: "troubleshooting" -tags: [ "networking" ] ---- - -# Do you have an IP? - -If not, try checking out what your local networking interfaces are, then check if they have been picked up: - -```sh -dmesg | grep eth0 -``` - -# Display Active Ports - -```sh -netstat -l -``` - -...or maybe narrow it down to http: - -```sh -netstat -l | grep http -``` - diff --git a/shell/setup/quality_of_life.md b/shell/setup/quality_of_life.md index 9fda5d3..a66e054 100644 --- a/shell/setup/quality_of_life.md +++ b/shell/setup/quality_of_life.md @@ -1,7 +1,6 @@ --- title: "Quality of Life" tags: [ "basics", "setup" ] -dependencies: [ "vi", "basics" ] --- This & That diff --git a/sound/festival.md b/sound/festival.md index e70fbec..8f0282b 100644 --- a/sound/festival.md +++ b/sound/festival.md @@ -2,6 +2,7 @@ title: "festival" tags: [ "sound" ] --- + # Basics Add your user to the audio group, and install `festival-english`. diff --git a/networking/graph-easy.md b/vision/graph-easy.md similarity index 99% rename from networking/graph-easy.md rename to vision/graph-easy.md index 0e084f5..06485dd 100644 --- a/networking/graph-easy.md +++ b/vision/graph-easy.md @@ -1,6 +1,6 @@ --- title: "Easy Network Graph" -tags: [ "networking" ] +tags: [ "flowchart" ] --- Set up a file like this, called `troubleshooting.txt`. diff --git a/writing/vim/subs.md b/writing/vim/subs.md index 3d1b451..683fb25 100644 --- a/writing/vim/subs.md +++ b/writing/vim/subs.md @@ -1,8 +1,9 @@ --- -title: "find and replace" +title: "find and replace with confirmation" tags: [ "vim", "search", "replace", "find", "TUI" ] requires: [ "vim" ] --- + Search for the next and or previous occurrence of the word under your cursor with `*` and `#`. Search and replace the first 'one' found with 'two':