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
var http = require('http'); | |
var automaticHeaders = { | |
connection: true, | |
'content-length': true, | |
'transfer-encoding': true, | |
date: true | |
}; | |
http.OutgoingMessage.prototype.setHeader = function(name, value) { |
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
mkdir graphql_server && cd graphql_server | |
npm install --save ts-node typeorm typescript vesper reflect-metadata mysql @types/mysql |
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
; Download NirCmd.exe and put it in a "Lib" folder next to this script | |
; https://www.nirsoft.net/utils/nircmd.html | |
winTitle := "Forza Motorsport 7" | |
procName := "forzamotorsport7.exe" | |
Pause:: | |
Run, "Lib\nircmd.exe" muteappvolume %procName% 2 | |
return |
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\Normalizer; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; | |
/** | |
* Entity normalizer | |
*/ | |
class EntityNormalizer implements DenormalizerInterface |
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/php | |
<?php | |
/** | |
* Helper script to use php-cs-fixer with stdin / stdout | |
**/ | |
$temp_file = tempnam(sys_get_temp_dir(), 'fix_'); | |
$input = file_get_contents("php://stdin"); |