631 Commits (master)

Author SHA1 Message Date
terminalforlife 907c3cad09 Clear ALL trailing whitespaces in sheets dir
Recursively.
4 years ago
terminalforlife 4e5d24464c Remove trailing whitespaces 4 years ago
Olivier Chemla d70db4e4d2
Adding 3 basic shortcuts
Shortcuts for reloading config file, restart `i3` and exit `i3`
4 years ago
Igor Chubin ab01f07457
Merge pull request #113 from lucis-fluxum/rust-cargo-edits
Tweak comments in Cargo sheet, add more frequently used commands
4 years ago
Luc Street 9427f1e657 Revert Rust comment style 4 years ago
Igor Chubin 8167ec67b0
Merge pull request #115 from lucis-fluxum/rust-async
Add sheet for async programming in Rust
4 years ago
Igor Chubin ee5214ba3e
Merge pull request #112 from lucis-fluxum/rust-tests
Add sheet for unit tests in Rust
4 years ago
Luc Street dac4d5c582 Add sheet for async programming in Rust 4 years ago
Luc Street 71ce6c0c29 Add sheet for ruby classes 4 years ago
Luc Street fcf7085d22 Tweak comments in Cargo sheet, add more frequently used commands
- New comment style avoids incorrect syntax highlighting
4 years ago
Luc Street 2334536dc7 Add sheet for unit tests in Rust 4 years ago
Marcos Sebastian 0fd4d3f647
Fixed flag
Tested it with
  LVM version:     2.02.187(2) (2020-03-24)
  Library version: 1.02.170 (2020-03-24)
  Driver version:  4.42.0

The correct parameter is -l and not -L in the case of a percentage augment
4 years ago
Igor Chubin e2bdf60a30
Merge pull request #109 from abitrolly/patch-2
Fix "danegerous" typo in `btrfs`
4 years ago
Roomcays 1b9535171f added exim cheat sheet 4 years ago
Anatoli Babenia 08ca0fc3f8
Fix "danegerous" typo in `btrfs` 4 years ago
Igor Chubin f3e87397ac added oeis cheat sheet (chubin/cheat.sh#187) 4 years ago
Igor Chubin 2264c81bd7 added oeis cheat sheet (chubin/cheat.sheets#187) 4 years ago
Igor Chubin 9b45d9d8d9 added foo (chubin/cheat.sh#211) 4 years ago
Igor Chubin b24a2a50f4 added sheets/chmod 4 years ago
Your Name 7a10bdf4b9 oeis language support imlpemented as per PR #193 comments 4 years ago
Igor Chubin da420eb6e4 updated jq (#107) 4 years ago
Igor Chubin 6c7db17f2b tmux copymode 4 years ago
Igor Chubin 19718871b9 added sheets/tmux 4 years ago
Igor Chubin 825f4c1070 added rfc 4 years ago
Igor Chubin 70dff49010
logger: cleanup (#105) 4 years ago
Bart van Deenen b1e1e438a0
Update logger 4 years ago
Bart van Deenen 8e66f055cb logger 4 years ago
Igor Chubin 3e27656323
some additional info about doas (#103) 4 years ago
user56441 7dd20a7022 Add `dosbox` 4 years ago
Igor Chubin a6abb2e889
Merge pull request #102 from terminalforlife/master
Code, Formatting Tweaks, Some Fixes, Headers, etc
4 years ago
user56441 ee47819192 Clean `doas` 4 years ago
user56441 aea26d46e1 Make the information in "doas" clearer 4 years ago
user56441 6313a77061 Add "doas" file 4 years ago
terminalforlife de9000196e Substitute tabs for (4) spaces 4 years ago
terminalforlife bcb2d06328 Add to `xev`
Thanks to whomever corrected my previous use of `$(xev)`. I've added a
a note about process substitution.
4 years ago
terminalforlife 1b6b66bd3a Add plenty to, tweak, & tidy `find` 4 years ago
terminalforlife 695e965401 Tweak formatting & wording of `xsel` 4 years ago
terminalforlife 038fb81a05 Tweak formatting & some wording of `lua` 4 years ago
terminalforlife 512c09c0ab Tweak formatting & some wording of `mutt` 4 years ago
terminalforlife 75c9678751 Add manual references & header to `nl` 4 years ago
terminalforlife c2010f5eba Tweak formatting & wording of `libreoffice` 4 years ago
terminalforlife bf7b3e8a8f Tweak formatting & wording of comments in `lynx` 4 years ago
terminalforlife 8843c499e7 Tweak `js` a little, mainly for 80 columns 4 years ago
terminalforlife 48e6c07cc5 Oops, looks like there's a duplicate... noted!
Added note to `nodejs` sheet deferring the user to `js` sheet.
4 years ago
terminalforlife 4e3bf50c9e Tweak and/or add to aws 4 years ago
terminalforlife 9f2dcacb25 Tweak and/or add to awk 4 years ago
terminalforlife c57ad599fc Tweak and/or add to aspell 4 years ago
terminalforlife a34825ddf2 Tweak and/or add to apt-key 4 years ago
terminalforlife 66fd281598 Tweak and/or add to apt-get 4 years ago
terminalforlife a19cd277ee Tweak and/or add to apt-cache 4 years ago
terminalforlife 4341134fa0 Tweak and/or add to apk 4 years ago
terminalforlife 6e39995c7f Tweak and/or add to airport 4 years ago
terminalforlife 72ad5188ef Add `nodejs` file & an example 4 years ago
terminalforlife a5bfe297f8 Add to & improve wording of `source` & add entry 4 years ago
terminalforlife 764fb08b98 Improve & add to wording in `printf` 4 years ago
terminalforlife d8b315c564 Add header to `wget` & add example 4 years ago
terminalforlife 23164992c0 Polish up `dd` a little more 4 years ago
terminalforlife 2c6531caba Because who doesn't like to capitalize? :P 4 years ago
terminalforlife a7ee51774a Add official short description to `ssh` 4 years ago
terminalforlife 71c8721b95 Add header to `stat` 4 years ago
terminalforlife 15bb07c27a Elaborate/correct wording & formatting of `ss` 4 years ago
terminalforlife 4f2627dbeb Add header to `df` 4 years ago
terminalforlife 6493c38859 Tidy & add to the descriptions for `sudo` 4 years ago
terminalforlife ebf2f97633 Add `colrm` file 4 years ago
terminalforlife ade78aaafb Mass-replace tabs with 4-width spacing
This seems to be the predominant choice, and matches the last commit I
just made, so I went ahead and converted them all, and changed any, -
for example, 2-space indents.

Let me know if this is undesired.

To understand why I chose to do this, please refer to the previous
commit's message.
4 years ago
terminalforlife 4df5219c66 Convert tabs to 4 spaces for consistency
This was probably my fault to begin with, as I'm a big fan of tabs.
My bad. It just occurred to that not only do I have my tabs set to 4
columns, but some people may have wonky formatting because of whichever
setting we have for our tabs.
4 years ago
terminalforlife f8b7f7e3c4 Add examples of useless uses of `cat` 4 years ago
terminalforlife beb310e2ae Add basically a hint to a useful file in `/proc` 4 years ago
terminalforlife 489af58ee9 Add nifty Awk trick to fetch the total RAM 4 years ago
terminalforlife 6201e1c588 Add additional `printf` examples 4 years ago
terminalforlife 2d32a8369c Tweak formatting, code, & wording 4 years ago
terminalforlife 7d524d8205 Capitalize abbreviations 4 years ago
terminalforlife c4ea4f09d0 Tweak formatting & add another example 4 years ago
terminalforlife 05fe95ee72 Merge branch 'master' of https://github.com/chubin/cheat.sheets 4 years ago
Igor Chubin 565df5eff0
Update fdisk 4 years ago
David Haines a8ca925b2e adding to fdisk cheatsheet 4 years ago
terminalforlife 2ce193c0ba Fix typos, tidy formatting, & improve writing
This is what late-night boredom does to you. lol
4 years ago
terminalforlife d7473ac185 Fix trailing whitespace on all files
Tidy files; tidy soul!
4 years ago
terminalforlife 9bda601ca8 Tweak and add to `fdisk` and `df` 4 years ago
terminalforlife 59ac157226 Add to `_perl/1line` 4 years ago
terminalforlife 341ff5636f Make header more accurate for `proc` 4 years ago
terminalforlife bd0d11690d Add `wget` file & examples 4 years ago
terminalforlife dde9356508 Add `apt-key` file & an example 4 years ago
terminalforlife 476cf1ee98 Add additional `dpkg` examples 4 years ago
terminalforlife 74c8191b3c Add `dpkg` and an example 4 years ago
terminalforlife 1186810822 Mention whether builtin of `printf` or not 4 years ago
terminalforlife 12331213f2 Add `printf` file with examples 4 years ago
terminalforlife 0e758e9d40 Add `cat` file and a POSIX line 4 years ago
terminalforlife fbb1d392d5 Add additional example 4 years ago
terminalforlife 9297e1874f Add `perldoc` file & an example 4 years ago
terminalforlife 3279f62125 Add a few more Perl examples 4 years ago
terminalforlife 56e57af09c Add method to display terminal cols and lines 4 years ago
terminalforlife 3972687447 Remove random `sudo` instance 4 years ago
Alex Berry 15f7213025 Append, not amend.
intact is not hyphenated.

Newline for formatting.
4 years ago
Igor Chubin 6f9aa78d7e
Merge pull request #89 from schneiderl/master
emacs: fix typos
4 years ago
Igor Chubin c9c425d37d
Merge pull request #90 from roryokane/patch-1
Fix indentation in Ruby cheat sheet
4 years ago
Igor Chubin 4b35ff0a27
Merge pull request #91 from alexberry/patch-1
Adding a few more useful examples to sed.
4 years ago
Igor Chubin 167657879b
Merge pull request #92 from terminalforlife/master
New Examples & `sysctl` File + Wording & Formatting Improvements
4 years ago
Tom Vincent 1ba369f630
Add a jq filter example 4 years ago
terminalforlife c8d0c9e9c0 Tidy up and somewhat improve wording of `ssh` 4 years ago
terminalforlife 16fbc6f6eb Improve formatting and descriptions of `git`
I've also maintained a column limit of 80, for smaller terminals.

Some of these description changes are superfluous, but either improve
clarity, or make things a touch more concise, I believe.
4 years ago
terminalforlife e6da32c2b1 Show `tee` some love, for clarity and consistency 4 years ago
terminalforlife 4c5344e70c Add example to `perl` 4 years ago
terminalforlife cb863ec73c Add `sysctl` file with a few examples 4 years ago
alexberry 3f48743dee
g flag is per-line, not per-file
Make comment clearer
4 years ago
alexberry b2ef20e0d9
Forgot to add paths as utilised -i
Must add a file path when not piping to sed.
4 years ago
alexberry b2210a9ca2
Adding a few more useful examples.
Sed's cheat sheet was a little light, here are a few more examples.
4 years ago
Rory O’Kane 1556ce6b1f
Fix indentation in Ruby cheat sheet 4 years ago
Lucas Gabriel Schneider 706a5e0c0c
fix typos on emacs 4 years ago
terminalforlife 7da14d62dd Improve wording, grammar, and overall message
I've also corrected some syntax and cleaned up anything that was a bit
messy. I believe it's now more presentable.
5 years ago
terminalforlife 36b9feb0a2 Add pretty-print output taken from `/etc/passwd` 5 years ago
terminalforlife 524924166c Merge branch 'master' of https://github.com/chubin/cheat.sheets 5 years ago
Petr Šťastný a8c7a70316
Split configuration guide into multiple segments 5 years ago
Petr Šťastný 9ac8548d2a
Fixed workspace ascii visualisation 5 years ago
terminalforlife 497c345247 Merge branch 'master' of https://github.com/chubin/cheat.sheets 5 years ago
Petr Šťastný e977e75e65
Removed empty line between sections 5 years ago
Petr Šťastný 50c8fce5bd
Changed meta key symbol and added configuration guide 5 years ago
terminalforlife e2b22d476b Address empty line issue mentioned in #83 PR
Had to remove the empty line else it would mess with the search
feature. I didn't realise these sheets are parsed.
5 years ago
Petr Šťastný 1b0728ca42
Added guide to precise new window positioning 5 years ago
Petr Šťastný a14798aab4
Added most useful i3 keybindings 5 years ago
terminalforlife 09e06fc821 Add syntax for fetching lines between patterns 5 years ago
terminalforlife 187916318f Tweaked comments and added alternative 5 years ago
Igor Chubin 7c88ba98f0 moved _scala/:main to _scala/_info.yaml (fixes #84) 5 years ago
terminalforlife 0b61d3884e Fetch unique list of uppercase-only variables
Just wrote this because I'm wanting to convert numerous uppercase
variables in lots of shell programs to lowercase, except the initial
letter of a word. Manually, doing this would take forever.

First, however, I need to compile a list of variable names so I know
for what I want to search and replace, then omit certain ones typically
named in all uppercase, like `UID`, `USER`, `HOSTNAME`, etc, which I
will probably do by parsing `env` and various other special parameters
used by Bash.

Fun times.
5 years ago
terminalforlife 0ab091a8cd Add alternative approach to parsing `xev` 5 years ago
terminalforlife 81711828bc Add more examples using associate array variables 5 years ago
terminalforlife 6e507588ec Prefer `grep -[EF]` over deprecated `[ef]grep` 5 years ago
terminalforlife cd41a3e2ca Add line to list out available sections 5 years ago
terminalforlife 9c6e04b5c0 Add line to list unique DEB sections, using awk 5 years ago
terminalforlife c08786cb0e Added alternative syntax for easier reading 5 years ago
terminalforlife 25f4ef1390 Add examples for `dpkg-deb` 5 years ago
terminalforlife 2c2a1f4fb6 Add file 'dpkg-deb' 5 years ago
terminalforlife e699f7c298 Add two examples for `apt-cache` 5 years ago
terminalforlife a388ee6534 Add file 'apt-cache' 5 years ago
terminalforlife 6955dd2709 Add extra information on source 5 years ago
terminalforlife b83d187fee Add file 'source', and briefly show its usage 5 years ago
terminalforlife 2e4f7be1b8 Add examples and detailed explanation of `umask` 5 years ago
terminalforlife be76804476 Add file 'umask' 5 years ago
terminalforlife 9feb9d7ddf Add a multitude of examples for apt-get 5 years ago
terminalforlife 4a67b1d9ad Add file 'apt-get' 5 years ago
terminalforlife 27c86e12f5 Add a number of examples for udisksctl 5 years ago
terminalforlife f5ec296286 Add 'udisksctl' file 5 years ago
terminalforlife cddd2c0e11 List executable files found in PATH
Many uses for this!

Say you install a large set of updates, so want to cross-check the old
list to the new one, in order to find out which new executables were
installed.

Or, perhaps less obscure, you might this list, without the `-printf`
part, to check their permission and ownership settings.
5 years ago
terminalforlife a7e9bd13e1 Add 'nl' file and show basic example
Interestingly -- to me, at least, `nl` by default will only number
non-empty lines (coreutils v8.25), whereas `cat` will show all.
5 years ago
terminalforlife f04907ea0d Add examples and clean up existing ones
The examples given using xargs are so far mostly never or rarely ever
best used or even well used with xargs, such as with find, which is
popular, unfortunately.

My reason for adding counters to some of these examples, is that, as an
educational resource, I believe it's important users understand what is
and is _not_ good practice; this is, at least, how I taught myself.
5 years ago
terminalforlife 76109ca8cd Add 'sed' and give example of in-place changes
The `-i` flag with `sed` means "in-place", if you're curious; the use
thereof allows for making actual changes to the file, not just
superfluously, such as for additional parsing.

The `s///` is a simple substitution, wherein the `s` marks that it's a
substitution, the `/` marks the boundaries*, and the final boundary can
be suffixed with various flags, such as `g`, for global operations, -
and `i`, for case-insensitive operations.

* required, but the slash can switched for something else, if needed, -
such as `|`, which is commonly used for paths. For example:

  `s|/path/to/file|/path/file|`
5 years ago
terminalforlife 8af39f5168 Merge with upstream master 5 years ago
terminalforlife 69bbce3d28 Add vignette and grayscale example
I mostly use this sort of thing to create backgrounds which seem to go
nicely with my terminal theme and layout. Works well on nature images.
5 years ago
terminalforlife 0f22053f54 Fix and clean code and comments
The for loop was problematic for numerous reasons my headache won't
allow me to list. I've optimized it, while hoping to maintain the point
for which it was submitted.

A couple of typos were fixed; nothing major.
5 years ago
Igor Chubin 2a42d6b73d
Merge pull request #79 from terminalforlife/master
A Few Additional Code Lines (Likely More to Come)
5 years ago
Igor Chubin 3bb0fbb1c8
Added missing / 5 years ago
Nic Acton 6530225403
sheet for /proc pseudo-directory
Feel like there's good use. There's a `man proc` so this can do that as well.
5 years ago
terminalforlife 86007dd5db Delete extension-specific files using logic
This was taken from my own notes amassed over several years. Commands
like these are a real time-saver.

A lot of people, I imagine, will probably use `-exec rm {} \+` which is
fine and all, but it's another process you'd have to launch, which
isn't necessary at all, unless you need certain `rm` functionality.
5 years ago
terminalforlife 8e5e9dd0a4 Minor comment cleanup, to keep it consistent 5 years ago
terminalforlife d69a3c8e3a Very useful when you need to test for certain permissions. I imagine
this would be most useful when dealing with more advanced permission
schemes.
5 years ago
terminalforlife c12d8e2df2 Show counting lines awk reads from STDIN
This is useful, but not if this is _all_ you're after; in those
cases, you're better off just using `free | wc -l` or similar.

However, there may be times you need to count the number of lines in
order to achieve _other_ things programmed in awk, which would then be
crucial!

For example, you may wish to output text informing the user of how many
log entries were discovered in one or more files given to awk.
5 years ago
terminalforlife ff4af91485 Access environment variables from within awk.
ENVIRON is a special associative array variable, and LS_COLORS is an
index therein. If you want to see the available variables you could
use, you could execute the trusty `env` command.
5 years ago
terminalforlife fec416c763 Show using awk without data via STDIN
This is useful for those times you want to just do something in awk, -
on-the-fly, without having to rely on its standard input (STDIN).

It's especially handy when you want to perform floating-point
arithmetic, if you're not a shell like ZSH which does support it.
5 years ago
Igor Chubin 8566d86739
Merge pull request #73 from Nondv/patch-4
add note on ruby -l switch
5 years ago
Igor Chubin f7f987fd68
Merge pull request #74 from Nondv/patch-5
[ruby][case] Add a note about ===
5 years ago
Igor Chubin 453904eb92
Merge pull request #76 from Nondv/divide-emacs
[emacs] move some info to separate files
5 years ago
Igor Chubin 32e18c603a
Merge pull request #77 from Nondv/patch-1
[ruby] merge if/else with if/elsif/else
5 years ago
Dmitry Non d68cc4281a delete recursion from root
there's theory/recursion for that
5 years ago
Dmitriy Non 32ab01e12a
remove extra empty line 5 years ago
Dmitriy Non 4cabda0a56
[ruby] merge if/else with if/elsif/else
No need to add extra lines to the output. Shorter is better :)
5 years ago
Dmitry Non 0dd42bed00 [emacs] move macros info to new file 5 years ago
Dmitry Non 246adf89fc [emacs] move dired to new file 5 years ago
Dmitry Non 6ae4d1ad45 [emacs] move telnet to new file 5 years ago
Dmitriy Non 6083bca0a8
[ruby][case] Add a note about ===
A bit advanced but required knowledge about the magic in `case`
5 years ago
Dmitriy Non 10313bda28
add note on ruby -l switch
Quite a useful switch for one-liners
5 years ago
Igor Chubin ed061663ba
Merge pull request #71 from lucis-fluxum/python3-args-kwargs
*args, **kwargs for python
5 years ago
Igor Chubin fec7314c85
Merge pull request #72 from lucis-fluxum/python3-super
Superclass __init__ and parameters in python
5 years ago
Igor Chubin 4752f11b4c
Merge pull request #70 from lucis-fluxum/python3-threads
Basic multithreading for python
5 years ago
Igor Chubin 8e793c7755
Merge pull request #69 from lucis-fluxum/python3-classes
Basic python classes and methods
5 years ago
Luc Street 83e59ad722 Mention use of splat operator to unpack arguments 5 years ago
Luc Street d03c115396 Basic multithreading for python 5 years ago
Luc Street d1e103ad15 Superclass __init__ and parameters in python 5 years ago
Luc Street e25ea979f5 *args, **kwargs for python 5 years ago
Luc Street 5a81bc7c1d Basic python classes and methods 5 years ago
Luc Street 8b04830b56 Add python list comprehension sheet 5 years ago
Dayne Broderson 7f9c0b04dc
Create dcfldd 5 years ago
Anatoli Babenia 57156de1a3
Cheat sheet for PostgreSQL 5 years ago
Thomas Sullivan a0a7ced9b4 synced cargo and _rust/Cargo 5 years ago
Igor Chubin a21c2c2fdf
Merge pull request #61 from mwl/patch-1
Wildcards (`*`) should always be in single quotes
5 years ago
Igor Chubin 9be9095dea
Merge pull request #63 from sullivant/rust
Added page for Cargo package manager.
5 years ago
Igor Chubin affa6bad69
Merge pull request #64 from angoca/master
More instructions for Db2
5 years ago
Andres Gomez Casanova 5026a1a373
Create sqlpl 5 years ago
Andres Gomez Casanova 536bea6d49
Update queries 5 years ago
Andres Gomez Casanova 0f69119a48
Update dml 5 years ago
Andres Gomez Casanova dea825fcc4
Update ddl 5 years ago
Andres Gomez Casanova b87e883de5
Update dcl 5 years ago
Igor Chubin cdea744f8e added sheets/_latex/_info.yaml 5 years ago
Thomas Sullivan 2600ab05ee Added page for Cargo package manager. 5 years ago
Thomas Sullivan cb468a8080 added latex 5 years ago
Martin Westergaard Lassen 474823fbd7
Wildcards (`*`) should always be in single quotes
Otherwise bash might expand with if matches are found
5 years ago
Igor Chubin b01259c674
Merge pull request #58 from jmcguire/patch-1
update aspell
5 years ago
Hai Vu 30c09038ce
Fix Merge two dicts
The square brackets are wrong and will generates a `SyntaxError`, the correct way is to use curly brackets. I have tested this before making the update.
5 years ago
Justin McGuire 90ad9e4458
update aspell
fixing spell -> aspell
5 years ago
Igor Chubin 85e8e86feb added nim support 5 years ago
Alexander Popov 16e40d1c0f Add cheatsheet for kafka-consumer-groups cli 5 years ago