Javascript cookies

I use to use custom code for setting and getting cookies. Now I just use jquery.cookie, which can be found here: https://github.com/carhartl/jquery-cookie/ I've included my old cookie code below, just for historical reference :)

BFG Repo-Cleaner

If you have commits in your git repo that you want removed, you can use git-filter-branch, but that can be pretty slow. Perhaps you accidentally committed and pushed a password, a db dump, email addresses, etc. BFG makes it easy to clean out those files and does it ~ 10-100x faster that git-filter-branch.

Drupal code a block with an edit form

Sometimes you need to code a block with an edit form. You could just create a block with the UI but that's not going to be exportable with Features and ctools / page manager. This method uses variable_get and variable_set. You may want to create a custom db table to store the data in if you don't want the variables to be loaded into memory on every page load...

About

Welcome to my personal documentation site. Here's where I keep all my notes, mostly related to Drupal and other web stuff. The easiest way to find things is to use the search box.

Common HTMLawed settings

Here are some common settings for HTMLawed that can be used as a more lenient 'filtered html' format for trusted editors that need a simple WYSIWYG. This configuration allows images, which can be a security risk. If you don't understand the risk, then leave Drupal's defaults the way they are and perhaps try to work with the Full HTML format or use CSS classes and stylesheets.