2021-10-17 15:56:26 +03:00
2021-08-30 04:26:02 +03:00
2021-10-17 15:56:26 +03:00
2021-10-17 01:26:15 +03:00
2021-10-02 01:30:20 +03:00
2021-09-25 01:33:15 +03:00
2021-10-17 04:32:56 +03:00
2021-10-15 00:22:48 +03:00
2021-10-17 04:24:49 +03:00
ref
2021-09-15 21:38:08 +03:00
2021-09-26 20:22:56 +03:00
2021-10-17 04:24:49 +03:00
2021-10-17 15:55:02 +03:00

dotfiles

Content

Project description

Bash config files

Prompt

Installation

git clone https://github.com/TheK4n/dotfiles
chmod u+x dotfiles/setup.sh
dotfiles/setup.sh
rm -rf dotfiles

Tips

$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

Autostart

  • create /etc/systemd/system/<service>.service
sudo vim /etc/systemd/system/<service>.service  # create custom service
sudo systemctl daemon-reload
sudo systemctl start <service>.service  # start custom service
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

Description
Languages
Shell 79.6%
Lua 18.2%
Python 1.4%
Ruby 0.7%