Skip to content

Instantly share code, notes, and snippets.

View mehmetaydogduu's full-sized avatar
🏍️
Tech goes infinite speed

Mehmet Aydogdu mehmetaydogduu

🏍️
Tech goes infinite speed
View GitHub Profile
@cihad
cihad / Aciklama
Last active May 9, 2020 19:17
Rails, Turbolinks, Google Tag Manager, Google Analytics
Google Tag Manager sayfanizda:
1. Sol menuden Tetikleyiciler'e tikla
a. Yeni'ye tikla
1) Acilan sayfanin ustunde tetikleyici adi: Adsız Tetikleyiciyi turbolinksPageView olarak degistirdim.
2) Tetikleyici Yapılandırması'na tikla
a) Tetikleyici türü seçin: ---->Ozel etkinlik<------ (*)
b) Etkinlik adi: turbolinks:load (*)
c) Baska bir seye dokunmadan Kaydet diyelim.
2. Etiketlere tiklayalim. (*)
@mzaidannas
mzaidannas / Simple Docker Setup with Rails+Nginx+Redis+Postgres.md
Last active December 22, 2024 15:47
Simple Docker Setup with Rails+Nginx+Redis+Postgres.md

Typical rails setup with docker+puma+nginx+postgres

Zaid Annas

Devsinc inc. 30/08/2018

Overview

@jferris
jferris / configmap.yaml
Last active October 28, 2024 01:42
Rails Kubernetes Manifests
apiVersion: v1
kind: ConfigMap
metadata:
name: example
namespace: default
data:
APPLICATION_HOST: example.com
LANG: en_US.UTF-8
PIDFILE: /tmp/server.pid
PORT: "3000"
@2called-chaos
2called-chaos / xray_rails.js
Last active December 23, 2024 11:42
xray-rails (crude edition) / screenshot below
// Note: make sure your editor in step 2 is non-blocking (i.e. not "subl -w")
//
// 1. Enable in your config/environment/development.rb
// config.action_view.annotate_rendered_view_with_filenames = true
//
// 2. Add this to your routes.rb
// post "__xray/open", to: ->(env) {
// editor = ENV["GEM_EDITOR"] || ENV["VISUAL"] || ENV["EDITOR"] || "/usr/local/bin/subl"
// params = JSON.parse(Rack::Request.new(env).body.read)
// path = Rails.root.join(params["path"].to_s)