-
Install LAMP
apt install apache2 php mariadb-server
-
Install PHP modules
apt install php-{mbstring,zip,gd,xml,pear,gettext,cgi,mysql} libapache2-mod-php
-
Download PHPMyAdmin
- Install VirtualBox Extention Pack
- Prepare Linux kernel for VirtualBox:
sudo apt install gcc make perl dkms
- Mount the Guest Additions disk
- Install Guest Additions:
sudo sh /media/cdrom0/VBoxLinuxAdditions.run
- Reboot
- Enjoy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module posh-git | |
Import-Module oh-my-posh | |
$download_url = "https://gist.githubusercontent.com/GreepTheSheep/db86ae95ed0c4d5958eac6a83dd6be72/raw/thegreepone.omp.json" | |
$local_path = "C:/Users/%username%/Documents/PowerShell/thegreepone.omp.json" | |
$WebClient = New-Object System.Net.WebClient | |
$WebClient.DownloadFile($download_url, $local_path) | |
Set-PoshPrompt -Theme "~/Documents/PowerShell/thegreepone.omp.json" |
Create a file on UserData/Scripts/Modes/Trackmania/collisions.Script.txt
, with the content on file linked with this gist
Then you need to edit your matchsettings file like this :
<playlist>
<gameinfos>
<script_name>Trackmania/collisions.Script.txt</script_name>
</gameinfos>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process.on('SIGINT', exit); // CTRL+C | |
process.on('SIGQUIT', exit); // Keyboard quit | |
process.on('SIGTERM', kill); // `kill` command | |
process.on('SIGWINCH', exit); // docker down or else idk | |
function exit() { | |
console.log("Exiting..."); | |
DB.end().then(process.exit(0)) | |
.catch(err=>{ | |
console.error("MariaDB End connexion error:", err); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Delete old log files | |
sudo find /var/log -type f -name "*.gz" -exec rm -f {}; | |
sudo find /var/log -type f -name "*.log.*" -exec rm -f {} \; | |
sudo find /var/log -type f -name "*.1" -exec rm -f {} \; | |
# Delete temporary files | |
sudo rm -rf /tmp/* |