Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am emilhdiaz on github.
  • I am emilhdiaz (https://keybase.io/emilhdiaz) on keybase.
  • I have a public key ASB8aTU-XoZbRKK7jUJZ87diM3x_QK_guQmRCg0zWgXzyQo

To claim this, I am signing this object:

@emilhdiaz
emilhdiaz / new-ready.js
Created November 29, 2016 18:22
Document Ready Detection with Cloudflare Rocket Launcher
$.ready = function(callback, context) {
var boundCallback = callback.bind(window, context);
var oldOnReadyStateChange = document.onreadystatechange;
// if document already ready to go, invoke callback immediately
if (document.readyState != 'loading') {
boundCallback();
return;
}
<!doctype html>
<html>
<head>
<title>Chicory</title>
@emilhdiaz
emilhdiaz / ubuntu_agent_installation_ouput
Created October 4, 2013 17:55
Output from Ubuntu agent installation
* Installing APT package sources for Datadog
[sudo] password for emil:
Sorry, try again.
[sudo] password for emil:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.9AGz3vZD7H --trustdb-name /etc/apt//trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 C7A7DA52
gpg: requesting key C7A7DA52 from hkp server keyserver.ubuntu.com
gpg: key C7A7DA52: public key "Datadog Packages <package@datadoghq.com>" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1