###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| sed ':a;N;$!ba;s/\n/\\n/g' my_key.pem | |
| or in vi | |
| :%s/\n/\\n/ | |
| https://tickets.opscode.com/browse/CHEF-3540 |
| # Virtual Hosts | |
| # | |
| # Required modules: mod_log_config | |
| # If you want to maintain multiple domains/hostnames on your | |
| # machine you can setup VirtualHost containers for them. Most configurations | |
| # use only name-based virtual hosts so the server doesn't need to worry about | |
| # IP addresses. This is indicated by the asterisks in the directives below. | |
| # | |
| # Please see the documentation at |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var iconfont = require('gulp-iconfont'); | |
| var iconfontCss = require('gulp-iconfont-css'); | |
| var fontName = 'Icons'; | |
| gulp.task('iconfont_styles', function(){ |
| npm install gulp-iconfont --save-dev | |
| npm install gulp-iconfont-css --save-dev | |
| curl https://gist.githubusercontent.com/prosenjit-itobuz/89d289a797a622667e77eeb0d8259ff8/raw/54a7c7accf25ea4d2f84e3fcee46d939b8300e14/gulpfile.js > gulpfile.js |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.css"> | |
| <style> | |
| @font-face { | |
| font-family: "<%= fontName %>"; | |
| src:url('../src/assets/fonts/<%= fontName %>.woff') format('woff'), | |
| url('../src/assets/fonts/<%= fontName %>.ttf') format('truetype'), | |
| url('../src/assets/fonts/<%= fontName %>.svg#<%= fontName %>') format('svg'); | |
| } |
| <% _.each(glyphs, function(glyph) { %> | |
| $<%= cssClass%>-<%= glyph.fileName %>: "\<%= glyph.codePoint %>"; | |
| <% }); %> |
| @font-face { | |
| font-family: "<%= fontName %>"; | |
| src:url('./assets/fonts/<%= fontName %>.woff') format('woff'), | |
| url('./assets/fonts/<%= fontName %>.ttf') format('truetype'), | |
| url('./assets/fonts/<%= fontName %>.svg#<%= fontName %>') format('svg'); | |
| } | |
| @mixin <%= cssClass%>-styles { | |
| font-family: "<%= fontName %>"; | |
| -webkit-font-smoothing: antialiased; |
| add_action( 'init', 'handle_preflight' ); | |
| function handle_preflight() { | |
| header("Access-Control-Allow-Origin: " . get_http_origin()); | |
| header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE"); | |
| header("Access-Control-Allow-Credentials: true"); | |
| if ( 'OPTIONS' == $_SERVER['REQUEST_METHOD'] ) { | |
| status_header(200); | |
| exit(); |