This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
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
This playbook has been removed as it is now very outdated. |
(function() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
How to configure your Mac to use DNS over TLS in five easy steps:
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
Edit the configuration file:
#!/bin/bash | |
aws --version | |
aws configure set default.region us-west-2 | |
aws configure set default.output json | |
echo "preparing task definition" | |
aws ecs describe-task-definition --task-definition applications | ./jq --arg x $CIRCLE_SHA1 ' .taskDefinition | |
| del(.status) | |
| del(.taskDefinitionArn) |
Create a Meteor app and put the client_/server_ files in a client/server directories. Also, create a public dir to save the uploaded files.
sudo apt-get update && sudo apt-get upgrade -y; | |
sudo apt-get build-dep -y libqt4-gui libqt4-network libqt4-webkit; | |
sudo apt-get install -y openssl build-essential xorg git git-core libssl-dev libxrender-dev t1-xfree86-nonfree xfonts-scalable ttf-ubuntu-font-family ttf-mscorefonts-installer poppler-utils libqt4-dev qt4-dev-tools; | |
cd ~; | |
git clone git://gitorious.org/~antialize/qt/antializes-qt.git wkhtmltopdf-qt; | |
git clone git://github.com/antialize/wkhtmltopdf.git wkhtmltopdf; | |
cd wkhtmltopdf; | |
qmake-qt4; | |
cd ../wkhtmltopdf-qt; | |
git checkout 4.8.4; |
/etc/init.d/<servicename>: | |
# chkconfig: 345 20 80 | |
# description: my service | |
345 - 3,4,5 runlevels | |
20 - start priority | |
80- stop prioroty |