Skip to content

Instantly share code, notes, and snippets.

View siliconmeadow's full-sized avatar

Richard Sheppard siliconmeadow

  • Nomensa Ltd
  • New York / Paris / Peckham
View GitHub Profile
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
@rfay
rfay / .gitconfig
Created April 12, 2011 04:12 — forked from schacon/.gitconfig
insteadOf Example for git.drupal.org
# Put this in your .gitconfig
[url "http://git.drupal.org/project/"]
insteadOf = "do:"
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
@jpstacey
jpstacey / db_search.php
Created June 27, 2011 11:42
Search all tables in a Drupal database using Drupal bootstrap to get a db connection
<?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);
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 10, 2024 19:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@mattiaslundberg
mattiaslundberg / arch-linux-install
Last active March 29, 2024 08:38
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# 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
@tsphethean
tsphethean / proxy_switch.sh
Last active August 29, 2015 13:57
Proxy switchy script
#!/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
@chadrien
chadrien / README.md
Last active September 1, 2023 12:43
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&amp;&amp; echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" &gt; /usr/local/etc/php/conf.d/xdebug.ini \
@jaibeee
jaibeee / brew-perms.sh
Last active February 15, 2024 22:49
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.
#!/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
@legovaer
legovaer / .bash_profile
Created November 12, 2015 15:50
git-blame-function
# 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
}