Skip to content

Instantly share code, notes, and snippets.

@icantrap
icantrap / gist:1469646
Created December 12, 2011 23:28 — forked from stesh/gist:1130885
Disable Dashboard on OS X
#!/bin/sh
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
@icantrap
icantrap / failed.png
Created August 4, 2010 07:50 — forked from boxedup/tests.watchr
watchr script for non-Rails test::unit projects w/ growl support
�PNG

���
IHDR���@���@����iq���� pHYs�� �� ������IDATx�[�eE��O��ř7�!H�`�$+��*�%���J颈�KX]FKV��0n) ò�����$q� �̼y9�xR��u���� ����{}:�����>�:�� l���ey���2ϑ�3;3��9�4wI�sPE�C�����)H%�����8�$QH�J�f��t�S+�J=���^���p�:�'2�=5��O٢
��#����p������C�FM�޾��k?I�u7ܾM��[%ܵ����]�H��Y�" >E�iTM���A(�KĕXi��l訟%�}���օt���|S���w�|�鿯?��������. �UqS���-��7��N��4"il�,��0��-��Q5�$�Ҩ�4�Z��J�n�#��HG�;=�Le�v�ZAu�* �C�E���Z��7;z���o||e�$�q\ʮ�@�6(�蠭x���_�t���ScI !"m�L�&'��f�WI��0��x�P,�W��0����e�zyF?X�
J)�.r,&83\��;G~��g����H
�{��&��a�k&)K3��_/˾�}�<��T{D��a5���������l L�0�%. �Ւ��C#$A��R��v�4䓟��W����J�P����-���?�~� o~��+���{�c�+���k*�E�3���I�cP
$}o?E��t����4jA ��6c�OH��g^GH=E/.�y�N+�]
��� �Q�����������[�S�zE����g�`�:��X�L���H#��,=g�Kr�> j����Q�K�@bM��Sm�A�0��L�PFP\ϥ��?m��ߜ� �J�Y�Ʀϯ]���EE4j���L.��t��7Li/��D΁��>�$���_�S��u�}C�\��\up�b7_�I�f@�Z�����#f������ƄnI��i����������X��;߆ZBA�F�H�-+�'���[���~�zH���3a�I �]y��+
@icantrap
icantrap / factory_girl attachments for paperclip
Created July 27, 2010 18:06 — forked from jeffrafter/factory_girl attachments for paperclip
Example of factory_girl factory for model that has paperclip attachment
require 'action_controller/test_process'
# Paperclip attachments in factories, made easy based on technicalpickles
Factory.class_eval do
def attach(name, path, content_type = nil)
if content_type
add_attribute name, ActionController::TestUploadedFile.new("#{RAILS_ROOT}/#{path}", content_type)
else
add_attribute name, ActionController::TestUploadedFile.new("#{RAILS_ROOT}/#{path}")
end