Skip to content

Instantly share code, notes, and snippets.

View skwashd's full-sized avatar
👨‍💻
planning, coding, reviewing

Dave Hall skwashd

👨‍💻
planning, coding, reviewing
View GitHub Profile
@skwashd
skwashd / errors
Created April 28, 2016 14:32
DrupalVM with centos7 box
==> mfdev: Configuring and enabling network interfaces...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
/etc/init.d/rpcbind restart; /etc/init.d/nfs restart
Stdout from the command:
@skwashd
skwashd / binary-counter-parts.md
Created April 27, 2016 17:21
Parts list for building a binary counter on a breadboard
@skwashd
skwashd / audit.py
Last active April 27, 2016 16:05
Audit your github pushes
#!/usr/bin/env python
import pprint
import requests
from datetime import datetime
# GitHub Organisation
org = 'my_org'
# GitHub API token
@skwashd
skwashd / .gitignore_global
Last active August 23, 2022 08:55
Global .gitignore configuration for PHP and Python developers
# Save this file as ~/.gitignore_global
# Add the following entry to ~/.gitconfig
#
# [core]
# excludesfile = /Users/dave/.gitignore_global
#
# Compiled source #
###################
*.class
@skwashd
skwashd / github-status.sh
Created January 28, 2016 03:10
Check github status
#!/bin/sh
wget -qO - https://status.github.com | sed -n "s/.*status\-icon\-\(.*\)\.png.*/\1/p"
# red = down
# orange = issues
# green = good
@skwashd
skwashd / Dockerfile
Created November 16, 2015 01:14
Dependencies for Pycrypto on Iron Worker
FROM iron/python:2-dev
RUN apk update && apk upgrade
RUN apk add openssl
RUN apk add alpine-sdk
RUN apk add autoconf
RUN apk add python-dev
@skwashd
skwashd / composer.json
Created November 13, 2015 23:15
Example of composer-patches 2.x composer.json file
{
"require": {
"cweagans/composer-patches": "dev-master",
"drupal/drupal": "8.0.*@dev"
},
"config": {
"preferred-install": "source"
},
"repositories": [{
"type": "vcs",
@skwashd
skwashd / .gitignore
Last active August 29, 2015 14:23
My global .gitignore file
#
# Global .gitignore file.
#
# Created by Dave Hall (@skwashd) - http://davehall.com.au
#
# See https://help.github.com/articles/ignoring-files/#create-a-global-gitignore for installation instructions.
#
# Licensed under the terms of the WTFPL - http://www.wtfpl.net/txt/copying/
#
@skwashd
skwashd / example.patch
Created June 18, 2015 03:17
Example failing patch
From 4800290372e085a4d26bf961f19d27eb6bef9805 Mon Sep 17 00:00:00 2001
From: A User <a.user@example.com>
Date: Sun, 14 Jun 2015 22:05:23 +1000
Subject: [PATCH] Add label for 'old' entity to the diff data
---
modules/deploy_services/deploy_services.services.inc | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/deploy_services/deploy_services.services.inc b/modules/deploy_services/deploy_services.services.inc
@skwashd
skwashd / my.module
Created May 26, 2015 23:43
Changing the title of the contact form in Drupal
<?php
/**
* Implements hook_menu_alter().
*/
function my_menu_alter(&$items) {
$items['contact']['title'] = 'Contact Me';
}