Skip to content

Instantly share code, notes, and snippets.

View djaiss's full-sized avatar
👋
Maker of open source web softwares.

Mazarin djaiss

👋
Maker of open source web softwares.
View GitHub Profile
@djaiss
djaiss / rails_link.rb
Created March 31, 2011 13:30
Rails link to an image instead of text
@djaiss
djaiss / hack.sh
Created March 31, 2012 13:41 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@djaiss
djaiss / gist:2938259
Created June 15, 2012 19:13
PHP List of countries
<?php
$countries =
array(
"AF" => "Afghanistan",
"AL" => "Albania",
"DZ" => "Algeria",
"AS" => "American Samoa",
"AD" => "Andorra",
"AO" => "Angola",
@djaiss
djaiss / gist:3034558
Created July 2, 2012 17:50
PHP - List of countries
<?php
$countries =
array(
"ae" => "United Arab Emirates",
"ao" => "Angola",
"bf" => "Burkina Faso",
"bi" => "Burundi",
"bj" => "Benin",
"bw" => "Botswana",
@djaiss
djaiss / gist:3171150
Created July 24, 2012 16:54
Per project vimrc
set exrc " enable per-directory .vimrc files
set secure " disable unsafe commands in local .vimrc files
@djaiss
djaiss / gist:4033452
Created November 7, 2012 18:32
The Top 500 Worst Passwords of All Time
(based on http://www.whatsmypass.com/the-top-500-worst-passwords-of-all-time)
123456
porsche
firebird
prince
rosebud
password
guitar
butter
@djaiss
djaiss / gist:4623525
Created January 24, 2013 15:51
Add colors to your `git log`, `git status` and everything git.
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
@djaiss
djaiss / gist:9514127
Last active August 29, 2015 13:57
VIM ⌘+A
To put in your .vimrc:
nmap <leader>a gg<CR>^<CR>V<CR>G<CR>$<cr>
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Returns the result of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111

Notes

This is the latest version of an email which I send periodically, offering customers the opportunity to pre-pay for SaaS in return for a discount. The benefits to the SaaS company are better cash flow and reduced churn rate. The benefits to the customer are, well, in the email. This genre of email has produced hundreds of thousands of dollars in pre-pays for some companies I work with, and it rarely requires any more work than this example.

I've put $79 is as a placeholder for the cost of the user's plan. We calculate that for each account, naturally, along with the billing contact's name.

Subject: Save $79 on Appointment Reminder (and get a tax write-off) Formatting: 100% plain text. Gmail automatically links up the central link. From: Patrick McKenzie (Appointment Reminder) patrick@appointmentreminder.org