Skip to content

Instantly share code, notes, and snippets.

View zorab47's full-sized avatar
⌨️

Charles Maresh zorab47

⌨️
View GitHub Profile
#!/bin/sh
COMMAND="magick"
for FILE in *.png
do
echo "Processing $FILE"
echo $COMMAND $FILE
done
# 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"
# 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.
#
# 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! }
#