Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Tea, Earl Grey, hot.

Jeff Geerling geerlingguy

:shipit:
Tea, Earl Grey, hot.
View GitHub Profile
View commit-to-all.sh
#!/bin/bash
#
# Add a commit and push to origin for each 'geerlingguy.*'' Ansible role.
message="Remove sudo requirement from Travis build."
# Loop through all directories starting with "geerlingguy".
for dir in ./geerlingguy*/
do
# cd into role directory.
@geerlingguy
geerlingguy / acsf_environment_detection.php
Created Apr 28, 2016
Acquia Cloud Site Factory Environment Detection
View acsf_environment_detection.php
<?php
/**
* Acquia Cloud Site Factory Environment detection examples.
*/
// This may require the ACSF module to be installed.
// @see https://www.drupal.org/project/acsf
$site settings = [
'site' => '',
'env' => '',
@geerlingguy
geerlingguy / extension-bookmarklet.js
Created Jan 10, 2016
JS bookmarklet - add an extra extension to the end of a domain
View extension-bookmarklet.js
function locationreplace(a, b) {
currentLocation = window.location.href;
newLocation = currentLocation.toString().replace(a, b);
document.location.href = newLocation;
}
locationreplace('.org', '.org.etc.etc');
@geerlingguy
geerlingguy / post-slack-messages-on-interval.js
Created Nov 13, 2015
Post Slack messages on an interval - paste this into console on a Slack chat page
View post-slack-messages-on-interval.js
setInterval(function() {
jQuery('#message-input').val('ruby--');
jQuery('#message-form').submit();
jQuery('#message-input').val('game of shadows++');
jQuery('#message-form').submit();
}, 30 * 1000);
View keybase.md

Keybase proof

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:

View blinky.ino
/*
Blinky
Make it look like my Arduino is doing something nefarious.
*/
int led = 13;
void setup() {
pinMode(led, OUTPUT);
}
@geerlingguy
geerlingguy / windows-environment.md
Created May 28, 2014
Windows 7 Environment Setup
View windows-environment.md

Windows 7 Environment Setup

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):

@geerlingguy
geerlingguy / pix_migrate.install.php
Last active Oct 3, 2016
Example of hook_uninstall() for migration-related module.
View pix_migrate.install.php
<?php
/**
* @file
* Pix migration install file.
*/
/**
* Implements hook_uninstall().
*/
View vagrant-ubuntu1604-vmware-stuck-debug.log
 10:51 PM:~/Dropbox/VMs/packer/ubuntu1604 $ vagrant up vmware --debug --provider=vmware_fusion | tee | pbcopy
INFO global: Vagrant version: 1.8.6
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV_NVM_CD_FLAGS=""
INFO global: VAGRANT_OLD_ENV___CF_USER_TEXT_ENCODING="0x1F6:0x0:0x0"
INFO global: VAGRANT_OLD_ENV_LSCOLORS="ExFxCxDxBxegedabagacad"
INFO global: VAGRANT_OLD_ENV_XPC_SERVICE_NAME="0"
INFO global: VAGRANT_OLD_ENV_SHLVL="1"
INFO global: VAGRANT_OLD_ENV_LOGNAME="jeff.geerling"
@geerlingguy
geerlingguy / project.yml
Created Feb 15, 2017
BLT project.yml - disable all BLT's module handling
View project.yml
...
modules:
local:
enable: { }
uninstall: { }
ci:
enable: { }
uninstall: { }
dev:
enable: { }
You can’t perform that action at this time.