Skip to content

Instantly share code, notes, and snippets.

@dfparker2002
dfparker2002 / console-2.html
Created September 4, 2021 07:17 — forked from prof3ssorSt3v3/console-2.html
Demo on how to use the monitorEvents feature in Chrome Dev Tools
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Console - Monitor Events</title>
</head>
<body>
<header>
<h1>Using the Console to Monitor Events</h1>
@dfparker2002
dfparker2002 / jq-cheetsheet.md
Created August 17, 2021 21:19 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@dfparker2002
dfparker2002 / 2019-https-localhost.md
Created August 2, 2021 07:33 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@dfparker2002
dfparker2002 / JcrQueryLibrary.md
Created November 5, 2020 21:29 — forked from neozilon/JcrQueryLibrary.md
Some useful JCR queries (XPATH, SQL2) for AEM/CQ development.

SQL2

All nodes with a specific name

SELECT * FROM [nt:unstructured] AS node
WHERE ISDESCENDANTNODE(node, "/search/in/path")
AND NAME() = "nodeName"

All pages below content path

@dfparker2002
dfparker2002 / .nifi on docker with flow persistance part1.md
Created January 18, 2020 08:27 — forked from mannharleen/.nifi on docker with flow persistance part1.md
current status: not using docker-compose. need to run nifi, registry and jupyter notebook under once container

sOME sETUP:

ubuntu@ip-10-201-97-84:~/nifi-persisted/nouser$ ls
getnifi.sh  nifi-1.8.0  nifi-1.8.0-bin.zip  nifi-toolkit-1.8.0  nifi-toolkit-1.8.0-bin.zip  scripts

ubuntu@ip-10-201-97-84:~/nifi-persisted/nouser$ ls scripts/
common.sh  start.sh           toolkit.sh                          update_login_providers.sh
secure.sh  update_cluster_state_management.sh

ubuntu@ip-10-201-97-84:~/nifi-persisted/nouser$ cat getnifi.sh
@dfparker2002
dfparker2002 / README.md
Created January 18, 2020 08:24 — forked from pawndev/README.md
Apache Nifi docker-compose local test

docker compose nifi

To launch this project, simply use the docker-compose cli

docker-compose up

Wait a couple of seconds, then execute the next command :

@dfparker2002
dfparker2002 / bitnami-bitnami.conf
Created January 18, 2020 08:17 — forked from davll/bitnami-bitnami.conf
Rails Web Server Config
# Default Virtual Host configuration.
<IfVersion < 2.3 >
NameVirtualHost *:443
</IfVersion>
# Default SSL Virtual Host configuration.
<IfModule !ssl_module>
LoadModule ssl_module modules/mod_ssl.so
@dfparker2002
dfparker2002 / jquery-es6-example.md
Created November 20, 2019 10:00 — forked from mgol/jquery-es6-example.md
jQuery ES6 modules example usage

jQuery source is now authored using ES6 modules. It's possible to use them directly in the browser without any build process.

To test it locally, first clone the jQuery repository:

git clone git@github.com:jquery/jquery.git

Then, write the following index.html file:

@dfparker2002
dfparker2002 / microservices.md
Created November 15, 2019 06:00 — forked from remibantos/microservices.md
Microservices - Cheat sheet

Microservices - Cheat sheet

Based on Microservices presentation by Martin Fowler recorded at GOTO Berlin 2014.

Common caracteristics

  1. Components (= independently upgradable, replaçable) communicating through services (instead of libs for monoliths)
  2. Organized around business capabilities
  3. Smart endpoints and dumb pipes. Routing logic is managed by end-points
  4. Decentralized data management. Each Microservice manages its own data
@dfparker2002
dfparker2002 / neo4j_cypher_cheatsheet.md
Created July 13, 2019 01:45 — forked from DaniSancas/neo4j_cypher_cheatsheet.md
Neo4j's Cypher queries cheatsheet

Neo4j Tutorial

Fundamentals

Store any kind of data using the following graph concepts:

  • Node: Graph data records
  • Relationship: Connect nodes (has direction and a type)
  • Property: Stores data in key-value pair in nodes and relationships
  • Label: Groups nodes and relationships (optional)