Lots of people have asked, so here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft.
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/bash | |
# Reload a varnish config | |
# Author: Kristian Lyngstol | |
FILE="/etc/varnish/ugc.vcl" | |
# Hostname and management port | |
# (defined in /etc/default/varnish or on startup) | |
HOSTPORT="localhost:6082" | |
NOW=`date +%s` |
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
alias sshkey="cat ~/.ssh/id_rsa.pub | pbcopy && echo 'Copied to clipboard.'" |
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
||| | |
\|/ | |
| WWW o | |
| /_^_\ O ) | |
B, /|o o\\_ ( | |
|\\ |\ - |\\_/ o ) <*)< | |
| \\\_/= \_/ <^)< ( | |
| `\ \\ | |
| | .][. | ) | |
| \ | /( ) o ( |
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> | |
ServerName magento.loc | |
DocumentRoot /var/www/html | |
DirectoryIndex index.php | |
<Directory /var/www/html/var/> | |
Order deny,allow | |
Deny from all | |
</Directory> |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.
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
# OS generated files # | |
################################ | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes | |
Icon? | |
ehthumbs.db | |
Thumbs.db |
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
.~~. .~~. | |
'. \ ' ' / .' | |
.~ .~~~..~. | |
: .~.'~'.~. : | |
~ ( ) ( ) ~ | |
( : '~'.~.'~' : ) | |
~ .~ ( ) ~. ~ | |
( : '~' : ) Raspberry Pi | |
'~ .~~~. ~' | |
'~' |
NewerOlder