Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View LBeckX's full-sized avatar
💭
Either we find a way or we make one.

Lukas M. BeckX LBeckX

💭
Either we find a way or we make one.
View GitHub Profile
@LBeckX
LBeckX / VirtualBox-VM-Ubuntu20.sh
Last active July 31, 2021 15:51
VirtualBox Clone Ubuntu20
#!/bin/sh
apt update
apt upgrade
apt install net-tools
apt install network-manager
########################
# Change hostname
########################
@LBeckX
LBeckX / cmsBackup.sh
Last active April 26, 2023 07:43
cmsBackup.sh
# Switch to customer-folder
cd /$PATH/
# Check the current mySQL-Config
cat www/htdocs/system/config/localconfig.php (e.g.)
# Backup MySQL
mysqldump --default-character-set=utf8 --routines -u dbXXXX -p dbXXXX > dbXXXX_YYMMDD_1XX.sql
@LBeckX
LBeckX / .htaccess
Last active July 13, 2023 14:09
Contao - Htaccess
RewriteEngine on
RewriteBase /
# HTTP-Auth
#AuthType Basic
#AuthName "Freigabeserver"
#AuthUserFile /path/to/.htpasswd
#Require valid-user
# HTTPS-Auth
@LBeckX
LBeckX / limits.conf
Created August 31, 2021 01:27
Update ubuntu for many requests
# /etc/security/limits.conf
# Apache / Nginx
www-data soft nofile 30000
www-data hard nofile 80000
# MySQL
mysql soft nofile 30000
mysql hard nofile 80000
@LBeckX
LBeckX / my.cnf
Last active February 3, 2024 12:17
MySQL / MariaDB Optimierung Server mit 32 GB
[mysqld]
# InnoDB Buffer Pool Size: 70% von 32GB
innodb_buffer_pool_size=22G
max_allowed_packet=100M
# Maximale Anzahl an Verbindungen
max_connections=500
# Query Cache
query_cache_type=1