Skip to content

Instantly share code, notes, and snippets.

View mdrmike's full-sized avatar

mike stewart mdrmike

View GitHub Profile
@mdrmike
mdrmike / WAPRO--1503.md
Last active August 29, 2015 14:17
Long Beach Web and Mobile Professionals -- Mar 2015

Long Beach Web and Mobile Professionals -- March 2015

News and Announcements

Events

  • New! Weekly: Saturday Mornings, Code & Coffee
  • TAFF Expo on.fb.me/1I0jrNS
  • LBTech: reorganizing of the Board ... DW stepped down as Executive Director. Added Michael Evans as Treasurer. Eventually looking to expand the Board and add also looking for Advisory members.
@mdrmike
mdrmike / scale13-notes.polymer.md
Last active August 29, 2015 14:15
Polymer with Pandas
  • polymer: paper element
  • webcomponents.js
  • flexbox

framework: ember, angular, backbone dart, typescript

`

<script src="webcomponents/webcomonents.js"></script>
@mdrmike
mdrmike / notes-MEAN
Last active August 29, 2015 14:15
Notes: Scale13x MEAN Stack
* cloud9: ide.c9.io
* iojs https://iojs.org/en/index.html
* https://github.com/google/traceur-compiler
* https://github.com/google/
* ecmascript 6 : https://www.google.com/search?client=ubuntu&channel=fs&q=full+stack+javascript+development+with+pies&ie=utf-8&oe=utf-8#newwindow=1&channel=fs&q=ecmascript%206
* http://github.com/c9/architect
* https://www.polymer-project.org/
* express: stackoverflow.com/questions/19411135/what-does-express-js-do-in-the-mean-stack#answer-19411233
* jade (templating) sass
* gss (grid stylsheets)
#!/bin/bash
PROGRAMS="$HOME/Programs"
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
@mdrmike
mdrmike / LBWP--1502.md
Created January 28, 2015 19:35
Long Beach Web and Mobile Professionals -- news Feb 2105 (WIP)
@mdrmike
mdrmike / TEMPLATE_drupalpro.conf
Last active August 29, 2015 14:14
NGINX VHOST TEMPLATE FOR DRUPALPRO
##------------------------------------
# NGINX VHOST TEMPLATE FOR DRUPALPRO
# Based on: http://wiki.nginx.org/Drupal
#-------------------------------------
#
# FIND AND REPLACE ##__VARIABLES__## in text editor
#
# ##__SERVER_TLD__## -- FQDN (aka URL) Example: foobar.dev, *.foobar.dev, AwesomeWebsite.com (multiple comma separated URI's is ok).
# ##__PATH_TO_SITE__## -- ABSOLUTE PATH TO DRUPAL Example: /home/drupalpro/websites/foobar.dev/www
# ##__D7_D8__## Drupal 7-8, Find & ERASE these variables
@mdrmike
mdrmike / post-receive
Last active April 19, 2016 18:51
post-recieve hook to automatically deploy a git branch to either staging or production. (or do nothing)
#!/bin/bash
# git/hooks/post-receive
# add this script to a git repo on a 'remote' server
# to automatically deploy a git branch to either staging or production (or do nothing)
WORK_TREE_PROD=$HOME/production # assumes logged in user HOME/production path is webroot
WORK_TREE_STAGE=$HOME/staging # assumes logged in user HOME/staging path is webroot
GIT_DIR=$HOME/git # assumes remote git repo is in HOME/git (no dot - not hidden)
@mdrmike
mdrmike / HOWTO: Drupalpro --Manually Setup Website.md
Last active November 26, 2015 17:39
HowTo: Manually Setup a New Website in Drupalpro

How to Setup a New Website

============================

This is an example of how to use Drupalpro, to manually setup a Drupal7 website called foobar.dev. This does not make use of the addon drush scripts to automate the process, but demonstrates how to manually add a website.

OVERVIEW

  • Create website root folder
@mdrmike
mdrmike / ubuntu1404-webserver-build.sh
Last active February 4, 2016 23:16
Bash script to Setup Ubuntu 14.04 + Nginx + PHP-FPM + Maria and other optional tools based on for https://gist.github.com/mdrmike/2fb54d72bd9c4075dd5e
#!/bin/bash
# Setup Script to configure Ubuntu 14.04 as an NGINX webserver configured for
# Drupal. This script will install and configure NGINX + PHP5-FPM + MARIADB and
# Optionally instal and configure additional development and desktop software.
#
# THE MIT LICENSE
# Copyright (C) 2014, Michael Stewart www.zaferia.net
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#