Skip to content

Instantly share code, notes, and snippets.

@ryanburnett
ryanburnett / Local SSL on macOS.md
Last active November 15, 2024 19:14 — forked from jonathantneal/README.md
Local SSL websites on macOS Sierra

Local SSL websites on macOS Sierra

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward the edit command to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
/Users/Ryan/.rbenv/versions/2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require': cannot load such file -- sass/script/node (LoadError)
from /Users/Ryan/.rbenv/versions/2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from /Users/Ryan/.rbenv/versions/2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from /Users/Ryan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in `<top (required)>'
from /Users/Ryan/.rbenv/versions/2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/Ryan/.rbenv/versions/2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/Ryan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in `block in <top (required)>'
from /Users/Ryan/.rbenv/versions/2.1.0/lib/ruby/gem
@ryanburnett
ryanburnett / gist:8461791
Created January 16, 2014 19:34
_settings.scss
$small-range: (0em, 40em);
$medium-range: (40.063em, 64em);
$large-range: (64.063em, 90em);
$xlarge-range: (90.063em, 120em);
$xxlarge-range: (120.063em);
$screen: "only screen";
$landscape: "#{$screen} and (orientation: landscape)";
$portrait: "#{$screen} and (orientation: portrait)";
@ryanburnett
ryanburnett / gist:8461767
Created January 16, 2014 19:33
app.scss
@import "settings";
@import "foundation";
@media #{$small-up} {
body {background: red;}
}
@media #{$medium-up} {
body {background: orange;}
}
@media #{$large-up} {
@ryanburnett
ryanburnett / SassMeister-input.scss
Created January 16, 2014 18:30
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
//
// FOUNDATION SETTINGS
//
// This is the default html and body font-size for the base rem value.
@ryanburnett
ryanburnett / gist:8040771
Created December 19, 2013 15:18
conditionizr
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>conditionizr</title>
<script src="scripts/conditionizr.js"></script>
<script>
// Chrome
conditionizr.add('chrome', ['class'], function () {
return !!window.chrome && /google/i.test(navigator.vendor);
@ryanburnett
ryanburnett / gist:8030649
Created December 18, 2013 22:04
conditionizr
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>conditionizr</title>
<script src="scripts/conditionizr.js"></script>
<script>
conditionizr.add('chrome', [], function () {
return !!window.chrome && /google/i.test(navigator.vendor);
});
@ryanburnett
ryanburnett / gist:8030408
Created December 18, 2013 21:48
conditionizr
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>conditionizr</title>
<script src="scripts/conditionizr.js"></script>
</head>
<body>
</body>
Last login: Wed Oct 30 12:43:28 on ttys000
stmac2:~ ryan$ curl -s https://gist.github.com/mislav/4728286/raw/rbenv-doctor.sh | bash -x 2>&1
+ rbenv --version
rbenv 0.4.0-72-g44e76be
+ rbenv versions
* system (set by /Users/ryan/.rbenv/version)
+ rbenv global
system
+ env
+ grep -E 'PATH|RUBY|BUNDLE|RBENV'
@ryanburnett
ryanburnett / gist:7094167
Created October 22, 2013 02:08
ST debug
startup, version: 2221 osx x64 channel: stable
executable: /Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2
working dir: /
packages path: /Users/Ryan/Library/Application Support/Sublime Text 2/Packages
settings path: /Users/Ryan/Library/Application Support/Sublime Text 2/Settings
package /Users/Ryan/Library/Application Support/Sublime Text 2/Installed Packages/Package Control.sublime-package is newer than the installed version (/Users/Ryan/Library/Application Support/Sublime Text 2/Pristine Packages/Package Control.sublime-package), running PackageSetup
PackageSetup: bad zip file at /Users/Ryan/Library/Application Support/Sublime Text 2/Installed Packages/Package Control.sublime-package
PackageSetup returned: -1
catalogue loaded
found 4 files for base name Default.sublime-keymap