doc
This commit is contained in:
parent
2a16b57196
commit
f76f33f782
19
README.md
19
README.md
@ -43,17 +43,6 @@ rm -rf dotfiles
|
|||||||
```$RANDOM``` - Return random 0-32767\
|
```$RANDOM``` - Return random 0-32767\
|
||||||
```\command``` - Without using alias
|
```\command``` - Without using alias
|
||||||
|
|
||||||
### Vim
|
|
||||||
|
|
||||||
| Command | Description |
|
|
||||||
|:------------------ | :------------------------------------ |
|
|
||||||
|```Ctrl + [``` | Analog Esc |
|
|
||||||
|```d -> Ctrl + End``` | Delete from cursor to end of file |
|
|
||||||
| ```u``` | Undo |
|
|
||||||
| ```Ctrl + r``` | Redo |
|
|
||||||
| ```22G``` | Go to line 22 |
|
|
||||||
|
|
||||||
<p></p>
|
|
||||||
|
|
||||||
|
|
||||||
### Autostart
|
### Autostart
|
||||||
@ -66,14 +55,6 @@ sudo systemctl status <service>.service # check status
|
|||||||
sudo systemctl enable <service>.service # autostart custom service
|
sudo systemctl enable <service>.service # autostart custom service
|
||||||
```
|
```
|
||||||
|
|
||||||
### Cron
|
|
||||||
|
|
||||||
```crontab -e```
|
|
||||||
|
|
||||||
```0 0 1 1 * script.sh``` - Every year in 1 January 00:00:00 \
|
|
||||||
```*/1 * * * * script.sh``` - Every minute\
|
|
||||||
```0 */3 * * 2,5 script.sh``` - One time per 3 hours in Tue and Fri\
|
|
||||||
```0 0,12 1 */2 * script.sh``` - At minute 0 past hour 0 and 12 on day-of-month 1 in every 2nd month
|
|
||||||
|
|
||||||
|
|
||||||
<h1 align="center"><a href="#top">▲</a></h1>
|
<h1 align="center"><a href="#top">▲</a></h1>
|
||||||
|
|||||||
8
doc/cron.md
Normal file
8
doc/cron.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
### Cron
|
||||||
|
|
||||||
|
```crontab -e```
|
||||||
|
|
||||||
|
```0 0 1 1 * script.sh``` - Every year in 1 January 00:00:00 \
|
||||||
|
```*/1 * * * * script.sh``` - Every minute\
|
||||||
|
```0 */3 * * 2,5 script.sh``` - One time per 3 hours in Tue and Fri\
|
||||||
|
```0 0,12 1 */2 * script.sh``` - At minute 0 past hour 0 and 12 on day-of-month 1 in every 2nd month
|
||||||
24
doc/gpg.md
Normal file
24
doc/gpg.md
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
### GPG
|
||||||
|
|
||||||
|
Caching passphrases disable:
|
||||||
|
```bash
|
||||||
|
echo -e "default-cache-ttl 1\nmax-cache-ttl 1" > ~/.gnupg/gpg-agent.conf; echo RELOADAGENT | gpg-connect-agent
|
||||||
|
```
|
||||||
|
|
||||||
|
\
|
||||||
|
Generate key:\
|
||||||
|
```gpg --full-generate-key```
|
||||||
|
|
||||||
|
|
||||||
|
Encrypt:\
|
||||||
|
```gpg -e file.txt```
|
||||||
|
|
||||||
|
```text
|
||||||
|
-e — asymmetric encryption
|
||||||
|
-c — symmetric encryption
|
||||||
|
-r 'id' — encrypt data for a user with a specific id
|
||||||
|
```
|
||||||
|
|
||||||
|
Decrypt:\
|
||||||
|
```gpg -d file.txt.gpg```
|
||||||
|
|
||||||
0
doc/ssh.md
Normal file
0
doc/ssh.md
Normal file
9
doc/vim.md
Normal file
9
doc/vim.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
### Vim
|
||||||
|
|
||||||
|
| Command | Description |
|
||||||
|
|:------------------ | :------------------------------------ |
|
||||||
|
|```Ctrl + [``` | Analog Esc |
|
||||||
|
|```d -> Ctrl + End``` | Delete from cursor to end of file |
|
||||||
|
| ```u``` | Undo |
|
||||||
|
| ```Ctrl + r``` | Redo |
|
||||||
|
| ```22G``` | Go to line 22 |
|
||||||
Loading…
x
Reference in New Issue
Block a user