Runs a connect web server, serving files from /client
on port 3000
.
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
find /var/log/ -name "*_log-*" -mtime +1 -exec rm -f {} \; |
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
ssh-keygen | |
(Enter: ~/.ssh/bitbucket_rsa) | |
ps -e | grep [s]sh-agent | |
ssh-agent /bin/bash | |
ssh-add ~/.ssh/bitbucket_rsa | |
ssh-add -l | |
cat ~/.ssh/bitbucket_rsa.pub |
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
# | |
# node ---------------> ~/.nvm/<node-version>/bin/node | |
# node-libraries -----> ~/.node_libraries | |
# node-binaries ------> ~/.node_binaries | |
# | |
aptitude install g++ curl libssl-dev apache2-utils make | |
git clone git://github.com/creationix/nvm.git ~/.nvm | |
vi ~/.bashrc | |
export PATH=$PATH:~/.node_binaries | |
NVM_DIR=$HOME/.nvm |
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
return function(n, a, b) { | |
return n > 0 ? arguments.callee(n - 1, b, a + b) : a; | |
}(n, 0, 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
AUTHOR = AUTHOR | |
EMAIL = EMAIL | |
PROJECT = PROJECT | |
PROJECTNAMESPACE = PROJECTNAMESPACE | |
BUILDFILE = $(PROJECT).phar | |
SRCDIR = src | |
TESTDIR = tests | |
PHPUNITCONFIG = phpunit.xml.dist | |
BOOTSTRAP = bootstrap.php | |
PHPUNIT = vendor/bin/phpunit |
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
sudo yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel \ | |
libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel | |
sudo yum install ruby-devel | |
rm -rf install-nodejs && wget -O install-nodejs https://gist.githubusercontent.com/saxenap/a11c32c94b66319047d4/raw && chmod 777 install-nodejs && ./install-nodejs | |
gem install io-console | |
gem install middleman |
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
Specifically, this gruntfile will perform the following. | |
- CSS: | |
-- Compile SCSS | |
-- Add vendor prefixes for the last 10 browser versions | |
- JS: | |
-- Run scripts through jshint to detect errors and potential problems in code. | |
-- Compile scripts to your destination folder in their original state. Use these in development environments as they'll be easier to debug with as their code doesn't exist on 1 line, nor is it obfuscated. | |
-- Minify and concatenate scripts into one all.min.js. Uglify will also obfuscate code if you set mangle to true, leave as false if using AngularJS. |
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
<VirtualHost *:80> | |
UseCanonicalName Off | |
ServerAlias * | |
VirtualDocumentRoot "/var/www/sites-available/%0/public" | |
Options +Includes | |
</VirtualHost> |
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
# rm -rf Makefile && wget -O Makefile https://gist.githubusercontent.com/saxenap/e4b65f41fb6ebb5185e8fff06974f8a6/raw | |
ROOT_DIR :=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | |
USER = USER | |
PASSW = PASSWORD | |
TITLE ?= test_site | |
USER_EMAIL ?= test@test.com | |
URL ?= $(shell curl http://169.254.169.254/latest/meta-data/public-ipv4) |