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 | |
echo Please specify MODX version: | |
read version | |
echo Downloading MODX $version... | |
wget https://modx.com/download/direct?id=modx-$version-pl.zip | |
unzip direct\?id\=modx-$version-pl.zip && rm direct\?id\=modx-$version-pl.zip |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
<touchégg> | |
<settings> | |
<property name="composed_gestures_time">111</property> | |
</settings> | |
<application name="All"> | |
<gesture type="DRAG" fingers="1" direction="ALL"> | |
<action type="DRAG_AND_DROP">BUTTON=1</action> | |
</gesture> | |
<gesture type="DRAG" fingers="3" direction="RIGHT"> | |
<action type="SEND_KEYS">Control+Alt+Right</action> |
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
function onEnd() | |
{ | |
$this->page->title = 'A different page title'; | |
} |
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
function onStart() | |
{ | |
$this['search_query'] = get('q', $default = null); | |
} |
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
public function onStart() | |
{ | |
return Redirect::to('http://google.com'); | |
} |
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
location / { | |
rewrite ^(/(?!backend).*[^/])$ $1/ permanent; | |
try_files $uri /index.php$is_args$args; | |
} |
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> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>October CMS - {{ this.page.title }}</title> | |
<meta name="description" content="{{ this.page.meta_description }}"> | |
<meta name="title" content="{{ this.page.meta_title }}"> | |
<meta name="author" content="OctoberCMS"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="generator" content="OctoberCMS"> |
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
# Closed for crawlers | |
User-agent: * | |
Disallow: / |
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
location ~ ^/articles/(.*) { | |
return 301 /blog/$1; | |
} |