Skip to content

Instantly share code, notes, and snippets.

View TimPerry's full-sized avatar
🧪
Science

Tim Perry TimPerry

🧪
Science
View GitHub Profile
@TimPerry
TimPerry / gist:07944185162f03950454
Last active August 29, 2015 14:21
.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory --list ([Errno 8] Exec format error)
.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory --list ([Errno 8] Exec format error)
Think this is to do with the excute bit being set on the perms, so just remove it from this file:
chmod -x .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory
You might be better off fixing you permissions properly though. I ran these:
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
@TimPerry
TimPerry / gist:522234ee4de8534496ff
Created December 13, 2015 18:34
loopback webpack react native
var LoopbackBootPlugin = require('loopback-webpack-plugin');
var fs = require('fs');
var path = require('path');
var webpack = require('webpack');
var config = {
debug: true,
devtool: 'source-map',
@TimPerry
TimPerry / SVN upgrade
Created May 16, 2016 08:34
Recursive svn upgrade
cd <directory_with_repos>
find . -name .svn -type d -exec dirname {} \; | xargs svn upgrade
# Create this file:
vi .git/hooks/prepare-commit-msg
# Paste this in (yes pasting things off the internet is good):
#!/bin/sh
git log -1 --pretty=%B > $1
# This will grab the last commit message from HEAD (might not be your last commit msg!) and prepopulate your commit message.