Skip to content

Instantly share code, notes, and snippets.

View pilot22's full-sized avatar
🏠
Working from home

Louis pilot22

🏠
Working from home
  • Efrei Paris
  • France
  • 23:13 (UTC +02:00)
View GitHub Profile
@pilot22
pilot22 / .bashrc
Created July 14, 2020 13:13
Linux bashrc profile
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@pilot22
pilot22 / make_gmod_addon_base.bat
Last active August 16, 2023 13:03
Simple batch file to create an simple gmod addon :D
@echo off
set /p e=Quel nom?:
set /p abv=Quel table?:
mkdir %e%
cd %e%
mkdir lua
cd lua
mkdir autorun
cd autorun
echo %abv% = %abv% or {}> "%e%_loader.lua"
@pilot22
pilot22 / backupsql.sh
Created September 12, 2020 08:57
Auto-BackupSQL (rm +2d)
find /root/mysql_backup/* -mtime +2 -exec rm {} \;
mysqldump -u root --all-databases --routines| gzip > /root/mysql_backup/SQL_backup_`date +'%m-%d-%Y'`.sql.gz
cp /srv/daemon-data/ {docker_id} /garrysmod/sv.db /root/mysql_backup/backup_`date +'%m-%d-%Y'`_sv.db