"Medium traffic" = able to handle around 50 concurrent users on average.
If you want to handle 100+ concurrent users with the same modest hardware see the Varnish section below.
- 4096 MB memory
- 125GB SSD
- 4 CPUs
- Cpanel
<!DOCTYPE html> | |
<head> | |
{# Base #} | |
{% includeCssFile 'layouts/base/css/base.css' %} | |
{% includeJsFile 'layouts/base/js/base.js' %} | |
{# Header #} | |
{% includeCssFile 'modules/header/css/header.css' %} | |
{% includeJsFile 'modules/header/js/header.js' %} |
"Medium traffic" = able to handle around 50 concurrent users on average.
If you want to handle 100+ concurrent users with the same modest hardware see the Varnish section below.
<?php | |
public function cartthrob_pre_process($options) | |
{ | |
if (isset($_FILES)) { | |
// load the libraries and models | |
ee()->load->model('file_upload_preferences_model'); | |
// get upload preferences | |
$uploadPrefs = ee()->file_upload_preferences_model->get_file_upload_preferences(null, 2); |
Here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft CMS.
// Just a little vertical parllax goodness. | |
// You can play with the offsets for a more dramatic effect if you'd like. | |
$(function() { | |
var $window = $(window); | |
if ($window.width() > 640) { | |
$('.parallax').each(function() { | |
var self = $(this); | |
$(window).scroll(function() { |
#!/bin/sh | |
echo Install all AppStore Apps at first! | |
# no solution to automate AppStore installs | |
read -p "Press any key to continue... " -n1 -s | |
echo '\n' | |
echo Install and Set San Francisco as System Font | |
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
echo Install Homebrew, Postgres, wget and cask | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
#!/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |
Leaving this for historical reasons, but with the latest iteration I set up proper dotfiles. Check em out
After too many years of tinkering my machine is a bit all over. With Mojave High Sierra Montery I wanted to start fresh
Make sure everything is up to date.
<h3>Map</h3> | |
{exp:gmap:init id="map" center="United States" zoom="3" style="width:400px;height:300px" class="gmap"} | |
<hr> | |
<h3>Form</h3> | |
{exp:channel_search:form id="Geolocation"} | |
<div class="row"> |