Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name EA Website testing
// @homepage https://gist.github.com/justinkelly/fa696fe79d31b6c3a04554e2221d5ad4
// @version 0.1.4
// @description EA testing
// @author Justin Kelly
// @include https://latte.nonprod.digital*
// @include https://mocha.nonprod.digital*
// @include https://preprod.nonprod.digital*
// @include https://www.energyaustralia.com.au*
@justinkelly
justinkelly / Synology_Notes_UI.user.js
Last active November 14, 2023 23:27
Synology Notes UI update using TamperMonkey, install Tampermonkely extension in your browser, then click the Raw button on this page to install the script
// ==UserScript==
// @name Synology Notes UI
// @homepage https://github.com/justinkelly/Synology-Notes-UI-update-tampermonkey
// @version 0.2.8
// @description Make Synology Notes UI look similar to Notion
// @author Justin Kelly
// @include https://*/?launchApp=SYNO.SDS.NoteStation.Application*
// @icon https://global.download.synology.com/download/Package/img/NoteStation/2.6.1-2450/thumb_256.png
// @namespace https://github.com/justinkelly/Synology-Notes-UI-update-tampermonkey
// @supportURL https://github.com/justinkelly/Synology-Notes-UI-update-tampermonkey
@justinkelly
justinkelly / cataloguesearches2016-2017slq.csv
Created April 5, 2019 04:20
VALA TechCamp 2019 - Justin Kelly
We can't make this file beautiful and searchable because it's too large.
string,instances
(ebookebl) OR (ebookpac) OR (ebookht) OR (ebookqm) OR (ebookqmp) OR (ebooks or ebooktb),21498
10,19522
business intelligence blog,19269
business studio,19110
Cairns,11719
slq indigenous languages project,11115
timber buildings,9773
public places,8532
a:1:{i:0;b:0;s:23:"onepress_hcl1_largetext";s:91:"I love <span class='js-rotating'>brush lettering | hand lettering | drinking coffee!</span>";s:23:"onepress_hcl1_smalltext";s:156:"Enjoy learning Brush Lettering at one of my Brisbane Workshops. Practice letter forms &amp; different hand styles at one of my bi-monthly self-led meet-ups.";s:22:"onepress_primary_color";s:6:"1aa3af";s:23:"onepress_hcl1_btn1_text";s:5:"About";s:23:"onepress_hcl1_btn2_text";s:33:"Brush Lettering Workshop Bookings";s:24:"onepress_hcl1_btn1_style";s:21:"btn-secondary-outline";s:24:"onepress_hcl1_btn2_style";s:17:"btn-theme-primary";s:30:"onepress_section_order_styling";a:15:{i:0;a:19:{s:6:"add_by";s:0:"";s:5:"title";s:14:"Call to Action";s:10:"section_id";s:3:"cta";s:12:"show_section";i:1;s:15:"section_inverse";i:1;s:8:"subtitle";s:0:"";s:7:"bg_type";s:5:"color";s:8:"bg_color";s:13:"rgba(0,0,0,1)";s:8:"bg_image";a:2:{s:3:"url";s:0:"";s:2:"id";s:0:"";}s:8:"bg_video";a:2:{s:3:"url";s:0:"";s:2:"id";s:0:"";}s:13:"bg_video_webm";a:2:{s:3:
@justinkelly
justinkelly / json_extract_c.sql
Last active February 4, 2018 12:27
json_extract_c for mysql 5.5
DELIMITER $$
DROP FUNCTION IF EXISTS `json_extract_c`$$
CREATE FUNCTION `json_extract_c`(
details TEXT,
required_field VARCHAR (255)
) RETURNS TEXT CHARSET latin1
READS SQL DATA
@justinkelly
justinkelly / .tmux.conf
Last active July 30, 2017 05:17
Tmux Conf
# Set prefix key to Ctrl-a
unbind-key C-b
set-option -g prefix C-a
# Highlight active window
set-window-option -g window-status-current-bg red
set -g default-terminal "screen-256color"
@justinkelly
justinkelly / markdown-editor.html.erb
Last active March 14, 2017 23:49
Markdown editor for StandardNotes
<!DOCTYPE html>
<html>
<head>
<%= stylesheet_link_tag 'codemirror' %>
<%= javascript_include_tag 'codemirror' %>
<%= javascript_include_tag 'loadmode' %>
<%= javascript_include_tag 'cm-meta' %>
<style>
body, html {
@justinkelly
justinkelly / equella.sql
Created March 10, 2017 01:54
Equella date format log
select extract( day from diff ) days,
extract( hour from diff ) hours,
extract( minute from diff ) minutes,
extract( second from diff ) seconds,
(select Max("timestamp") - Min("timestamp")) diff
from equella.audit_log_entry;
@justinkelly
justinkelly / equella.sql
Created March 10, 2017 01:54
Equella date format log
select extract( day from diff ) days,
extract( hour from diff ) hours,
extract( minute from diff ) minutes,
extract( second from diff ) seconds,
(select Max("timestamp") - Min("timestamp")) diff
from equella.audit_log_entry;
@justinkelly
justinkelly / custom.js
Last active March 12, 2017 04:59
Primo - New UI - responsive logo
(function () {
"use strict";
'use strict';
var app = angular.module('viewCustom', ['angularLoad']);
/****************************************************************************************************/
/*In case of CENTRAL_PACKAGE - comment out the below line to replace the other module definition*/
/*var app = angular.module('centralCustom', ['angularLoad']);*/
/****************************************************************************************************/