Merge branch 'dev' into vhs
This commit is contained in:
		| @@ -56,7 +56,7 @@ Then set that language, with: | ||||
| LANG=pl_PL.UTF-8 | ||||
| ``` | ||||
|  | ||||
| ... then reboot. | ||||
| ...then reboot. | ||||
|  | ||||
| # Network Time Protocol | ||||
|  | ||||
|   | ||||
| @@ -142,4 +142,3 @@ You can ensure omemo automatcally turns on: | ||||
| ``` | ||||
| --- | ||||
|  | ||||
| 'OTR' encryption is mostly dead, but you can find the old instructions [here](profanity-otr). | ||||
|   | ||||
| @@ -26,15 +26,10 @@ mkdir $DIR && cd $DIR | ||||
| git init | ||||
| ``` | ||||
|  | ||||
| Make a file explaining what the project does: | ||||
|  | ||||
| ```bash | ||||
| vim README.md | ||||
| ``` | ||||
|  | ||||
| Add this to the git: | ||||
| Make a file explaining what the project does, and tell `git` to track it: | ||||
|  | ||||
| ```bash | ||||
| echo "I hereby solemnly swear never to commit a binary." > README.md | ||||
| git add README.md | ||||
| ``` | ||||
|  | ||||
|   | ||||
							
								
								
									
										22
									
								
								data/git/commit_for_another.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								data/git/commit_for_another.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| --- | ||||
| title: "Commit for Another" | ||||
| tags: [ "data", "git" ] | ||||
| --- | ||||
|  | ||||
| You can make Alice the author, while you are still the commiter: | ||||
|  | ||||
| ```sh | ||||
| name="Alice Bobinson" | ||||
| email="alice@email.com" | ||||
|  | ||||
| git add ${file} | ||||
| git commit --author="${name} <${email}>" | ||||
| ``` | ||||
|  | ||||
| Or, make Alice both the committer and the author: | ||||
|  | ||||
|  | ||||
| ```sh | ||||
| git -c user.name="${name}" -c user.email="${email}" commit -m "${message}" | ||||
| ``` | ||||
|  | ||||
							
								
								
									
										13
									
								
								data/sc-im/convert_spreadsheets.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								data/sc-im/convert_spreadsheets.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| --- | ||||
| title: "Convert Spreadsheets" | ||||
| tags: [ "data", "sc-im" ] | ||||
| --- | ||||
|  | ||||
| Convert between spreadsheet formats with `sc-im`. | ||||
|  | ||||
| ```sh | ||||
| sc-im --quiet --quit_afterload --nocurses --export_csv ${file}.xlsx | ||||
| sc-im --quiet --quit_afterload --nocurses --export_tab ${file}.sc | ||||
| sc-im --quiet --quit_afterload --nocurses --export_mkd ${file}.csv | ||||
| sc-im --quiet --quit_afterload --nocurses --export_txt ${file}.tsv | ||||
| ``` | ||||
| @@ -57,5 +57,5 @@ brightnessctl s 10%+ | ||||
|  | ||||
| - [autologin](autologin.md) | ||||
| - [services](sv.md) | ||||
| - [wifi](wpa_cli.md) | ||||
| - [wifi](../../networking/wpa_supplicant.md) | ||||
|  | ||||
|   | ||||
							
								
								
									
										78
									
								
								writing/latex_setup.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										78
									
								
								writing/latex_setup.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,78 @@ | ||||
| --- | ||||
| title: "LaTeX Setup the Hard Way" | ||||
| tags: [ "writing" ] | ||||
| --- | ||||
|  | ||||
| # Warm Up | ||||
|  | ||||
| 1. Deep breath. | ||||
| 1. Cup of tea. | ||||
| 1. Remove the old LaTeX junk you've installed.  Search for 'texlive' or 'latex' in your package manager's installed files. | ||||
| 1. Find `tlmgr` in your package manager. | ||||
|  | ||||
| # `tlmgr` | ||||
|  | ||||
| The LaTeX Package manager is known as `tlmgr`, and often resides in `/opt/texlive/${YEAR}/bin/x86_64-linux/tlmgr`. | ||||
| Double-check the location: | ||||
|  | ||||
| ```sh | ||||
| ls -l /opt/texlive/${YEAR}/bin/x86_64-linux/tlmgr | ||||
| ls /opt/texlive/${YEAR}/texmf-dist/scripts/texlive/tlmgr.pl  | ||||
| ``` | ||||
|  | ||||
| Double-check the year. | ||||
| It should *not* match the real year, it should match the `texlive`. | ||||
|  | ||||
| ## Problems along the Path | ||||
|  | ||||
| You can't use `tlmgr` unless it's in the `$PATH`. | ||||
|  | ||||
| Check if it *is* in the `$PATH` then if it *should* be in the path: | ||||
|  | ||||
| ```sh | ||||
| echo $PATH | ||||
| grep texlive -r /etc/profile* | ||||
| ``` | ||||
|  | ||||
| If `tlmgr` is where it should be, but not in the path, you can add it temporarily: | ||||
|  | ||||
|  | ||||
| ```sh | ||||
| export PATH=${PATH}:/opt/texlive/${YEAR}/bin/x86_64-linux | ||||
| ``` | ||||
|  | ||||
| ...or just reboot. | ||||
|  | ||||
| ## Usage | ||||
|  | ||||
| Search packages: | ||||
|  | ||||
|  | ||||
| ```sh | ||||
| tlmgr search --global epstopdf | ||||
| ``` | ||||
|  | ||||
| Can't find what you need? | ||||
| Search for a specific file instead: | ||||
|  | ||||
| ```sh | ||||
| tlmgr search --global --file epstopdf-base.sty | ||||
| sudo tlmgr install epstopdf-pkg | ||||
| ``` | ||||
|  | ||||
| ## Recommended Packages | ||||
|  | ||||
|  | ||||
| ``` | ||||
| latexmk | ||||
| luatex | ||||
| titletoc | ||||
| titlesec | ||||
| multicol | ||||
| microtype | ||||
| graphicx | ||||
| fontspec | ||||
| makeindex | ||||
| imakeidx | ||||
| ``` | ||||
|  | ||||
| @@ -10,7 +10,8 @@ tags: [ "vim", "basic" ] | ||||
| 
 | ||||
| ## Extras | ||||
| 
 | ||||
| - [Navigation](navigate.md) | ||||
| - [Completion](vim-completion.md) | ||||
| - [Search](vim-search.md) | ||||
| - [Window Splits](vim-windows.md) | ||||
| - [Navigation](vim/navigate.md) | ||||
| - [Completion](vim/completion.md) | ||||
| - [Search](vim/search.md) | ||||
| - [Window Splits](vim/windows.md) | ||||
| - [Use vim bindings in bash](vim/vim_in_bash.md) | ||||
| @@ -1,6 +1,7 @@ | ||||
| --- | ||||
| title: "vim completion" | ||||
| tags: [ "vim", "completion" ] | ||||
| requires: [ "vim basics" ] | ||||
| --- | ||||
| 
 | ||||
| Complete the word by searching for the *n*ext similar word: | ||||
| @@ -1,6 +1,7 @@ | ||||
| --- | ||||
| title: "vim navigation" | ||||
| tags: [ "vim", "navigation" ] | ||||
| requires: [ "vim basics" ] | ||||
| --- | ||||
| 
 | ||||
| | Move                    | Command      | | ||||
| @@ -1,6 +1,7 @@ | ||||
| --- | ||||
| title: "vim search" | ||||
| tags: [ "vim", "search" ] | ||||
| requires: [ "vim basics" ] | ||||
| --- | ||||
| Search for the next and or previous occurrence of the word under your cursor with `*` and `#`. | ||||
| 
 | ||||
| @@ -1,6 +1,7 @@ | ||||
| --- | ||||
| title: "vim in bash" | ||||
| tags: [ "vim", "bash", "inputrc" ] | ||||
| requires: [ "vim basics" ] | ||||
| --- | ||||
| 
 | ||||
| Put bash in vim mode! | ||||
| @@ -1,6 +1,7 @@ | ||||
| --- | ||||
| title: "vim windows" | ||||
| tags: [ "vim" ] | ||||
| requires: [ "vim basics" ] | ||||
| --- | ||||
| 
 | ||||
| | Command                   | Keys                | | ||||
		Reference in New Issue
	
	Block a user