Skip to content

Instantly share code, notes, and snippets.

View djonsson's full-sized avatar

Daniel Jonsson djonsson

  • Microsoft
  • Stockholm
View GitHub Profile
@djonsson
djonsson / darcula.css
Created September 5, 2013 16:08
Darcula theme for jsonview (google chrome plugin)
body {
white-space: pre;
font-family: monospace;
background: #393939;
color: #b5c4d0;
}
.property {
}
@djonsson
djonsson / getCodeFromGithub
Created September 6, 2013 14:35
Get code from github repository
var repository = 'https://api.github.com/repos/fredr/silex-html5-boilerplate/contents/README?ref=master';
$.getJSON(repository, function(data) {
var code = data.content;
var codeArray = code.split("\n");
var output;
for (var i = 0; i < codeArray.length; i++) {
output += window.atob(codeArray[i]);
}
@djonsson
djonsson / autoCookieClicker
Created September 19, 2013 09:15
One liner that clicks to cookie on http://orteil.dashnet.org/cookieclicker/
//One-liner to autoclick in cookieClicker
setInterval(function() {$("#bigCookie").click()},1);
@djonsson
djonsson / install_elasticsearch_osx.md
Last active November 11, 2022 21:10
OS X installation instructions for Elasticsearch + Kibana + Marvel

What is this?

Following this guide will set up a local Elasticsearch with Kibana and Marvel using Homebrew and Homebrew Cask

Prerequisites

If you already have Java installed on your system, skip steps Install Cask and Install Java

If you already have Java and Homebrew installed on your system, skip steps Prerequisites, start at Install Elasticsearch and Kibana after running $ brew update

Install Homebrew

  • $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"