This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================== | |
// H&L GulpJS + Node - Front End Asset Management | |
//============================================================================== | |
var gulp = require("gulp"), | |
sass = require('gulp-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
jshint = require('gulp-jshint'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 1) Install Atalassian Stash on default port 7990 | |
* 2) Create new website on OSX Server (http://stash.osx-server.com) | |
* 3) Update VHosts on OSX Server for site created above with ProxyBalancer entry | |
* 4) Start Stash with shell script | |
* 5) Check site in browser to make sure forwarding is working | |
*/ | |
<IfModule mod_proxy_balancer.c> | |
ProxyPass / balancer://balancer-group/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Setup: | |
* 1) Install Node/NPM Globally (https://nodejs.org/) | |
* 2) Install Gulp and Gulp Modules | |
* | |
* Run these commands in Terminal after installing Node: | |
* 1) sudo npm install --global gulp | |
* 2) npm install gulp gulp-jshint gulp-sass gulp-autoprefixer gulp-minify-css gulp-uglify gulp-imagemin imagemin-pngquant gulp-rename gulp-watch gulp-notify --save-dev | |
**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Setup for connecting SequelPro to the Vagrant box | |
#port forwarding | |
forward port 3306 to 33060 | |
#my.conf | |
Change binding from 127.0.0.1 to 0.0.0.0 | |
#mysql users config | |
select user,host from mysql.user where user='root'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#MySQL Setup | |
forward port 3306 to 33060 | |
Change binding from 127.0.0.1 to 0.0.0.0 | |
select user,host from mysql.user where user='root'; | |
create user 'root'@'10.0.2.2' identified by 'yourpassword'; | |
grant all privileges on *.* to 'root'@'10.0.2.2' with grant option; | |
flush privileges; | |
sudo service mysql restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>%%title%%</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Install new Vagrant box with ubuntu/trusty64 | |
2) sudo apt-get update / upgrade | |
3) install NGINX | |
> sudo apt-get install nginx | |
4) install MySQL | |
> sudo apt-get install mysql-server-5.6 | |
> sudo mysql_secure_installation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Template Name: AJAX Page | |
* | |
* This page template responds to the request type by serving only the content for an AJAX request | |
* and the content wrapped in the parent layout for a normal request. This allows for loading the | |
* content via AJAX and the History API without the need for hash-bang URLs. | |
*/ | |
$url = rtrim($_SERVER['REQUEST_URI'],"/"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================== | |
// H&L GulpJS + Node - Front End Asset Management | |
//============================================================================== | |
var gulp = require("gulp"), | |
sass = require('gulp-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
jshint = require('gulp-jshint'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglifyjs'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# USAGE: ./encoder.sh some-video.mov | |
# Changed the MP4 settings to work with Safari | |
# OGG seems to work best just using the quality scale | |
# WEBM is just adjusted by bitrate depending on how much motion there is | |
IN=$1 | |
OUT=$(echo $1 | sed 's/^\(.*\)\.[a-zA-Z0-9]*$/\1/') | |
ffmpeg -i $IN -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3 -movflags +faststart $OUT.mp4 |
OlderNewer