First uninstall mysql
brew uninstall [email protected]
Delete the folders/files that were not removed
rm -rf /usr/local/var/mysql
rm /usr/local/etc/my.cnf
Reinstall mysql and link it
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", | |
"profiles": { | |
"defaults": { | |
// Put settings here that you want to apply to all profiles | |
}, | |
"list": [ |
:: Save this in your Minecraft server folder as launch_server.bat | |
:: Then. Right click in this file and Run as admin | |
:: Update the ram memory values below as you want | |
cd %~dp0 | |
java -Xms2048M -Xmx3084M -jar %~dp0server.jar nogui | |
pause |
<?php | |
namespace App\Traits; | |
/** | |
* Trait SecureUpdatable | |
* Allows to secure update without override the existing fields in a model | |
* This dependes on the $fillable and $guarded attributes too | |
* @package App\Traits | |
*/ |
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# Langs (required for Python) | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 |
First uninstall mysql
brew uninstall [email protected]
Delete the folders/files that were not removed
rm -rf /usr/local/var/mysql
rm /usr/local/etc/my.cnf
Reinstall mysql and link it
ssh -o TCPKeepAlive=yes -o ServerAliveInternal=100 -i {YOUR_KEY} user@server |
/usr/local/etc/php/7.2/conf.d/php-memory-limits.ini
/usr/local/etc/php/7.2/php.ini
max_execution_time = 600
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
const warningTitleCSS = 'color:red; font-size:60px; font-weight: bold; -webkit-text-stroke: 1px black;'; | |
const warningDescCSS = 'font-size: 18px;'; |
I install some of the following software to help me debug and make it more secure.
sudo apt-get install fail2ban bwm-ng htop iotop iftop nethogs tcptrack
fail2ban - blocks failed logins for a number of services (a must for me) bwm-ng - bandwidth monitor (generally good to see the traffic on a server) htop - updated top command to see CPU/RAM/processes running (just nicer) iotop - see disk usage and the process (handy for checking problems)