Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Vasilii indapublic

🏠
Working from home
Block or report user

Report or block indapublic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@indapublic
indapublic / mac-setup.md
Created Sep 21, 2017 — forked from orlando/mac-setup.md
Fresh Mac OS Setup
View mac-setup.md

1. Run Software Update

Make sure everything is up to date.

Software Update

2. Install Xcode and its "Command Line Tools"

  1. Go to App Store and install Xcode.
  2. Open and accept the terms
View test.sql
-- MySQL dump 10.16 Distrib 10.2.6-MariaDB, for osx10.12 (x86_64)
--
-- Host: localhost Database: test
-- ------------------------------------------------------
-- Server version 10.2.6-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
View gist:37d059042cc7b676ca0c2d548656e80f
npm info it worked if it ends with ok
npm verb cli [ '/root/.nvm/versions/node/v7.8.0/bin/node',
npm verb cli '/root/.nvm/versions/node/v7.8.0/bin/npm',
npm verb cli 'install',
npm verb cli 'oracledb',
npm verb cli '--verbose' ]
npm info using npm@4.2.0
npm info using node@v7.8.0
npm verb request uri https://registry.npmjs.org/oracledb
npm verb request no auth needed
View react-router location
App.js
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
render() {
return (
<Router history={browserHistory}>
<Route path="/" component={Main}>
<IndexRoute component={Home} />
<Route path="*" component={NotFound} status={404} />
View gist:12a77ade68a7c33109c9f75965042ebc
ALTER TABLE `shop_product_reviews` CHANGE `id` `id` BIGINT(11);
ALTER TABLE `shop_product_reviews` CHANGE `left_key` `left_key` BIGINT(11);
ALTER TABLE `shop_product_reviews` CHANGE `right_key` `right_key` BIGINT(11);
ALTER TABLE `shop_product_reviews` CHANGE `depth` `depth` BIGINT(11);
ALTER TABLE `shop_product_reviews` CHANGE `parent_id` `parent_id` BIGINT(11);
ALTER TABLE `shop_product_reviews` CHANGE `product_id` `product_id` BIGINT(11);
ALTER TABLE `shop_product_reviews` CHANGE `review_id` `review_id` BIGINT(11);
ALTER TABLE `shop_product_reviews` CHANGE `contact_id` `contact_id` BIGINT(11);
ALTER TABLE `shop_product_reviews` CHANGE `ip` `ip` BIGINT(11);
View gist:e4331f207fab836ca02c
var
util = require('util'),
http = require('http'),
nsmarty = require('nsmarty'),
Router = require('node-simple-router');
var router = new Router();
nsmarty.tpl_path = __dirname + '';
View gist:a9ae39b72cfac8643a1b
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<p>Hello, {$name}</p>
<a href="/">Index</a> | <a href="/one">One</a> | <a href="/two">Two</a> | <a href="/three">Three</a>
</body>
</html>
View config
{
"Ansi 7 Color" : {
"Green Component" : 0.7333333492279053,
"Blue Component" : 0.7333333492279053,
"Red Component" : 0.7333333492279053
},
"Tags" : [
],
"Ansi 12 Color" : {
View working config
{
"_comments": [
"Valid terminals include: 'Terminal.app' or 'iTerm'",
"In the editor value change 'default' to 'nano', 'vi', or another terminal based editor.",
"Hosts will also be read from your ~/.ssh/config or /etc/ssh_config file, if available",
"For more information on how to configure, please see http://fitztrev.github.io/shuttle/"
],
"editor": "default",
"launch_at_login": false,
"terminal": "iTerm",
View test
{
"_comments": [
"Valid terminals include: 'Terminal.app' or 'iTerm'",
"In the editor value change 'default' to 'nano', 'vi', or another terminal based editor.",
"Hosts will also be read from your ~/.ssh/config or /etc/ssh_config file, if available",
"For more information on how to configure, please see http://fitztrev.github.io/shuttle/"
],
"editor": "default",
"launch_at_login": false,
"terminal": "iTerm",
You can’t perform that action at this time.