-
Notifications
You must be signed in to change notification settings - Fork 9
/
_help
74 lines (64 loc) · 2.16 KB
/
_help
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# .sh/_help 20130212 - 20240511
# Copyright (C) 1995-2024 Mark Constable <[email protected]> (AGPL-3.0)
cat <<EOS
## How to set up a small 512MB swapfile as /swapfile
fallocate -l 512M /swapfile
dd if=/dev/zero of=/swapfile bs=1024 count=524288
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
echo "tmpfs /tmp tmpfs size=10% 0 1" >> /etc/fstab
## Kernel fine tuning in /etc/sysctl.conf
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
net.ipv4.tcp_notsent_lowat = 16384
vm.swappiness = 1
net.core.somaxconn = 512
## Opcache for a 2GB ram VPS in /etc/php/7.*/fpm/php.ini
[opcache]
opcache.enable = 1
opcache.enable_cli=1
opcache.fast_shutdown = 1
opcache.interned_strings_buffer = 16
opcache.max_accelerated_files = 25000
opcache.memory_consumption = 512
opcache.revalidate_freq = 120
opcache.save_comments=1
opcache.validate_timestamps = 1
# For Nextcloud
memory_limit = 512M
## Tweaks for MariaDB in /etc/mysql/mariadb.conf.d/50-server.cnf
[mysqld]
innodb_buffer_pool_size = 512M
# (more innodb settings here)
# 20180930 https://bugs.mysql.com/bug.php?id=42041
table_open_cache = 16384
table_definition_cache = 16384
tmp_table_size = 64M
join_buffer_size = 512k
? ....... Show this help
e ....... The nano Editor with a simplified interface
f ....... Find named files and list them (recursive)
i ....... Install a package
l ....... Tail the end of the most common system Logfile
n ....... Create a new Note in the users home dir
m ....... Menu System (TODO)
p ....... Search for a particular running Process
q ....... Query text string within files (recursive)
r ....... Remove a package
s ....... Search for a package
u ....... Update the package system
.. ...... Change to parent directory
eh ...... Edit this Help file
em ...... Edit Menu file
es ...... Edit ~/.myrc and re-execute ~/.shrc
la ...... List All files including dotfiles
ll ...... Long Listing
ls ...... Short form List
se ...... Sudo Edit text files as root
sn ...... Show Notes created with "n"
wt ...... Show simple website page load speed
env ..... Show Environmental global variables
alias ... To show all current Aliases
EOS