Skip to content

Instantly share code, notes, and snippets.

View david-duncan's full-sized avatar

David Duncan david-duncan

View GitHub Profile
// ==UserScript==
// @name AWS - Cloudwatch - Remove Insights Trial Banner
// @namespace https://github.com/david-duncan
// @version 0.1
// @description AWS cloudwatch has an annoying insights trial banner that pops up everytime. This removes it permanently
// @author David Duncan
// @grant none
// @match https://console.aws.amazon.com/cloudwatch/*
// @run-at document-end
// ==/UserScript==
@david-duncan
david-duncan / components.week-only.js
Last active April 19, 2017 05:30
current week only
import Ember from 'ember';
import computed from 'ember-computed';
import moment from 'moment';
export default Ember.Component.extend({
days: computed(function() {
let now = moment();
let day = now.clone().startOf('week');
let lastDay = now.clone().endOf('week');