Skip to content

Instantly share code, notes, and snippets.

View robhrt7's full-sized avatar

Robert Haritonov robhrt7

View GitHub Profile
@robhrt7
robhrt7 / config.yaml
Created May 5, 2020 21:16
Example of workflow based/parallel CircleCI build and deploy to Netlify conig
aliases:
- &deps
- "Dependencies"
- &allSites
- "reactSummit"
- "JSNation"
- "JSNationLive"
- "NodeDayUK"
- &dependencies
- checkout
@robhrt7
robhrt7 / MySQL_5-7_macOS.md
Last active November 4, 2024 19:55 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL 5.7 on macOS using Homebrew

This is a fork of original gist https://gist.github.com/nrollr/3f57fc15ded7dddddcc4e82fe137b58e, with slight changes on pointing to 5.7 version branch, instead of 8 (latest default of MySQL in Hombrew).

Install MySQL 5.7 on macOS

This procedure explains how to install MySQL using Homebrew on macOS (Sierra 10.12 and up)

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
@robhrt7
robhrt7 / .htaccess
Last active December 3, 2015 23:37
# Apache Server Configs v2.14.0 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have
# access to the main server configuration file (which is usually called
# `httpd.conf`), you should add this logic there.
#
# https://httpd.apache.org/docs/current/howto/htaccess.html.
# ######################################################################
<!-- Template to be transformed into Shadow DOM -->
<template>
<a href="" class="button">Button</a>
<script>
document.querySelectorAll('.button'); // Document is global, but how to reference current Shadow DOM document?
</script>
<template>
@robhrt7
robhrt7 / route.js
Created July 1, 2015 09:08
SourceJS route example: bower_components from root to local
var url = require('url');
var path = require('path');
var fs = require('fs');
var specUtils = require(path.join(global.pathToApp, 'core/lib/specUtils'));
var prevRef = 'http://google.com';
// Search requested resource in ref path first
var searchInRefPath = function(req, res, next){
var originalUrl = req.originalUrl;
@robhrt7
robhrt7 / gist:d8ec45b39c27ade30757
Created June 26, 2014 14:57
Reading Grunt config from custom functions in Gruntfile.js for further use in config
/*
Usefull snippent for this kind of custom Grunt functions https://gist.github.com/operatino/bd857f570adaf2872c37
*/
module.exports = function (grunt) {
var baseConfig = {
foo: 'bar'
@robhrt7
robhrt7 / gist:bd857f570adaf2872c37
Created June 26, 2014 14:44
Custom Grunt script for couting CSS imports count, and seperating files before hitting IE limit of 31 imports
/*
Processing CSS @imports file, and counting how much @imports it includes.
If import count reaches the limit of 31 files (in IE8-9) and more, script will create additional CSS files:
input.css:
@import 1;
...
@import 36;
@robhrt7
robhrt7 / preprocessors-cheatsheet.scss
Last active June 25, 2019 05:18
Preprocessors style guide cheatsheet
//
// Preprocessors style guide cheatsheet
// =============================================================================================
//
// Level 1
// ----------------------------------------------------------------------------------
.somecode {
@robhrt7
robhrt7 / description.css
Created February 17, 2014 20:57
Description and TODOs in CSS
/**
* author: robert.haritonov | skype : haritonov.r
* spec: http://link
* created: 05.12.13
*
* comments:
* @project class:
* @project colors:
**/