Skip to content

Instantly share code, notes, and snippets.

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

Bruno Frank brunofrank

🏠
Working from home
  • Frank Labs
  • Uruaçu, GO, Brazil
View GitHub Profile
#
# Recurring Job using Delayed::Job
#
# Setup Your job the "plain-old" DJ (perform) way, include this module
# and Your handler will re-schedule itself every time it succeeds.
#
# Sample :
#
# class MyJob
# include Delayed::ScheduledJob
@brunofrank
brunofrank / gist:c1cdcb0522b8a3049df3
Last active December 27, 2018 16:34
Install ruby from source
apt-get install build-essential vim git-core curl
apt-get install bison openssl zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev autoconf libc6-dev
apt-get install libcurl4-openssl-dev libapr1-dev libaprutil1-dev libedit-dev libreadline-dev
for Ubuntu 18
apt purge libssl-dev && apt install libssl1.0-dev
@brunofrank
brunofrank / gist:2025969
Created March 13, 2012 01:12
Popup blocker detector tested on Chrome, Firefox, Safari and IE
var test = window.open(null,"","width=1,height=1");
setTimeout(function(){
if (test && test.innerHeight && test.innerHeight > 0) {
// POPUP BLOCKER DISABLED
test.close();
}
}, 10);