Skip to content

Instantly share code, notes, and snippets.

/**
* @param model
* @return
*/
@PreAuthorize("ROLE_USER")
@RequestMapping(value = "/secure/etsy-receipts.html", method = RequestMethod.GET)
public ModelAndView handleSecureEtsyReceiptsGetRequest(ModelMap model) {
logger.debug("Called handleSecureEtsyReceiptsGetRequest");
// Get the first EtsyShop, which should be our primary shop, not supporting multiple shops RN.
package com.gordonturner.dangerdigital.service;
import com.notronix.etsy.api.EtsyAPI;
import com.notronix.etsy.api.EtsyAPIException;
import com.notronix.etsy.api.authentication.Credentials;
import com.notronix.etsy.api.authentication.EtsyScope;
import com.notronix.etsy.api.model.ShopAssociations;
import com.notronix.etsy.api.model.UserAssociations;
import com.notronix.etsy.impl.EtsyDataService;
import com.notronix.etsy.impl.model.EtsyShop;
@gordonturner
gordonturner / ListlistPanel.tsx
Last active August 6, 2023 07:25
Custom Grafana Plugin
import React, { useEffect } from 'react';
import { PanelProps } from '@grafana/data';
import { stylesFactory } from '@grafana/ui';
import { css, cx, injectGlobal } from 'emotion';
import glyphiconWoff from './fonts/glyphicons-halflings-regular.woff';
import { DEFAULT_API_URL, DEFAULT_API_KEY } from './constants';
import { ListlistData, ListlistItem, ListlistOptions } from './types';
import { DateTime } from 'luxon';
import axios, { AxiosRequestConfig } from 'axios';
@gordonturner
gordonturner / KVM OVMF.md
Last active September 21, 2016 12:30
KVM OVMF

KVM OSX Guest 10.11 (El Capitan) with Clover

  • Some notes about this approach:
    • An OSX Installer USB drive for Install OS X El Capitan is created
    • Clover is then installed on the USB drive
    • Clover Configurator is then run on the USB drive
    • The USB drive contents are copied to the VM host
    • VNC is used to connect to the guest UI
  • The qxl virtual video device is used (part of the standard kvm qemu install)