This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
COMMAND="magick" | |
for FILE in *.png | |
do | |
echo "Processing $FILE" | |
echo $COMMAND $FILE | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add the following lines to .git/hooks/prepare-commit-msg and | |
# ensure it is executable. | |
# Prefix the message with the branch's name e.g. "#STORY-23: " | |
# The reason the branch line is commented is to prevent accidental | |
# commits. | |
BRANCH=`git branch | grep '^*' | sed -e 's/^\* //'` | |
MESSAGE=`cat "$1"` | |
echo "#$BRANCH: $MESSAGE" > "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adaptation of the VMware adapters fix script by Oisin Grehan: | |
# http://www.nivot.org/post/2008/09/05/VMWareVMNETAdaptersTriggeringPublicProfileForWindowsFirewall.aspx | |
# see http://msdn2.microsoft.com/en-us/library/bb201634.aspx | |
# | |
# *NdisDeviceType | |
# | |
# The type of the device. The default value is zero, which indicates a standard | |
# networking device that connects to a network. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RSpec CanCan matcher. | |
# | |
# When testing your user must have an id otherwise a nil foreign key will | |
# match on new records. | |
# | |
# Examples | |
# | |
# describe User do | |
# subject { User.create! } | |
# |
NewerOlder