Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
#!/usr/bin/env bash | |
# Usage: s3-put <FILE> <S3_BUCKET> [<CONTENT_TYPE>] | |
# | |
# Uploads a file to the Amazon S3 service. | |
# | |
# Depends on AWS credentials being set via env: | |
# - AMAZON_ACCESS_KEY_ID | |
# - AMAZON_SECRET_ACCESS_KEY | |
# | |
# Outputs the URL of the newly uploaded file. |
<?php namespace Tmb; | |
use Illuminate\Database\Eloquent\Model as Eloquent; | |
use Illuminate\Validation\Validator; | |
class BaseModel extends Eloquent | |
{ | |
/** | |
* Error message bag |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
<?php | |
class NewRelic | |
{ | |
public static function __callStatic($method, $params) | |
{ | |
if (!extension_loaded('newrelic')) { | |
return null; | |
} |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.