This file contains 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
tail -f -v logdir/*.log | sed -E 's/([^\n]#[0-9]+\s)/\n\1/g' |
This file contains 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
export PHP_IDE_CONFIG=\"serverName=${phpstorm_server_config_name}\" && \ | |
php \ | |
-dxdebug.remote_host=${xdebug_remote_host} \ | |
-dxdebug.remote_port=${xdebug_remote_port} \ | |
-dxdebug.idekey=${xdebug_idekey} \ | |
-dxdebug.remote_enable=${xdebug_remote_enable} \ | |
-dxdebug.remote_mode=${xdebug_remote_mode} \ | |
-dxdebug.remote_autostart=${xdebug_remote_autostart} \ | |
-dxdebug.remote_connect_back=${xdebug_remote_connect_back} \ | |
-dxdebug.remote_log=${xdebug_remote_log} \ |
This file contains 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
@echo off | |
@setlocal EnableExtensions EnableDelayedExpansion | |
:: This batch file will try to generate a minimalist project | |
:: It will create a src folder with a small cpp file^ | |
:: It will create a test folder with some mock test files for catch2/catch | |
:: It will also ask if you want to enable testing | |
:: If a solution already exists (in the build folder) it will ask if you want to remove it and rebuild | |
:: NOTE: Run this in admin mode if it doesn't work |
This file contains 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
inotifywait -m -r /myfolder -e create -e moved_to -e modify -e delete | | |
while read path action file; do | |
echo "The file '$file' appeared in directory '$path' via '$action'" | |
done |
This file contains 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
CREATE TABLE `<table_name>` ( | |
`id` INT(11) NOT NULL AUTO_INCREMENT, | |
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
`updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | |
`is_deleted` TINYINT(4) NOT NULL DEFAULT '0', | |
PRIMARY KEY (`id`) USING BTREE | |
) | |
COLLATE='utf8mb4_general_ci' | |
ENGINE=InnoDB | |
; |
This file contains 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
###### DO NOT EDIT THIS FILE | |
###### Use "make params" to create parameters.inc and do the changes there. | |
###### If you want to simply add something just do: var_name += new_data | |
###### Or if you want to overwrite you can just do: var_name = data | |
#Mysql data for logging | |
mysql_user= | |
#Only put the password in dev environment (if there is no password it will be asked) | |
mysql_pass= | |
mysql_log_file=//application/mysql_query.log |
This file contains 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 | |
#RUN THIS SCRIPT AS ROOT | |
#https://docs.docker.com/engine/install/ubuntu/ | |
apt-get remove docker docker-engine docker.io containerd runc | |
apt-get update | |
apt-get -y install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ |
This file contains 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
@echo off | |
set DS3_MAIN_PROGRAM=C:\\Program Files (x86)\\Steam\\steamapps\\common\\DARK SOULS III\\Game\\DarkSoulsIII.exe | |
set DS3_save_dir=%appdata%\DarkSoulsIII\\<YOUR_STEAM_ID> | |
set DS3_backups_dir=<DIRECTORY_OF_THE_SAVE_FILE> | |
set DS3_original_filename=DS30000.sl2 | |
set DS3_backup_filename=<NAME_OF_BACKUP_FILE_TO_LOAD_NAME> | |
copy "%DS3_backups_dir%\\%DS3_backup_filename%" "%DS3_save_dir%\\%DS3_original_filename%" |
This file contains 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
@echo off | |
for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set DateTime=%%a | |
set Yr=%DateTime:~0,4% | |
set Mon=%DateTime:~4,2% | |
set Day=%DateTime:~6,2% | |
set Hr=%DateTime:~8,2% | |
set Min=%DateTime:~10,2% | |
set Sec=%DateTime:~12,2% |
This file contains 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
@echo off | |
REM Run this in Developer Command Prompt | |
REM https://docs.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-alphabetically?view=msvc-160 | |
set file=%1 | |
cl %file% /std:c++17 /EHsc |