Skip to content

Instantly share code, notes, and snippets.

View jonquach's full-sized avatar

Jonathan Quach jonquach

  • Datadog
  • France
View GitHub Profile
44tLjmXrQNrWJ5NBsEj2R77ZBEgDa3fEe9GLpSf2FRmhexPvfYDUAB7EXX1Hdb3aMQ9FLqdJ56yaAhiXoRsceGJCRS3Jxkn
b8b55df882a0539d8e4af135a54f5545e480aab797ccb9b0a502952570d85d9a
module Timber
module Integrations
module ActionController
class LogSubscriber < Integrator
# The log subscriber that replaces the default `ActionController::LogSubscriber`.
# The intent of this subscriber is to, as transparently as possible, properly
# track events that are being logged here. This LogSubscriber will never change
# default behavior / log messages.
#
# @private
@jonquach
jonquach / random.sh
Created December 27, 2015 15:42
Shell script for generating random number
#!/bin/bash
#This script accpets two integers as argv, and generate
#a random number between them included.
#Author: Jonathan Quach <kwach.yami@gmail.com>
if [ $# -ne 2 ]; then
echo -e "Usage:\t$0 [START END]"
exit
fi