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 MYTHEME_theme($existing, $type, $theme, $path) { | |
$template_path = drupal_get_path('theme', 'MYTHEME') .'/templates'; | |
return drupal_find_theme_templates($existing, '.tpl.php', $template_path); | |
} |
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
# kill the running mysql process | |
sudo service mysql stop | |
# start mysql in safe mode and skip grant tables | |
sudo mysqld_safe --skip-grant-tables --skip-networking & | |
# log in with root | |
mysql -u root | |
# ( optional ) flush privileges, create new user, grant 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
Xcode | |
First of all, get the latest Xcode version (6.1) via the Mac App Store: | |
Download Xcode.app (via Mac App Store) | |
As soon as you have finished the download, open Xcode in your /Applications folder and agree to the licence. | |
Open a new Terminal window and install the Xcode Command Line Tools: |
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
object { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} | |
.parent-element { | |
-webkit-transform-style: preserve-3d; | |
-moz-transform-style: preserve-3d; | |
transform-style: preserve-3d; |
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
.media {margin:10px;} | |
.media, .bd {overflow:hidden; _overflow:visible; zoom:1;} | |
.media .img {float:left; margin-right: 10px;} | |
.media .img img{display:block;} | |
.media .imgExt{float:right; margin-left: 10px;} |
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 | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.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
aptitude install -y git curl python-dev python-pip redis-server ruby1.9.3-full rubygems1.9.3 | |
aptitude install -y mysql-server libmysqlclient-dev | |
adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git git | |
adduser --disabled-login --gecos 'gitlab system' gitlab | |
usermod -a -G git gitlab | |
su - gitlab | |
ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa | |
aptitude install gitolite | |
cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub | |
su - git |
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
/** | |
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. | |
* For licensing, see LICENSE.html or http://ckeditor.com/license | |
*/ (function () { | |
var imageDialog = function (editor, dialogType) { | |
// Load image preview. | |
var IMAGE = 1, | |
LINK = 2, | |
PREVIEW = 4, | |
CLEANUP = 8, |
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
# Ignore configuration files that may contain sensitive information. | |
sites/*/settings*.php | |
# Ignore paths that contain user-generated content. | |
sites/*/files | |
sites/*/private | |
# Ignore sublime project and development files | |
*.sublime-projectcompletions | |
*.sublime-project |
OlderNewer