This file contains hidden or 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
Hint: Replace USER with your Aegir Octopus system (not ftp) username. | |
Your Aegir system username is the same as your ftp username, minus .ftp. | |
1. Upload or rsync full drupal root of your site to static/custom/name | |
2. Chmod everything with: chmod -R 775 static/custom/name | |
Chmod files with: chmod -R 777 static/custom/name/sites/default/files | |
3. Add platform in Aegir using full system path of static/custom/name | |
so it will be (in this case) /data/disk/USER/static/custom/name |
This file contains hidden or 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
# Put this in your .gitconfig | |
[url "http://git.drupal.org/project/"] | |
insteadOf = "do:" |
This file contains hidden or 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
Some helpful tips/how-to related to maintaining | |
your code in the Aegir environment follows below: | |
Aegir doesn't help in maintaing modules install/upgrades, | |
but it allows to migrate sites between platforms, | |
so you have to create a new platform with new modules | |
versions and then migrate the site. | |
It is always recommended to clone the site in the | |
existing platform and test migration of the cloned |
This file contains hidden or 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 | |
/** | |
* Search all Drupal database tables for a string | |
* Uses simple concat(), so could | |
* (a) have false positives through concat or | |
* (b) have false negatives through TEXT trimming | |
*/ | |
require_once './includes/bootstrap.inc'; | |
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); |
This file contains hidden or 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
# Install ARCH Linux with encrypted file-system and UEFI | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
# Download the archiso image from https://www.archlinux.org/ | |
# Copy to a usb-drive | |
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
# Set swedish keymap |
This file contains hidden or 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/sh | |
if [[ -z "$1" ]]; then | |
echo "Usage: proxy_switch.sh en 1.1.1.1:8080. | |
proxy_switch.sh dis" | |
exit 2; | |
fi | |
if [[ "$1" == "en" ]]; then | |
export http_proxy=http://$2 |
- For your local dev, create a
Dockerfile
that is based on your production image and simply installxdebug
into it. Exemple:
FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
This file contains hidden or 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/sh | |
# Configure homebrew permissions to allow multiple users on MAC OSX. | |
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine. | |
# allow admins to manage homebrew's local install directory | |
chgrp -R admin /usr/local | |
chmod -R g+w /usr/local | |
# allow admins to homebrew's local cache of formulae and source files | |
chgrp -R admin /Library/Caches/Homebrew |
This file contains hidden or 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 needs to be added to your .bash_profile | |
## | |
# GIT Helpers | |
## | |
# Usage: git-blame <file> | |
git-blame() { | |
ruby ~/scripts/git-blame-colored $1 | less -R | |
} |
OlderNewer