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
-- Delete all from sender - https://gist.github.com/xunker/44fa4404c882c27e0ad25857e9470552 | |
-- For the Mail.app in Mac OS X. It will search for all messages set by the sender of the email message currently open, | |
-- highlight them all and ask if you want to delete them. If you choose "yes" it will delete them for you and then clear | |
-- the search. | |
-- | |
-- Important notes: | |
-- You can load this in Script Editor and then save it as an application so you can run it without Script Editor being open. | |
-- This does not work when Mail.app is in fullscreen mode; it must be in windowed mode. | |
-- You will need to enable "Assistive Devices" support for Script Editor (if run there) or for the .app you saved if you converted it to a standalone app. |
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 | |
if ! which chef-solo; then | |
if [ -e "/etc/gentoo-release" ]; then | |
mkdir -p /usr/portage | |
emerge --sync | |
emerge --oneshot portage | |
emerge -C perl-core/Module-Metadata | |
emerge -C perl-core/Parse-CPAN-Meta | |
emerge -C lang-dev/perl | |
emerge perl |
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
require 'digest/md5' | |
hash = {} | |
Dir.glob("**/*", File::FNM_DOTMATCH).each do |filename| | |
next if File.directory?(filename) | |
# puts 'Checking ' + filename | |
key = Digest::MD5.hexdigest(IO.read(filename)).to_sym | |
if hash.has_key? key |
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
#!/usr/bin/bash | |
# Gentoo prefix installation on Mac OS X (Mar. 2012) | |
# This script may be outdated soon. | |
# Please refer: http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml | |
export EPREFIX="$HOME/gentoo" | |
export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:$PATH" | |
curl -o bootstrap-prefix.sh 'http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/scripts/bootstrap-prefix.sh?format=txt' |
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
# | |
# Cookbook Name:: apache | |
# Recipe:: default | |
# | |
# Copyright 2012, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
package "apache2" do |