Glossary:
- md: multiple devices
| command | description |
|---|---|
cat /proc/mdstat |
show status of all raids |
mdadm --detail /dev/md0 |
detailed status of raid md0 |
| ##depengind how you want to structure your trac urls | |
| # WSGIScriptAliasMatch ^/users/([^/]+) /var/trac/trac.wsgi | |
| WSGIScriptAlias /trac /var/trac/trac.wsgi | |
| ## If using htpasswd auth you will need | |
| # <Location "/trac/login"> | |
| # AuthType Basic | |
| # AuthName "Trac" | |
| # AuthUserFile /home/justin/public_html/bzr.bz/private/trac/.htpasswd | |
| # Require valid-user |
| <?php | |
| define('DS', DIRECTORY_SEPARATOR); | |
| function _getExtractSchemaStatement($sqlFileName, $db) | |
| { | |
| $dumpSchema = 'mysqldump' . ' '; | |
| $dumpSchema .= '--no-data' . ' '; | |
| $dumpSchema .= '-u ' . $db['user'] . ' '; | |
| $dumpSchema .= '-p' . $db['pass'] . ' '; | |
| $dumpSchema .= '-h ' . $db['host'] . ' '; |
| <?php | |
| /** | |
| * Drop this into the shell directory in the Magento root and run with -h to see all options. | |
| */ | |
| require_once 'abstract.php'; | |
| /** | |
| * Fix duplicate url keys for categories and products to work with the 1.8 alpha1 CE url key constraints. |
| # added this to | |
| sub vcl_recv { | |
| if (req.http.host == "yourdomain.com") { | |
| set req.http.Location = "http://www.yourdomain.com" + req.url; | |
| error 750 "Permanently moved"; | |
| } | |
| } |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| var gulp = require('gulp'), | |
| gutil = require('gulp-util'), | |
| sass = require('gulp-sass'), | |
| rubysass = require('gulp-ruby-sass'), | |
| fileinclude = require('gulp-file-include'), | |
| rename = require('gulp-rename'), | |
| notify = require('gulp-notify'), | |
| livereload = require('gulp-livereload'), | |
| lr = require('tiny-lr'), | |
| connect = require('gulp-connect'), |
| #!/bin/bash | |
| # | |
| # Generates client and server certificates used to enable HTTPS | |
| # remote authentication to a Docker daemon. | |
| # | |
| # See http://docs.docker.com/articles/https/ | |
| # | |
| # To start the Docker Daemon: | |
| # | |
| # sudo docker -d \ |
| #!/bin/bash | |
| # Example for the Docker Hub V2 API | |
| # Returns all images and tags associated with a Docker Hub organization account. | |
| # Requires 'jq': https://stedolan.github.io/jq/ | |
| # set username, password, and organization | |
| UNAME="" | |
| UPASS="" | |
| ORG="" |