Skip to content

Instantly share code, notes, and snippets.

View zekus's full-sized avatar
🏠
Working from home

Antonio Lorusso zekus

🏠
Working from home
View GitHub Profile
require 'spec_helper'
describe ReportsMailer do
describe 'sending a report' do
let(:user) { build(:user) }
let(:report_mailing) { build(:report_mailing_with_contact) }
describe 'sends the PDF report to the selected contacts' do
let(:email) { ReportsMailer.visit_report(report_mailing, user, false) }
#!/usr/bin/env ruby
# Pass in the name of the site you wich to create a cert for
domain_name = ARGV[0]
if domain_name == nil
puts "Y U No give me a domain name?"
else
system "openssl genrsa -out #{domain_name}.key 1024"
system "openssl req -new -key #{domain_name}.key -out #{domain_name}.csr -subj '/C=US/ST=NJ/L=Monroe/O=MyCompany/OU=IT/CN=#{domain_name}'"
@zekus
zekus / nginx.conf
Last active August 29, 2015 14:19
local nginx development for ssl
daemon off;
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@zekus
zekus / docker-for-mac-shit
Created May 9, 2017 10:49
Docker-for-Mac patches
#!/bin/bash
# ref: https://github.com/docker/for-mac/issues/668
set -e
cd ~/Library/Containers/com.docker.docker/Data/database
echo -n "Current full-sync-on-flush setting: "
cat ./com.docker.driver.amd64-linux/disk/full-sync-on-flush
echo

Keybase proof

I hereby claim:

  • I am zekus on github.
  • I am lantonio (https://keybase.io/lantonio) on keybase.
  • I have a public key whose fingerprint is 3131 5BAA 97C0 40C3 106D 9DC9 3B60 30A7 F97C 0240

To claim this, I am signing this object:

FE = Frontend
BE = Backend
"Called" means a function was invoked
"Response from" means the response from the function invocation
Logs in a timeline fashion
FE - Created the iframe to host the PSD2 challenge