Skip to content

Instantly share code, notes, and snippets.

@robknight
robknight / gist:9601194
Created March 17, 2014 15:19
Drush via Composer in Puppet
composer::project {'drush':
project_name => 'drush/drush',
target_dir => '/opt/drush',
version => 'dev-master'
}
file {'/usr/bin/drush':
ensure => 'link',
target => '/opt/drush/drush'
}
@stewsnooze
stewsnooze / gist:1451329
Created December 9, 2011 12:21
Detecting errors in drush in Jenkins
YOURDRUSHCOMMAND 2>&1 |tee /tmp/test$BUILD_ID
if [ `grep -e "Fatal error" /tmp/test$BUILD_ID | wc -l` != 0 ]; then
ERROR_LEVEL=1
fi
.....
if [ `grep -e "^.* passes," /tmp/test$BUILD_ID | grep -v "0 fails" | wc -l` == 0 ]; then
echo "exited $ERROR_LEVEL" > /tmp/exit_code
exit $ERROR_LEVEL
else
exit 1
#
# Jekyll migrator for Drupal 7+
# adrianmejia.com
#
require 'rubygems'
require 'sequel'
require 'fileutils'
require 'yaml'
@AdamWhittingham
AdamWhittingham / gist:d5863d30d2ac492840d1
Created March 16, 2015 23:37
Ubuntu Hubot Upstart Config
# hubot
description "Hubot Slack bot"
author "Adam Whittingham <emailaddress>"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
# Path to Hubot installation
env HUBOT_DIR='/opt/hubot/kaytoo/'
@skwashd
skwashd / .travis.yml
Created June 29, 2016 13:05
Incrementally improve your Drupal code
language: php
sudo: false
php:
- 5.6
install:
# Remove xdebug to make composer faster.
- phpenv config-rm xdebug.ini
@nodesocket
nodesocket / kibana
Created July 7, 2013 01:49
Kibana init.d service script.
#!/bin/bash
### BEGIN INIT INFO
# Provides: kibana
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Make sense of a mountain of logs.
### END INIT INFO
@nodesocket
nodesocket / logstash
Created July 7, 2013 01:18
LogStash init.d service script.
#! /bin/sh
#
# /etc/rc.d/init.d/logstash
#
# Starts Logstash as a daemon
#
# chkconfig: 2345 20 80
# description: Starts Logstash as a daemon
### BEGIN INIT INFO
@jasonm23
jasonm23 / Ristretto-Affogato.kbd.json
Last active February 22, 2023 22:59
Ristretto Affogato
[
{
"backcolor": "#000000",
"name": "Ristretto Affogato",
"author": "/u/instant_sunshine",
"switchMount": "cherry",
"switchBrand": "cherry",
"switchType": "MX1A-E1xx",
"plate": true
},
@malarkey
malarkey / Contract Killer 3.md
Last active April 16, 2024 21:44
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………