AWS u-24tb1.112xlarge:
- 448 vCPUs
- 24576 GiB RAM
- 3 year reservation all upfront cost: $1.65M
- Monthly effective rate: $44,585
- $1.81 per GB per month
- Additional discounts for volume (5% >250K, 10% > $2M)
- Source updated 2/13/2024
GCE m3-ultramem-128:
#!/bin/bash | |
if [ "$(whoami)" != "root" ]; then | |
echo "ERROR : Run script as Root (sudo !!) please" | |
exit 1 | |
fi | |
read -e -p "php_redis version to be installed (change if needed) : " -i "2.2.4" VERSION | |
echo 'Installing php_redis v.'$VERSION' ... ' |
<?php | |
/* * ** | |
* | |
* This script converts an existing MySQL database to migrations in Laravel 4. | |
* | |
* 1. Place this file inside app/controllers/ | |
* | |
* 2. In this file, edit the index() method to customize this script to your needs. | |
* - inside $migrate->ignore(), you pass in an array of table |
terminal = require('color-terminal') | |
log = (error, stdout, stderr, cb) -> | |
if error | |
terminal.color('red').write stdout | |
else | |
terminal.color('green').write stdout | |
cb() | |
#!/bin/sh | |
## | |
# Keep local path in sync with remote path on server. | |
# Ignore .git metadata. | |
# | |
local=$BASEDIR | |
project='projetctname' | |
remote='[email protected]:/var/www/'$project | |
# Initialization - copy entire directory to host |
AWS u-24tb1.112xlarge:
GCE m3-ultramem-128:
#Laravel 5 Simple ACL manager
Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.
If the user has a 'Root' role, then they can perform any actions.
Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php
<?php | |
if(!function_exists('config_path')) | |
{ | |
/** | |
* Return the path to config files | |
* @param null $path | |
* @return string | |
*/ | |
function config_path($path=null) |
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