This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# IMPORTANT: Change these. | |
# What extension to use. Should be initials.dsdev. | |
server_extension = '.dev' | |
# What ip you want to reach the vm at. | |
host_only_ip = "192.168.33.10" |
This file contains hidden or 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
" .vimrc | |
" See: http://vimdoc.sourceforge.net/htmldoc/options.html for details | |
" For multi-byte character support (CJK support, for example): | |
"set fileencodings=ucs-bom,utf-8,cp936,big5,euc-jp,euc-kr,gb18030,latin1 | |
set tabstop=4 " Number of spaces that a <Tab> in the file counts for. | |
set shiftwidth=4 " Number of spaces to use for each step of (auto)indent. |
This file contains hidden or 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
$config['index_page'] = ''; | |
$config['tmpl_file_basepath'] = $_SERVER['DOCUMENT_ROOT'].'/../templates/'; | |
$config['third_party_path'] = $_SERVER['DOCUMENT_ROOT'].'/../third_party/'; | |
$config['theme_folder_path'] = $_SERVER['DOCUMENT_ROOT'].'/themes/'; | |
$config['theme_folder_url'] = ((isset(\$_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].'/themes/'; |
This file contains hidden or 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
Install dependencies | |
sudo apt-get install curl unzip | |
Install PHP Code Sniffer | |
sudo apt-get install php-codesniffer | |
Install PHP Compatibility |
This file contains hidden or 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
# ############################################################################## | |
# # EXPRESSIONENGINE REWRITING # | |
# ############################################################################## | |
# Place this at the end of the file. | |
<IfModule mod_rewrite.c> | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !^/index.php |
This file contains hidden or 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
[core] | |
# Don't track permissions other than standard modes. | |
filemode = false | |
# Don't ignore File -> file changes. | |
ignorecase = false | |
# Vim is better. | |
editor = vim | |
[color] | |
ui = true | |
[help] |
This file contains hidden or 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
Install php-build: | |
sudo apt-get build-dep php5-cli git | |
git clone git://github.com/CHH/php-build | |
sudo php-build/install.sh | |
Install php-version: | |
git clone https://github.com/wilmoore/php-version.git | |
sudo ln -s php-version/php-version.sh /usr/local/bin/php-version |
This file contains hidden or 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
## Unicorn | |
Make sure brew is up to date and install apache-ivy. | |
brew update | |
brew install ivy | |
Create a working directory for compiling and clone from mercurial. | |
mkdir -p ~/Projects/local |
This file contains hidden or 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
// Regex for finding all exp:channel:entries tags that have no disable attribute set. | |
\{exp:channel:entries(?!.*disable).*?\} |
This file contains hidden or 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
For video only: | |
ffmpeg -f x11grab -r 25 -s 1440x900 -i :0.0 -vcodec libx264 -preset ultrafast -crf 0 output.mkv | |
For video and audio: | |