Skip to content

Instantly share code, notes, and snippets.

View ream88's full-sized avatar

Mario Uher ream88

View GitHub Profile
@ream88
ream88 / simplify_tracker_blocking.js
Created March 4, 2021 16:34
List of email spy pixels blocked by Simplify Gmail as of Feb 28, 2021
const trackers = {
"365offers.trade": "trk.365offers.trade",
"Absolutesoftware-email.com": "click.absolutesoftware-email.com\\/open.aspx",
"ActiveCampaign.com": "lt.php(.*)\\?l=open",
"ActionKit.com": "track.sp.actionkit.com\\/q\\/",
"Acoustic.com": "mkt\\d{4,5}.com/open",
"Adobe.com": [
"demdex.net",
"t.info.adobesystems.com",
"toutapp.com",
@ream88
ream88 / tracker_blocking.rb
Created March 4, 2021 16:34 — forked from dhh/tracker_blocking.rb
Current list of spy pixels named'n'shamed in HEY, as of April 23, 2020
module Entry::TrackerBlocking
extend ActiveSupport::Concern
included do
has_many :blocked_trackers
end
email_service_blockers = {
"ActiveCampaign" => /lt\.php(.*)?l\=open/,
"AWeber" => "openrate.aweber.com",
@ream88
ream88 / ssl_puma.sh
Created October 10, 2016 13:59 — forked from tadast/ssl_puma.sh
localhost SSL with puma
# 1) Create your private key (any password will do, we remove it below)
$ cd ~/.ssh
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
require "mechanize"
agent = Mechanize.new
agent.user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) " + \
"AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5" + \
" Safari/536.30.1"
page = agent.get "https://rubytapas.dpdcart.com/subscriber/content"
login_form = page.form_with id:"login-form"
login_form.field_with(id:"username").value = tapas_username
login_form.field_with(id:"password").value = tapas_password
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>
TODO: unresolved issues
text:
"p &lt;&lt; end
@ream88
ream88 / git_fix.rb
Last active December 13, 2015 23:59 — forked from Deradon/git_fix.rb
#!/usr/bin/env ruby
# Author: Patrick Helm (deradon87@gmail.com), 2013
#
#
# Simple git-snippet to commit a small fix with auto-generated commit-message.
#
# ## Description
#
# I noticed, we developers often needs to fix a small typo or do something
// Inside my base include file which includes Compass.
%bs-border-box { @include box-sizing(border-box); }
// Inside my application Sass file.
@each $el in elements-of-type('block') { #{$el} { @extend %bs-border-box; } }
@ream88
ream88 / collegia-webfont.eot
Created February 9, 2012 15:20 — forked from tpryan/ribbon.html
Github Ribbon in CSS.
@ream88
ream88 / dabblet.css
Created January 31, 2012 18:50 — forked from chriscoyier/dabblet.css
Click open/close Dropdown in pure CSS
/* Click open/close Dropdown in pure CSS */
/* Disclaimer: Not the most semantic
thing in the universe. */
/* Forked from original idea
http://jsfiddle.net/paullferguson/Sv54G/3/ */
.tabs {
position: relative;
@ream88
ream88 / excel_template_handler.rb
Created January 24, 2012 15:30 — forked from stephencelis/redcarpet.rb
Markdown, Excel template handler for Rails 3.2.
class ActionView::Template
module Handlers
class Excel
def call(template)
%{
Tempfile.open('writeexcel').tap do |tmp|
WriteExcel.new(tmp.path).tap do |workbook|
#{template.source}
end.close
end.tap(&:rewind).read