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 | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
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
location ~* /(/files/)/ { | |
rewrite ^/sites/(.*)/files/(.*)$ /sites/$host/files/$2 last; | |
try_files $uri @drupal; | |
} |
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
# Migrating my old .gitconfig blog post from 2007 to here so I can update it easier. | |
# Original URL: | |
# https://www.susanpotter.net/snippets/my-.gitconfig-.tigrc-files/ | |
[user] | |
name = Susan Potter # make sure you change this | |
email = [email protected] # make sure you change this | |
[color] | |
diff = auto | |
status = auto | |
branch = auto |
NewerOlder