Install from homebrew
brew install percona-serversudo chown -R <username> /usr/localThis is an example of how to use RxJS to manage state within a React app.
setState() with the new state.| Source: https://dba.stackexchange.com/questions/83125/mysql-any-way-to-import-a-huge-32-gb-sql-dump-faster | |
| innodb_buffer_pool_size = 4G | |
| innodb_log_buffer_size = 256M | |
| innodb_log_file_size = 1G | |
| innodb_write_io_threads = 16 | |
| innodb_flush_log_at_trx_commit = 0 | |
| Why these settings ? | |
| innodb_buffer_pool_size will cache frequently read data |
| import os.path | |
| import re | |
| ''' | |
| INSTRUCTIONS | |
| 1. Create a file with the following code | |
| 2. Put the file you want to convert into the same folder as it, and rename it to "py_file.py" | |
| 3. Add a "#F" comment to any lines in the code which have a function call that doesn't assign anything (so no =), | |
| as the program cannot handle these convincingly | |
| 4. Run the converter file |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Pagination\LengthAwarePaginator; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| public function boot() |
ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }'
ps --no-headers -o "rss,cmd" -C apache2 | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }'
Taken from 2011 Macbook Pro Graphics Card FIX 100% WORKING!!!
EDIT This method works! But there is an improved version for better thermal management and brightness keys functionality. See improved version -> https://gist.github.com/cdleon/d1eff7246a25193304284ecec40445b0
if you are on high sierra 10.13.6+ you might need to use
Command + rinstead
Boot up holding down Command + r + s| #!/usr/bin/env bash | |
| # vim: ai ts=2 sw=2 et sts=2 ft=sh | |
| # Use this script to install or re-install | |
| # multiple versions of PHP on MacOS. | |
| # | |
| # Usage: | |
| # curl -L https://git.io/v52yY | bash | |
| # Check OS. |
You requested maxclients of 10000 requiring at least 10032 max file descriptors.
Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.| #!/usr/bin/env python3 | |
| import json | |
| import subprocess | |
| import sys | |
| from concurrent.futures import ThreadPoolExecutor | |
| import html | |
| import dictdiffer | |
| import iso8601 |