Skip to content

Instantly share code, notes, and snippets.

View vutran's full-sized avatar

Vu Tran vutran

View GitHub Profile
@vutran
vutran / brew-memp.sh
Last active August 29, 2015 13:58
Install Nginx; PHP 5.4 (FPM); and some PHP extensions (imagick, xdebug, mysql)
# Install PHP 5.5 with FPM and MySQL extension
brew install --without-apache --with-fpm --with-mysql --with-phpdbg php55
# Install PHP 5.5 extensions
brew install php55-imagick php55-xdebug
# Install Nginx
brew install --with-debug nginx
# Install MySQL
Verifying I am +vutran on my passcard. https://onename.com/vutran
@vutran
vutran / .babelrc
Last active March 29, 2016 17:24
installs babel core, cli, presets, and loaders
{
"presets": ["es2015", "stage-0"]
}
@vutran
vutran / npm.md
Last active July 5, 2016 18:04
Publishing on NPM

NPM Flow

Bump the version

$ npm version major|minor|patch

With message.

@vutran
vutran / Atom.md
Last active April 28, 2016 18:20
Quick sheetsheets

Atom Cheat Sheet

Command Palette

Windows: ctrl + shift + p

Mac: cmd + shift + p

Open Settings

@vutran
vutran / Apps.md
Last active February 25, 2020 20:36
node, npm, git, cmder, and other nifty portable apps (for Windows)
@vutran
vutran / imsmart-image-specs.md
Created May 2, 2016 15:56
Image Specs for imSmart app

imSmart Image Specs

Extra Large Rectangle

  • Recommended: 964 x 440
  • Max filesize: 600kb

Large Rectangle

  • Recommended: 964 x 400
@vutran
vutran / gist:0787251af9b8ef5ec562c307db809638
Created May 18, 2016 20:29
eloqua form custom data definition
{
custom_fields: {
MyCustomField1: {
type: 'text',
defaultValue: '',
required: true,
},
MyCustomField1: {
type: 'text',
defaultValue: '',
@vutran
vutran / countries.js
Created June 17, 2016 16:32
ISO 3166-1 alpha-2 countries JS object (ES6)
export default {
AF: 'Afghanistan',
AX: 'Aland Islands',
AL: 'Albania',
DZ: 'Algeria',
AS: 'American Samoa',
AD: 'Andorra',
AO: 'Angola',
AI: 'Anguilla',
AQ: 'Antarctica',
@vutran
vutran / Post.js
Created June 30, 2016 18:42
sample ghost component
import React, { Component } from 'react';
import got from 'got';
class PostEntry extends Component {
constructor(props) {
super(props);
this.state = {
post: false,
};
}