2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-03 15:40:17 +00:00
Commit Graph

439 Commits

Author SHA1 Message Date
Igor Chubin
3bb0fbb1c8
Added missing / 2019-11-06 08:43:26 +01:00
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.
2019-11-05 20:46:45 -05:00
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.
2019-11-06 00:50:46 +00:00
terminalforlife
8e5e9dd0a4 Minor comment cleanup, to keep it consistent 2019-11-06 00:45:05 +00:00
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.
2019-11-06 00:36:07 +00:00
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.
2019-11-06 00:28:10 +00:00
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.
2019-11-06 00:18:59 +00:00
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.
2019-11-06 00:11:43 +00:00
Igor Chubin
8566d86739
Merge pull request #73 from Nondv/patch-4
add note on ruby -l switch
2019-10-15 16:07:36 +02:00
Igor Chubin
f7f987fd68
Merge pull request #74 from Nondv/patch-5
[ruby][case] Add a note about ===
2019-10-15 16:07:21 +02:00
Igor Chubin
453904eb92
Merge pull request #76 from Nondv/divide-emacs
[emacs] move some info to separate files
2019-10-15 16:06:15 +02:00
Igor Chubin
32e18c603a
Merge pull request #77 from Nondv/patch-1
[ruby] merge if/else with if/elsif/else
2019-10-15 16:06:05 +02:00
Igor Chubin
e5fae9de86
Merge pull request #78 from Nondv/remove-recursion-from-root
delete recursion from root
2019-10-15 16:05:57 +02:00
Dmitry Non
d68cc4281a delete recursion from root
there's theory/recursion for that
2019-10-15 10:51:24 +01:00
Dmitriy Non
32ab01e12a
remove extra empty line 2019-10-15 10:39:34 +01:00
Dmitriy Non
4cabda0a56
[ruby] merge if/else with if/elsif/else
No need to add extra lines to the output. Shorter is better :)
2019-10-15 10:38:24 +01:00
Dmitry Non
0dd42bed00 [emacs] move macros info to new file 2019-10-15 10:21:12 +01:00
Dmitry Non
246adf89fc [emacs] move dired to new file 2019-10-15 10:19:32 +01:00
Dmitry Non
6ae4d1ad45 [emacs] move telnet to new file 2019-10-15 10:17:30 +01:00
Dmitriy Non
6083bca0a8
[ruby][case] Add a note about ===
A bit advanced but required knowledge about the magic in `case`
2019-10-15 10:03:35 +01:00
Dmitriy Non
10313bda28
add note on ruby -l switch
Quite a useful switch for one-liners
2019-10-15 09:55:32 +01:00
Igor Chubin
ed061663ba
Merge pull request #71 from lucis-fluxum/python3-args-kwargs
*args, **kwargs for python
2019-10-04 16:30:31 +02:00
Igor Chubin
fec7314c85
Merge pull request #72 from lucis-fluxum/python3-super
Superclass __init__ and parameters in python
2019-10-04 16:30:16 +02:00
Igor Chubin
4752f11b4c
Merge pull request #70 from lucis-fluxum/python3-threads
Basic multithreading for python
2019-10-04 16:29:57 +02:00
Igor Chubin
8e793c7755
Merge pull request #69 from lucis-fluxum/python3-classes
Basic python classes and methods
2019-10-04 16:29:09 +02:00
Igor Chubin
3f52721f6b
Merge pull request #68 from lucis-fluxum/python-list-comprehension
Add python list comprehension sheet
2019-10-04 16:28:56 +02:00
Luc Street
83e59ad722 Mention use of splat operator to unpack arguments 2019-10-02 15:58:12 -07:00
Luc Street
d03c115396 Basic multithreading for python 2019-10-02 15:50:54 -07:00
Luc Street
d1e103ad15 Superclass __init__ and parameters in python 2019-10-02 15:34:49 -07:00
Luc Street
e25ea979f5 *args, **kwargs for python 2019-10-02 15:24:05 -07:00
Luc Street
5a81bc7c1d Basic python classes and methods 2019-10-02 15:17:02 -07:00
Luc Street
8b04830b56 Add python list comprehension sheet 2019-10-02 14:55:26 -07:00
Igor Chubin
9c2ace4582
Merge pull request #67 from dayne/patch-2
Create dcfldd
2019-09-26 10:26:23 +02:00
Dayne Broderson
7f9c0b04dc
Create dcfldd 2019-09-25 10:36:52 -08:00
Igor Chubin
e7b4520639
Merge pull request #66 from abitrolly/patch-1
Cheat sheet for PostgreSQL
2019-09-15 20:23:55 +02:00
Anatoli Babenia
57156de1a3
Cheat sheet for PostgreSQL 2019-09-11 13:45:58 +03:00
Igor Chubin
a0b2c9e20c
Merge pull request #65 from sullivant/master
synced cargo and _rust/Cargo
2019-08-19 08:16:15 +03:00
Thomas Sullivan
a0a7ced9b4 synced cargo and _rust/Cargo 2019-08-06 08:28:53 -05:00
Igor Chubin
a21c2c2fdf
Merge pull request #61 from mwl/patch-1
Wildcards (`*`) should always be in single quotes
2019-08-06 13:58:36 +02:00
Igor Chubin
9be9095dea
Merge pull request #63 from sullivant/rust
Added page for Cargo package manager.
2019-08-06 13:57:21 +02:00
Igor Chubin
affa6bad69
Merge pull request #64 from angoca/master
More instructions for Db2
2019-08-06 13:56:14 +02:00
Andres Gomez Casanova
5026a1a373
Create sqlpl 2019-08-05 22:56:57 -05:00
Andres Gomez Casanova
536bea6d49
Update queries 2019-08-05 22:56:21 -05:00
Andres Gomez Casanova
0f69119a48
Update dml 2019-08-05 22:55:13 -05:00
Andres Gomez Casanova
dea825fcc4
Update ddl 2019-08-05 22:54:03 -05:00
Andres Gomez Casanova
b87e883de5
Update dcl 2019-08-05 22:51:35 -05:00
Igor Chubin
cdea744f8e added sheets/_latex/_info.yaml 2019-08-02 15:00:21 +02:00
Igor Chubin
60833be60a
Merge pull request #62 from sullivant/latex
added latex and basic information.
2019-08-02 14:51:54 +02:00
Thomas Sullivan
2600ab05ee Added page for Cargo package manager. 2019-08-02 07:46:07 -05:00
Thomas Sullivan
cb468a8080 added latex 2019-08-02 07:45:00 -05:00