Install mod_proxy_http:
a2enmod proxy_http
Add to /etc/apache2/apache2.conf (change ip):
<VirtualHost 11.1.11.111:80 >
ServerName site.com
Install mod_proxy_http:
a2enmod proxy_http
Add to /etc/apache2/apache2.conf (change ip):
<VirtualHost 11.1.11.111:80 >
ServerName site.com
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
| # ATTENTION PLEASE! | |
| # NOTE BY @riwazp7 | |
| # Note for future visitors of this gist: Mac OS has Apache Benchmark by default ab --help | |
| curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz | |
| tar -xzf libtool-2.4.2.tar.gz | |
| cd libtool-2.4.2 | |
| ./configure && make && sudo make install | |
| # brew install 'https://raw.github.com/simonair/homebrew-dupes/e5177ef4fc82ae5246842e5a544124722c9e975b/ab.rb' |
| <!-- Facebook Custom Audience Pixel Code - Placed on Every Page of Site --> | |
| <script> | |
| !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? | |
| n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; | |
| n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; | |
| t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, | |
| document,'script','//connect.facebook.net/en_US/fbevents.js'); | |
| fbq('init', '{{facebook pixel}}'); | |
| fbq('track', 'PageView'); | |
| </script> |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |
For faster connection speed and more flexibility.
/Applications/Xcode.app/Contents/MacOS/XcodePicking the right architecture = Picking the right battles + Managing trade-offs