2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-19 03:25:44 +00:00
Commit Graph

731 Commits

Author SHA1 Message Date
Igor Chubin
4bcc9d961a
Merge pull request #143 from chubin/len80
Fix comment length in all first-level cheat sheets
2020-11-22 20:32:46 +01:00
Igor Chubin
43e9eaf59f
Merge pull request #144 from raymondchen625/master
Add eval-all commands
2020-11-22 20:17:57 +01:00
Igor Chubin
f2c40609a1
Update yq_v4 2020-11-22 20:17:33 +01:00
Raymond
5a9dbeab58 Add eval-all commands 2020-11-22 09:11:14 -05:00
Igor Chubin
0adbf03348 Fix comment length in all first-level cheat sheets
*  sheets/MegaCli
*  sheets/az
*  sheets/azure
*  sheets/blktrace
*  sheets/emacs
*  sheets/exim
*  sheets/go
*  sheets/ipython
*  sheets/jq
*  sheets/nmap
*  sheets/perl
*  sheets/psql
*  sheets/redis
*  sheets/sed
*  sheets/smartctl
*  sheets/solidity
*  sheets/yq_v4
2020-11-22 13:10:48 +01:00
Igor Chubin
a4b941e5b8
Merge pull request #139 from chubin/len80
Fix comment line length
2020-11-22 11:34:52 +01:00
Igor Chubin
b397565ed2
Merge pull request #141 from terminalforlife/master
Line Length Fixes & New Sheet Stuff
2020-11-22 11:33:54 +01:00
terminalforlife
08a6f38fe7 Add getpwent() example to perl 2020-11-22 04:23:52 +00:00
Igor Chubin
5ed465ab25
Merge pull request #142 from raymondchen625/master 2020-11-21 17:04:49 +01:00
Raymond
5daf8ac487 Add yq_v4 sheet for yq version 4 2020-11-21 10:40:31 -05:00
terminalforlife
52e621be4e Add 'mount' file + TMPFS example 2020-11-21 01:38:03 +00:00
terminalforlife
47e49afdbe Fix line length of Functions 2020-11-20 20:48:10 +00:00
Igor Chubin
62156f41b3
Merge pull request #140 from raymondchen625/master 2020-11-20 02:33:33 +01:00
Raymond
4fb06be49c Add yq sheet 2020-11-19 20:22:35 -05:00
Igor Chubin
6510bc7fb6 Fix comment line length 2020-11-18 17:50:29 +01:00
Igor Chubin
6bb1e0153c Fix comment line length 2020-11-18 17:41:25 +01:00
Igor Chubin
dcea8d1745 Fix comment line length 2020-11-18 17:24:28 +01:00
Igor Chubin
c4ca01581d
Merge pull request #138 from terminalforlife/master
Improve `lenchk` and Fix Some Line Lengths
2020-11-18 16:59:02 +01:00
terminalforlife
a0c4be1552 Correct how less(1) is used, & catch more(1) bug
The `-r` flag isn't best here. Per the less(1) man page, it's best to
use `-R` to only display the ANSII color escape sequences.

It seems like more(1) doesn't support color escape sequences, or at
least not properly. The display is messed up when using more(1), so
I've just accounted for that. In this situation, just use the `-C`
flag(s).
2020-11-18 14:48:14 +00:00
terminalforlife
bf73be6b35 Look instead for '# cheat.sh: ' on any line
This is in regards to a request by Chubin on #134.

I didn't use grep(1), because it wound up being a lot slower than my
method. Relying on tools like that isn't always the best choice, which
is why I often just write in pure-shell, and have done for a couple of
years now. There's a time and a place for those external tools, but I
feel this was not it.

Tested and worked well. I've actually seen no noteworthy slowdowns, -
despite pre-processing the files -- YMMV.
2020-11-18 14:26:50 +00:00
terminalforlife
49be860e84 Fix line length of dpkg-deb & add header stuff 2020-11-18 12:40:43 +00:00
terminalforlife
dbae4e99c4 Fix line length of system_profiler 2020-11-18 12:36:25 +00:00
Igor Chubin
e1324e278f
Merge pull request #137 from chubin/len80
Fix comment line length
2020-11-18 07:48:49 +01:00
Igor Chubin
ee7879177a Fix comment line length 2020-11-18 07:48:19 +01:00
Igor Chubin
e54de05828
Merge pull request #136 from chubin/len80 2020-11-17 21:51:34 +01:00
Igor Chubin
c05a3214b0 Fix comment lenth in sheets/drutil 2020-11-17 20:29:09 +01:00
Igor Chubin
7330d636cc Fix comment lenth in sheets/rclone 2020-11-17 20:28:44 +01:00
Igor Chubin
2321ec7b43 Fix comment lenth in sheets/sysrq-trigger 2020-11-17 20:28:30 +01:00
Igor Chubin
827f498778
Merge pull request #135 from terminalforlife/master
Allow in-file disabling of lenchk (#134)
2020-11-17 20:07:15 +01:00
terminalforlife
2e8aee7eeb Fix line length of taste & tweak it slightly 2020-11-17 17:02:28 +00:00
terminalforlife
a3f21c156d Fix line length of wacaw 2020-11-17 17:00:53 +00:00
terminalforlife
442e7e2f93 Fix line length of http 2020-11-17 16:59:16 +00:00
terminalforlife
1223da5389 Fix line length of doas & slightly tweak 2020-11-17 16:57:03 +00:00
terminalforlife
dce972441d Fix line length of launchctl 2020-11-17 16:48:58 +00:00
terminalforlife
4225af3a91 Fix line length of systemd-sysvinit -- overhaul
To whomever wrote this originally: please check I didn't acidentally
order something in the wrong place. Awesome cheat sheet, by the way.

I did away with the table format as it just wasn't going to work
properly in keeping with the line length limit of 80.
2020-11-17 16:30:02 +00:00
terminalforlife
eff4e22ee3 Fix line length of umask 2020-11-17 16:00:31 +00:00
terminalforlife
c69c73059d Fix line length of xfs_repair 2020-11-17 15:58:46 +00:00
terminalforlife
c42bd33f46 Fix line length of xm 2020-11-17 15:58:06 +00:00
terminalforlife
2c4bcb2b39 Fix line length of ObjectOrientation 2020-11-17 15:49:51 +00:00
terminalforlife
5970584c88 Fix line length of PatternMatching 2020-11-17 15:48:29 +00:00
terminalforlife
2ece746c3a Address recursion line length (slight reword) 2020-11-17 15:45:38 +00:00
terminalforlife
aea321e9f0 Fix line length of types (tidied up table) 2020-11-17 15:42:28 +00:00
terminalforlife
a461a0c912 Hush cd, just in-case we get noise 2020-11-17 15:39:05 +00:00
terminalforlife
acebbe0d67 No longer need to be in 'tests' directory
Your BASH version is checked; if it's 3, you will have to ignore this
commit, unfortunately. To be fair, if you're on 3 (major), you have
more pressing matters. :P
2020-11-17 15:28:53 +00:00
terminalforlife
380b52688d Colorize by default, now that we're portable
This can still be disabled, though.
2020-11-17 15:17:42 +00:00
terminalforlife
edf22b3dd9 Colorization is now portable, thanks to tput(1) 2020-11-17 15:14:52 +00:00
terminalforlife
9191dafe36 Add ability to ignore the special lenchk line 2020-11-17 14:43:19 +00:00
terminalforlife
a5ac924841 Allow in-file disabling of lenchk (#134) 2020-11-17 14:34:44 +00:00
Igor Chubin
5b98860f73
Merge pull request #134 from terminalforlife/master 2020-11-17 05:21:49 +01:00
terminalforlife
a7dbcd06d7 Handle user's own provided directories 2020-11-17 02:33:10 +00:00