This commit is contained in:
TheK4n 2021-10-29 01:01:07 +03:00
parent 2a16b57196
commit f76f33f782
5 changed files with 41 additions and 19 deletions

View File

@ -43,17 +43,6 @@ rm -rf dotfiles
```$RANDOM``` - Return random 0-32767\
```\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
@ -66,14 +55,6 @@ sudo systemctl status <service>.service # check status
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>

8
doc/cron.md Normal file
View 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
View 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
View File

9
doc/vim.md Normal file
View 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 |