Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
#
# vim:ft=sh:fenc=UTF-8:ts=4:sts=4:sw=4:expandtab:foldmethod=marker:foldlevel=0:
#
# $Id: Gwall 954 2008-04-14 16:25:02Z wael $
#
# This script will load a random wallpaper on each boot.
# Copyright (C) 2006, Wael Nasreddine <[email protected]>
#
# This program is free software; you can redistribute it and/or
#!/usr/bin/env ruby
require 'fileutils'
require 'digest/md5'
class DownloadArchiver
attr_reader :files
attr_reader :md5_to_files
@kalbasit
kalbasit / gist:747659
Created December 19, 2010 20:13
RVM Profile
We couldn’t find that file to show.
@kalbasit
kalbasit / install_kenshin
Created February 1, 2011 17:24
Un script pour nous aider à installer facilement Kenshin
#!/usr/bin/env bash
# -*- encoding : utf-8 -*-
# -*- bash -*-
#--
# vim:ft=sh:fenc=UTF-8:ts=2:sts=2:sw=2:expandtab
#
# Copyright 2011 Wael Nasreddine <[email protected]>
#
# install_kenshin is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
@kalbasit
kalbasit / capistrano_database_yml
Created May 31, 2011 13:34
Capistrano RVM Unicorn
#
# = Capistrano database.yml task
#
# Provides a couple of tasks for creating the database.yml
# configuration file dynamically when deploy:setup is run.
#
# Category:: Capistrano
# Package:: Database
# Author:: Simone Carletti <[email protected]>
# Copyright:: 2007-2010 The Authors
aws-email unix - n n - - pipe
flags=R user=list argv=perl -I/opt/amazon-ses/lib /opt/amazon-ses/bin/ses-send-email.pl -r
-k /opt/amazon-ses/etc/aws_credentials -e https://email.us-east-1.amazonaws.com -f ${sender} ${recipient}
default_transport = aws-email
perl -MCPAN -e 'install Digest::SHA'
perl -MCPAN -e 'install URI::Escape'
perl -MCPAN -e 'install Bundle::LWP'
perl -MCPAN -e 'install MIME::Base64'
perl -MCPAN -e 'install Crypt::SSLeay'
perl -MCPAN -e 'install XML::LibXML'
curl -L http://bit.ly/sm4qBr -o- >> /etc/postfix/master.cf
sed -e '/.*default_transport.*/d' -i /etc/postfix/main.cf
curl -L http://bit.ly/tbDxvt -o- >> /etc/postfix/main.cf
mkdir -p /opt/amazon-ses
cd /tmp
wget http://d36cz9buwru1tt.cloudfront.net/catalog/attachments/ses-tools-2011-10-31.zip
cd /opt/amazon-ses
unzip /tmp/ses-tools-2011-10-31.zip
rm /tmp/ses-tools-2011-10-31.zip
mkdir etc
mkdir lib
mv bin/SES.pm lib