Skip to content

Instantly share code, notes, and snippets.

import dotenv from 'dotenv';
// Load environment variables
dotenv.config();
const {
SOURCE_APP_SEARCH_URL,
SOURCE_APP_SEARCH_API_KEY,
DEST_APP_SEARCH_URL,
DEST_APP_SEARCH_API_KEY,
@dylankelly
dylankelly / openforms.css
Last active November 9, 2021 22:43
Openforms CSS
:root {
--ripple-primary: red;
--ripple-secondary: green;
}
@font-face {
font-family: "VIC-Regular";
src: url("https://raw.githubusercontent.com/dpc-sdp/ripple/master/packages/components/Atoms/Global/assets/fonts/VIC-Regular.woff?raw=true") format('woff2'),
url("https://raw.githubusercontent.com/dpc-sdp/ripple/master/packages/components/Atoms/Global/assets/fonts/VIC-Regular.woff?raw=true") format('woff');
}
@dylankelly
dylankelly / launch.json
Created October 26, 2021 21:43
VS Code Nuxt debug config
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach to Nuxt",
"port": 9229
},
{
@dylankelly
dylankelly / install programs
Last active October 26, 2021 10:01
SDP Software
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew tap homebrew/bundle
brew tap homebrew/core
brew doctor
curl https://gist.githubusercontent.com/dylankelly/ba5c3ee319820c566dd034f30d922c50/raw/2bd046e27eec836e06f515e1f8fef3fe73cd74b3/Brewfile -o Brewfile
brew bundle
@dylankelly
dylankelly / install programs
Created October 26, 2021 09:23
Install SDP software
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap Homebrew/bundle
curl https://gist.githubusercontent.com/dylankelly/e933b0ec0cb15db3c4f5a1e8a92e2d9c/raw/98c5984e9585d2da1c7ff24c454dc5df94020bea/Brewfile -o Brewfile
brew bundle
# specify a directory to install
cask_args appdir: '/Applications'
# install packages
tap "homebrew/cask"
tap "github/gh"
tap "amazeeio/lagoon-cli"
tap "romkatv/powerlevel10k"
# Essential SDP tools
@dylankelly
dylankelly / Brewfile
Created October 26, 2021 09:10
SDP FE Developer tools
# specify a directory to install
cask_args appdir: '/Applications'
# install packages
tap 'caskroom/homebrew-cask' || true
tap "amazeeio/lagoon-cli"
tap "github/gh"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
@dylankelly
dylankelly / brewfile
Created October 26, 2021 08:46
SDP FE developer software
# specify a directory to install
cask_args appdir: '/Applications'
# install packages
tap 'caskroom/homebrew-cask' || true
tap amazeeio/lagoon-cli
brew 'git'
brew 'git-flow'
brew 'node'
@dylankelly
dylankelly / curl
Created December 7, 2016 03:45
curl
curl 'https://rto-dev-001.staging.truss.io/x.ashx/enrolment_application/16121' -X PUT -H 'Origin: http://localhost:3001' -H 'Accept-Encoding: gzip, deflate, sdch, br' -H 'Accept-Language: en-GB,en-US;q=0.8,en;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36' -H 'Content-Type: text/plain;charset=UTF-8' -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://localhost:3001/?cricos_nationality=%3F+object%3Anull+%3F&cricos_visanumber=1234&cricos_passport_country=%3F+object%3Anull+%3F&cricos_passport_number=1234&cricos_overseas_address1=1233&cricos_overseas_address2=123&cricos_overseas_town=123&cricos_overseas_state=123&cricos_overseas_postcode=&cricos_overseas_country=%3F+object%3Anull+%3F&cricos_overseas_phone1=&cricos_overseas_phone2=&cricos_english_testtype=%3F+object%3Anull+%3F&cricos_english_score=&cricos_oshc_insurancecompany=&cricos_oshc_type_id=%3F+object%3Anull+%3F&cricos_oshc_dateissued=&cricos_ohsc
@dylankelly
dylankelly / grid.js
Last active November 23, 2016 04:26
grid directive
var grid = angular.module("grid", ['xeditable','angularUtils.directives.dirPagination']);
grid.directive("grid", function($http, $q, GridDataService, $filter) {
return {
restrict: "E",
templateUrl: "grid/grid.tpl.html",
transclude: true,
replace:true,
scope: {
title: "@",