Skip to content

Instantly share code, notes, and snippets.

View Kattyi's full-sized avatar

Katarína Rafčíková Kattyi

  • Bratislava, Slovakia
View GitHub Profile
sethryder / blackbox.yml
Last active April 17, 2023 06:49
monitor multiple blackbox modules with a single job
prober: http
timeout: 5s
method: GET
no_follow_redirects: false
fail_if_ssl: false
fail_if_not_ssl: true
preferred_ip_protocol: "ipv4"
the-bass / application.html.erb
Last active April 15, 2020 15:01
Using Google Analytics with Rails 5 and Turbolinks 5. This code is taken from the conversation between @preetpalS and @packagethief on
<%# Put this code snippet between the <head></head>-tags in your application layout and %>
<%# replace 'UA-XXXXXXXX-X' with your own unique Google Analytics Tracking ID %>
<%# ... %>
<%# ... %>
<% if Rails.env.production? %>
<script type="text/javascript">
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),