Skip to content

Instantly share code, notes, and snippets.

View BoyCook's full-sized avatar

Craig Cook BoyCook

View GitHub Profile
#!/bin/sh
BASE_URL=http://download.oracle.com/otn-pub/java/jdk
JAVA_URL="$BASE_URL/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm"
curl -L -C - -b "oraclelicense=accept-securebackup-cookie" -O "${JAVA_URL}"
sudo yum localinstall jdk-8u131-linux-x64.rpm
[logstash-5.x]
name=Elastic repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
[kibana-5.x]
name=Kibana repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
#macro (findRoot $page)
#if ($page.parent)
#findRoot($page.parent)
#else
#set($root = $page)
#end
#end
#findRoot($page)
#set($current = $page)
@BoyCook
BoyCook / issue_link.sh
Created March 23, 2017 15:16
JIRA create issue link
@BoyCook
BoyCook / Storage.js
Created January 9, 2014 14:46
localStorage overrides to get/set item as JSON
Storage.prototype.setItem = function(key, obj) {
return this.setItem(key, JSON.stringify(obj));
};
Storage.prototype.getItem = function(key) {
return JSON.parse(this.getItem(key));
};
@BoyCook
BoyCook / flower.logo
Created November 8, 2013 09:58
Flower created with logo
@BoyCook
BoyCook / GitApp.js
Last active December 27, 2015 16:19
DevCon7 demo
function GitApp(account) {
this.account = account;
this.template = Handlebars.compile($('#repos-template').html())
this.github = 'https://api.github.com';
}
GitApp.prototype.loadRepos = function() {
var context = this;
var url = this.github + '/users/' + this.account + '/repos?per_page=100';
var callBack = function(data) {
@BoyCook
BoyCook / Makefile
Created October 4, 2013 15:59
Make tasks for Heroku
heroku-redeploy: heroku-stop heroku-push
heroku-stop:
heroku ps:stop web=1
heroku-push:
git push heroku master
heroku-open:
heroku open