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
<?php | |
declare(strict_types=1); | |
namespace App\Traits; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Doctrine\Persistence\ObjectRepository; | |
trait HasEntityManager | |
{ |
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
DROP FUNCTION IF EXISTS uuid_v4; | |
DROP FUNCTION IF EXISTS BIN_TO_UUID; | |
DROP FUNCTION IF EXISTS UUID_TO_BIN; | |
-- Change delimiter so that the function body doesn't end the function declaration | |
DELIMITER // | |
CREATE FUNCTION uuid_v4() | |
RETURNS CHAR(36) NO SQL | |
BEGIN |
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
alias ga="git add" | |
alias gs="git status" | |
alias gc="git checkout" | |
alias gcb="git checkout -b" | |
alias gb="git branch" | |
alias gp="git pull" | |
alias gd="git diff" | |
alias gcom="git commit" | |
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 |
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 | |
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
#!/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
###### 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
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
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 |
NewerOlder