Skip to content

Instantly share code, notes, and snippets.

Justin Carmony JustinCarmony

Block or report user

Report or block JustinCarmony

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
@JustinCarmony
JustinCarmony / example_output.txt
Created Jul 30, 2014
Summary Salt Highstate Outputter
View example_output.txt
root@deployServer:~# salt \* state.highstate --output=summary_highstate
web-server01.example.com ------------------ Success: 20 Changed: 0 Errors: 0
web-server02.example.com ------------------ Success: 71 Changed: 1 Errors: 0
db-server03.example.com ------------------- Success: 73 Changed: 1 Errors: 0
mongo-server04.example.com ---------------- Success: 74 Changed: 1 Errors: 0
mongo-server05.example.com ---------------- Success: 74 Changed: 1 Errors: 0
memcache-server06.example.com ------------- Success: 74 Changed: 1 Errors: 0
mysql-server07.example.com ---------------- Success: 74 Changed: 1 Errors: 0
logs-server08.example.com ----------------- Success: 20 Changed: 0 Errors: 0
redis-server09.example.com ---------------- Success: 27 Changed: 0 Errors: 0
View gist:b88af52a2d4ff0b86be2
/** @jsx React.DOM */
var React = require('./vendor/js/react');
var page = require('./vendor/js/page');
var jQuery = require('./vendor/js/jquery');
var Page1 = React.createClass({
render: <div>Hi!</div>
});
View gist:e24828974c3f42796c1e
var React = require('react');
var Router = require('react-router'); // or var Router = ReactRouter; in browsers
var DefaultRoute = Router.DefaultRoute;
var Link = Router.Link;
var Route = Router.Route;
var RouteHandler = Router.RouteHandler;
var AppController = require('./controllers/AppController.react');
var HomeController = require('./controllers/HomeController.react');
View routes.jsx
var React = require('react');
var Router = require('react-router'); // or var Router = ReactRouter; in browsers
var DefaultRoute = Router.DefaultRoute;
var Link = Router.Link;
var Route = Router.Route;
var RouteHandler = Router.RouteHandler;
var AppController = require('./controllers/AppController.react');
var HomeController = require('./controllers/HomeController.react');
View gist:2d0ef67cd2943528410b86f5dc354973
Deprecation Notice: The callback Sculpin\Composer\SculpinThemePlugin\SculpinThemePlugin::onPostPackageUpdate declared at /Users/jcarmony/git/uphpu/uphpu-website/vendor/sculpin/sculpin-theme-composer-plugin/src/Sculpin/Composer/SculpinThemePlugin/SculpinThemePlugin.php accepts a Composer\Script\PackageEvent but post-package-update events use a Composer\Installer\PackageEvent instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes in phar:///Users/jcarmony/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:320
@JustinCarmony
JustinCarmony / import.js
Last active Apr 16, 2018
Code for pulling a document from Quip and Posting it to Hexo
View import.js
let path = require('path');
let fs = require('fs');
let readline = require('readline');
let request = require('request');
let TurndownService = require('turndown');
let TurndownPluginGfm = require('turndown-plugin-gfm')
let _ = require('lodash');
let async = require('async');
let chalk = require('chalk');
let sanitizeHtml = require('sanitize-html');
View visits-and-hits.sql
SELECT
VISIT.visitId,
VISIT.device.operatingSystem,
HIT.type,
HIT.page.pageTitle,
SUBSTR(HIT.page.pagePath, 0, 20) AS pagePath
FROM `141567708.ga_sessions_20180501` VISIT,
UNNEST(VISIT.hits) HIT
ORDER BY VISIT.visitStartTime ASC,
HIT.hitNumber ASC
You can’t perform that action at this time.