To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf
# Copy the daemon configuration file into place.
$ sudo cp $(brew list dnsmasq | grep /homebrew.mxcl.dnsmasq.plist$) /Library/LaunchDaemons/
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
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| #!/bin/env ruby | |
| # | |
| # Collects info about the age of all gems in the project | |
| # | |
| require "json" | |
| require "date" | |
| # Dir.chdir '...' | |
| bundle = `bundle list` |
| require 'benchmark' | |
| require 'benchmark/ips' | |
| require 'ostruct' | |
| require 'active_model' | |
| BillingAddressStruct = Struct.new(:street, :city, :zipcode, :country, :state) | |
| BillingAddressOpenStruct = OpenStruct | |
| BillingAddressStructFromHash = Struct.new(:street, :city, :zipcode, :country, :state) do |
| A clone of http://tech.lds.org/wiki/LDS_Tools_Web_Services just in case it ever gets taken down | |
| The LDS Tools Web Services provide common services for LDS Tools applications. | |
| Contents [hide] | |
| 1 Web service location | |
| 2 Description of Services | |
| 2.1 Signin services | |
| 3 Configurable Values | |
| 3.1 References |
| #!/bin/bash | |
| #============================================================================== | |
| #TITLE: mysql_backup.sh | |
| #DESCRIPTION: script for automating the daily mysql backups on development computer | |
| #AUTHOR: tleish | |
| #DATE: 2013-12-20 | |
| #VERSION: 0.4 | |
| #USAGE: ./mysql_backup.sh | |
| #CRON: | |
| # example cron for daily db backup @ 9:15 am |