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
; This file describes the core project requirements for Open Futures | |
; | |
; Use this file to build a full project including Drupal core (with patches) | |
; and the Rec Post install profile using the following command: | |
; | |
; $ drush make build-openfutures.make [directory] | |
api = 2 | |
core = 7.x |
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
<?php | |
/** | |
* @file | |
* Welcome text and search form content plugin. | |
*/ | |
$plugin = array( | |
'title' => t('Welcome text search form'), | |
'single' => TRUE, | |
'category' => array(t('Content widgets'), -9), |
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
81172F0D14F7AF09D6E05F31DCDA866D7CD7FC9158734F6CBFBDA124915091C3EFB07E0A2ABE5FF6A5FDA336EA8453AA1C5D509D88374963092FFD73D8A76F1A779378D89E |
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
server { | |
server_name domain.tld; | |
root /var/www/drupal7; ## <-- Your only path reference. | |
# Enable compression, this will help if you have for instance advagg module | |
# by serving Gzip versions of the files. | |
gzip_static on; | |
location = /favicon.ico { | |
log_not_found off; |
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
# paste the following content into sublime.desktop | |
[Desktop Entry] | |
Version=1.0 | |
Name=Sublime Text 2 | |
GenericName=Text Editor | |
Exec=sublime | |
Terminal=false | |
Icon=/opt/Sublime Text 2/Icon/48x48/sublime_text.png | |
Type=Application | |
Categories=TextEditor;IDE;Development |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
drush user-password someuser --password="gr3@tP@$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
CREATE DATABASE db_name; | |
GRANT USAGE ON *.* TO 'db_user'@'hostname' IDENTIFIED BY 'password'; | |
GRANT ALL PRIVILEGES ON db_name.* TO 'db_user'@'hostname'; | |
# Shorter | |
create database db_name; | |
grant all on db_name.* to 'db_user' identified by 'password'; | |
flush privileges; |
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
Options +FollowSymlinks | |
RewriteEngine on | |
RewriteCond %{http_host} ^original-url.com [nc] | |
RewriteRule ^(.*)$ http://www.where-you-want-it-to-go.com/ [r=302,nc] | |
# Redirect domain and all subdomains | |
RewriteCond %{http_host} ^(.*)original-domain\.com [nc] | |
RewriteRule ^(.*)$ http://www.new-domain.com [r=302,nc] |
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
<?php | |
function nfact($n) { | |
if ($n == 0) { | |
return 1; | |
} | |
else { | |
return $n * nfact($n - 1); | |
} | |
} |
OlderNewer