defaults write com.apple.frameworks.diskimages skip-verify true
defaults write com.apple.finder CreateDesktop false; killall Finder
touch ~/.hushlogin
| #!/bin/sh | |
| # Start/stop the mailcatcher daemon. | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: mailcatcher | |
| # Required-Start: $local_fs $remote_fs $network $syslog $named | |
| # Required-Stop: $local_fs $remote_fs $network $syslog $named | |
| # Should-Start: $local_fs $remote_fs $network $syslog $named | |
| # Should-Stop: $local_fs $remote_fs $network $syslog $named | |
| # Default-Start: 2 3 4 5 |
| # paste this into your console and hit enter | |
| for voice in Agnes Kathy Princess Vicki Victoria Alex Bruce Fred Junior Ralph Albert Bad News Bahh Bells Boing Bubbles Cellos Deranged Good News Hysterical Pipe Organ Trinoids Whisper Zarvox; do say "Hi `whoami` my name is ${voice}" -v ${voice}; done |
| # You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
| # This is how I upload my new Sol Trader builds (http://soltrader.net) | |
| # Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
| S3KEY="my aws key" | |
| S3SECRET="my aws secret" # pass these in | |
| function putS3 | |
| { | |
| path=$1 |
| /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump | grep -B6 bindings:.*: |
Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.
video::webkit-media-controls-timeline {
background-color: lime;
}
video /deep/ input[type=range] {| .filter('timeago', function () { | |
| /* | |
| * time: the time | |
| * local: compared to what time? default: now | |
| * raw: wheter you want in a format of "5 minutes ago", or "5 minutes" | |
| */ | |
| // parse string date to milliseconds | |
| // Note: months are 0-based |
| // Highcharts CheatSheet Part 1. | |
| // Create interactive charts easily for your web projects. | |
| // Download: http://www.highcharts.com/download | |
| // More: http://api.highcharts.com/highcharts | |
| // 1. Installation. | |
| // Highcharts requires two files to run, highcharts.js and either jQuery, MooTools or Prototype or the Highcharts Standalone Framework which are used for some common JavaScript tasks. | |
| // <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
| // <script src="https://code.highcharts.com/highcharts.js"></script> |
| // variables.scss | |
| $screen-xs-max: 767px; | |
| $screen-sm: $screen-xs-max + 1px; | |
| $screen-sm-max: 991px; | |
| $screen-md: $screen-sm-max + 1px; | |
| $screen-md-max: 1199px; | |
| $screen-lg: $screen-md-max + 1px; | |
| // mixins.scss | |
| @mixin media($device, $only: false) { |
| // PhantomJS Cheatsheet | |
| $ brew update && brew install phantomjs // install PhantomJS with brew | |
| phantom.exit(); | |
| var page = require('webpage').create(); | |
| page.open('http://example.com', function() {}); | |
| page.evaluate(function() { return document.title; }); |