bitnami-apps-vhosts.conf

# Bitnami applications installed in a Virtual Host
Include "/opt/bitnami/frameworks/codeigniter/conf/httpd-vhosts.conf"
Include "/opt/bitnami/apps/beta/conf/httpd-vhosts.conf"

wordpress xml-rpc

Sucuri says block it.

add_filter( ‘xmlrpc_methods’, function( $methods ) {
   unset( $methods['pingback.ping'] );
   return $methods;
} );

sublime plugins

My toolbox.

{
    "installed_packages":
    [
        "BracketHighlighter",
        "CodeFormatter",
        "ColorPicker",
        "DocBlockr",
        "Emmet",
        "Gist",
        "GitGutter",
        "HTML-CSS-JS Prettify",
        "HTML5",
        "Increment Selection",
        "Initializr",
        "JSONLint",
        "LiveStyle",
        "Phpcs",
        "Pretty JSON",
        "Sass",
        "SCSS",
        "Search WordPress Codex or QueryPosts",
        "SFTP",
        "SublimeLinter",
        "SublimeLinter-csslint",
        "SublimeLinter-html-tidy",
        "SublimeLinter-jshint",
        "SublimeLinter-php",
        "Sublimerge Pro",
        "WordPress"
    ]
}

sublime text user preferences

{
	"auto_complete_selector": "source, text",
	"auto_match_enabled": false,
	"fade_fold_buttons": false,
	"font_size": 12,
	"highlight_line": true,
	"highlight_modified_tabs": true,
	"ignored_packages":
	[
		"SublimeLinter-html-tidy",
		"Vintage",
		"Phpcs"
	],
	"open_files_in_new_window": false,
	"translate_tabs_to_spaces": true,
	"word_wrap": true
}


Work, for the night is coming

“Work, for the night is coming,
Under the sunset skies;
While their bright tints are glowing,
Work, for daylight flies.
Work till the last beam fadeth,
Fadeth to shine no more;
Work, while the night is darkening,
When man’s work is o’er.”

- Anna Coghill
(John 9:4)


cmd

remove directory

rmdir folder /s/q

mailgun is the new mandrill

Tried it out on the Accezz build.

Patrick Shampine mailgun contact form tutorial.

You need to apply so anti-spam measures.

Eustasy’s tutorial even has recaptcha!


wordpress in google app engine

Following the official guide, I felt they left out some crucial points.

Prerequisites

- When setting up your Cloud SQL make sure it’s located in the same region as your App Engine instance.
- By default App Engine Instances are located in the United States.
- Add your IP address Authorized Networks in the Cloud SQL settings.
- Authorized your App Engine Application in the Cloud SQL settings.

Deploy!

- If your GAE SDK crashes when you try to connect to mySQL, just shell in then.
- mysql -uroot -p -hip address
- the root SQL password can be set in the Cloud SQL settings.

configuring email

- I installed mandrill to get around the sendmail issues.

console.developers.google.com


webfonts not working in google app engine

If your cloning the repo from the official guide and then you find your webfonts not being found (404).

Edit the following in your app.yml

- url: /wp-content/(.*\.(ico|jpg|png|gif|woff|ttf|svg))$
  static_files: wordpress/wp-content/\1
  upload: wordpress/wp-content/.*\.(ico|jpg|png|gif|woff|ttf|svg)$
  application_readable: true