Skip to content
Linux Notes
Menu and widgets
Home
Code
c
gcc
bash
math
types
configuration files
examples
PHP
CSS
Which browsers support which properties?
Python
virtualenv
list comprehension examples
Strings
pip/pip3
ctypes
selenium
examples
Explicit Wait
Implicit Wait
split and strip
Git
commands
something missing?
Initial Setup
auto-completion
Cloning an Existing Repository
Clone github repo from specific commit version
Log and Status
Branches
.gitignore
vim
Systems
load balancer headers
Fedora
rescue mode
SUnreclaim memory usage very high
disable user accounts
setup a chrooted sftp user
add an ip
RHEL/CentOS 7
adding a new ip to an interface
Clam Scan / Virus Scan
Network Time
Adding static routes
Path of process executable
Restart a service automatically after pid is killed or crashed
Prevent a service from being killed off by the oom-killer process
Query Available Packages From Selected YUM Repository
Yum Plugin Replace
yum shell
install ioncube loader
remove kernels
selinux
rpm
How do I restore permissions of all the rpm packages on system to default?
corrupt rpmdb and recovery
Check if CVE was patched in a previous update
Ubuntu 16
Change DNS Settings
Services
Ansible
hello_world
disable host_key_checking
playbook
Apache
access log
prefork mpm example
process .html/.htm files as php
Enable Core Dumps
Leverage Browser Caching
Enable Gzip Compression
KeepAlive
Password Protect Access
redirect
www to non www
http to https
errors
No space left on device: Couldn’t create accept lock |OR| (28)No space left on device: AH00023: Couldn’t create the ssl-cache mutex
Rackspace Load Balancer
Docker
Installation
Commands
run
Removal
ports + mounts
Dockerfile
Dovecot
ElasticSearch
Let’s Encrypt
certbot
MYSQL
commands
tuning
slow queries
Enable Slow Query Logging
timeouts
one liner’s
size of myisam vs innodb data
all tables of type MyISAM
all tables of type InnoDB
get size of all databases
size of largest tables
buffer pool
Convert MyISAM to InnoDB
import compressed db when there isn’t enough space to decompress
replication
Troubleshooting
mysqlbinlog command
move mysql datadir
newrelic
Nginx
with wordpress behind load balancer
proxy_pass
h2 / http2
Package Management
apt-cache / apt-get
dpkg
php-fpm
Postfix
Anti-Spam Tools
Commands
SMTP TLS
Securing SMTP
Maildir Mailboxes
Configurations
Maximum Email Size
Virtual Alias Maps
Create an alias for a user
PostgreSQL
Redis
Samba
Server
Client
openssh
List running ciphers and kexalgorithms
Patched for CVE?
turn on debug
How to configure the SSH service to use a unique Diffie-Hellman moduli of 2048 bits or greater
Varnish
503 errors
WebApps
Magento
is maintenance mode enabled?
get base_url’s from the database
get version from command line
Magento Cron Jobs Location
where are magento stack traces located at?
search engine being used?
Drupal
version
WordPress
behind ssl terminated load balancer
List all wordpress versions on device
Change and Update WordPress URLS in Database When Site is Moved to a new Host
gitlab
set up hostname
Django
migrations
pipenv
1.1 vs 2
Model
Set up and use crispy forms
Templates
setup
Static Files
loops
extending templates
phpmyadmin
Plesk
php-fpm status page
List all subscriptions
list all plesk domains / ip addresses
make a plesk chrooted user
password
proxy pass
show all mail user passwords
modify php-fpm max_children on Plesk < 17.5
update all domains on a wildcard cert to use new wildcard cert
Tools
foxy proxy
auditd
iperf
nohup
MTR
DCOPS
Dell
c states / power profile set max performance
find
mount
bind mount
curl
awk
one liner’s
io
disk space
cut
diff
pv
expect
screen
ssh
restrictive shell
proxy through a bastion
TCPDUMP
strace
symlinks
tar
tr
whois
wget
Security
OpenSSL
firewalld
iptables
ufw
fail2ban
Kerberos
Security