test
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
| <?php | |
| /** | |
| * Uppercase to lowercase and lowercase to uppercase(ASCII string only). | |
| * | |
| * @param string $value | |
| :x * @return string | |
| */ | |
| function invertCase($value) | |
| { |
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
| <?php | |
| /** | |
| * Convert a value to studly caps case. | |
| * | |
| * | |
| * @param string $value | |
| * @return string StudlyCaseString | |
| */ | |
| function studlyCase($value) |
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
| <?php | |
| /** | |
| * Uppercase to lowercase and lowercase to uppercase(ASCII string only). | |
| * | |
| * @param string $value | |
| * @return string | |
| */ | |
| function invertCase($value) | |
| { |
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
| <?php | |
| /** | |
| * Uppercase to lowercase and lowercase to uppercase(ASCII string only). | |
| * | |
| * @param string $value | |
| * @return string | |
| */ | |
| function invertCase($value) | |
| { |
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
| <?php | |
| /** | |
| * Uppercase to lowercase and lowercase to uppercase(ASCII string only). | |
| * | |
| * @param string $value | |
| * @return string | |
| */ | |
| function invertCase($value) | |
| { |
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
| <?php | |
| /** | |
| * Uppercase to lowercase and lowercase to uppercase(ASCII string only). | |
| * | |
| * @param string $value | |
| * @return string | |
| */ | |
| function invertCase($value) | |
| { |
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
| const web3 = web3Helper.getWeb3(); | |
| // For Fail transaction | |
| const txFail = '0x0547db129efe2059939365fa4ab658559c51413f96134b5aaef3cf0b760a66ca'; | |
| const tranDetailFail = await web3.eth.getTransaction(txFail); | |
| const receiptFail = await web3.eth.getTransactionReceipt(txFail); | |
| console.log({ tranDetailFail, receiptFail }); | |
| // => Result log |
Moved to git repository: https://github.com/denji/nginx-tuning
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
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
| server { | |
| listen 80; | |
| server_name domain; | |
| location /alias_url { | |
| root /var/www/alias_dir; | |
| try_files $uri $uri/ =404; | |
| } | |
| # redirect to https |
NewerOlder