I hereby claim:
- I am geerlingguy on github.
- I am geerlingguy (https://keybase.io/geerlingguy) on keybase.
- I have a public key whose fingerprint is 31B7 F9E1 C457 BDF5 C57B 59B3 FF8E 69CB D559 848E
To claim this, I am signing this object:
<FilesMatch ".+\.ph(p[3457]?|t|tml)$"> | |
SetHandler application/x-httpd-php | |
</FilesMatch> | |
<FilesMatch ".+\.phps$"> | |
SetHandler application/x-httpd-php-source | |
# Deny access to raw php sources by default | |
# To re-enable it's recommended to enable access to the files | |
# only in specific virtual host or directory | |
Require all denied | |
</FilesMatch> |
# new drupal vagrant install | |
# A function, when added to bash profile, clones the Vagrant Drupal-Dev-VM (https://github.com/geerlingguy/drupal-dev-vm), | |
# augments config (based on d7 or d8), renames the VM to something other than drupaltest.dev and starts vagrant up. Uses | |
# include <newd 7 my-drupal-site> and <newd 8 my-other-drupal-site>. | |
function newd { | |
if [ $2 == ]; then | |
echo 'USAGE: newd8 <version> <sitename>' |
I hereby claim:
To claim this, I am signing this object:
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
/* | |
Blinky | |
Make it look like my Arduino is doing something nefarious. | |
*/ | |
int led = 13; | |
void setup() { | |
pinMode(led, OUTPUT); | |
} |
I've had the misfortune of having to work on a Windows-based PC from time to time, and it takes a bit of time to figure out the right software required to configure a Windows workstation for proper web development. Additionally, since Windows is harder (if not impossible) to script via simple CM tools like Puppet or Ansible (and I have no desire to learn the vagaries of PowerShell, though some Windows-loving friends seem to think highly of it), I hate having to sit around googling links to get downloads of all the required apps.
Here's a simple list of all the software packages I install on Windows workstations to do development via Linux VMs (configured via Vagrant + VirtualBox):
<?php | |
/** | |
* Check if the given user agent string is one of a crawler, spider, or bot. | |
* | |
* @param string $user_agent | |
* A user agent string (e.g. Googlebot/2.1 (+http://www.google.com/bot.html)) | |
* | |
* @return bool | |
* TRUE if the user agent is a bot, FALSE if not. |
# with a space, this doesn't work... | |
$ ANSIBLE_ARGS='-t elasticsearch' vagrant provision | |
==> default: Running provisioner: ansible... | |
ERROR: tag(s) not found in playbook: elasticsearch. possible values: apache,common,elasticsearch,java,passenger,postgresql,ruby | |
Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again. | |
# without the space, it now works... | |
$ ANSIBLE_ARGS='-telasticsearch' vagrant provision |
'Twas the night before Christmas, when all through the racks | |
Not a server was alerting, not even Compaqs. | |
The backups were written to tapes with care | |
In hopes that later the data would be there. | |
The machines were nestled all snug in their sleds | |
Whilst visions of vengeance danced in their heads; | |
And oncall in his three-wolf and I in my rack. | |
Had just settled down for some syn and some ack. |
<?php | |
/** | |
* @file | |
* Generate rules for Drupal Coding Standards Sniffs. | |
* | |
* SonarQube requires manually-entered PHP CodeSniffer rules if you use anything | |
* outside of the standard set of rules. In this case, there are a bunch of | |
* Drupal-specific sniffs that we'd like to use. | |
* |