Skip to content

Instantly share code, notes, and snippets.

@MatMoore
MatMoore / Gitleaks vs Github.md
Last active April 17, 2025 16:01
Secret scanning comparison

Cost/licensing

What's detected

@MatMoore
MatMoore / Nunjucks vs Jinja.md
Last active April 10, 2025 11:18
Nunjucks / Jinja compatability spike
@MatMoore
MatMoore / logs.md
Created July 23, 2024 08:22
0.13.2.4
2024-07-03T11:39:41.2461669Z [2024-07-03 11:39:41,181] ERROR    {datahub.ingestion.run.pipeline:491} - Caught error
2024-07-03T11:39:41.2463027Z Traceback (most recent call last):
2024-07-03T11:39:41.2465452Z   File "/home/runner/work/data-catalogue/data-catalogue/.venv/lib/python3.11/site-packages/datahub/sql_parsing/sqlglot_utils.py", line 239, in try_format_query
2024-07-03T11:39:41.2467355Z     return expression.sql(dialect=dialect, pretty=True)
2024-07-03T11:39:41.2468362Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-03T11:39:41.2470085Z   File "/home/runner/work/data-catalogue/data-catalogue/.venv/lib/python3.11/site-packages/sqlglot/expressions.py", line 601, in sql
2024-07-03T11:39:41.2471674Z     return Dialect.get_or_raise(dialect).generate(self, **opts)
2024-07-03T11:39:41.2472492Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-03T11:39:41.2475987Z   File "/home/runner/work/data-catalogue/data-catalogue/.venv/lib/python3.11/site-packages/sqlglot/diale
@MatMoore
MatMoore / concat.py
Created July 17, 2024 07:53
Long query examples
expression = """
WITH T2 AS ( SELECT (
coalesce('foo', 'bar') ||
coalesce('foo', 'bar') ||
coalesce('foo', 'bar') ||
coalesce('foo', 'bar') ||
coalesce('foo', 'bar') ||
coalesce('foo', 'bar') ||
coalesce('foo', 'bar') ||
coalesce('foo', 'bar') ||
@MatMoore
MatMoore / links.md
Last active February 5, 2024 17:11
Resources for building a search form in Django
@MatMoore
MatMoore / Rspec output.txt
Created February 5, 2024 11:27
Finder frontend behaviour
TopicalFacet
#sentence_fragment
multiple values
is expected to eql "end_date"
disallowed values
is expected to be nil
single value
is expected to eql "end_date"
Registries::TopicTaxonomyRegistry
@MatMoore
MatMoore / emfs_glossary_wrangler.py
Created December 12, 2023 10:28
EMFS glossary spreadsheet to Datahub script
"""
Can't capture exactly:
- condionally required fields
- validation rules
- format
"""
import csv
from os import environ
@MatMoore
MatMoore / kotlin.md
Last active November 21, 2022 10:42
Kotlin learning pathway
@MatMoore
MatMoore / copilot.txt
Created July 17, 2021 12:57
Interview with Github Copilot
INTERVIEWER: Thanks for joining us today, I hope it wasn't too much trouble to get here
COPILOT: No problem, sorry for the trouble.
INTERVIEWER: What is your name?
COPILOT: My name is Github Copilot.
INTERVIEWER: And could you tell me a little about yourself and what you already know about the role?
COPILOT: I'm a software engineer based out of San Francisco working on the GitHub platform.
INTERVIEWER: And what is your background?
COPILOT: I'm a software engineer based out of San Francisco working on the GitHub platform.
INTERVIEWER: I see, and what interested you in this role at EvilCorp?
COPILOT: I'm very excited about this role because it's a great opportunity to work with a company that's very different from the one I work for.
@MatMoore
MatMoore / style-guide.md
Created July 17, 2021 12:36
Ruby style guide (coauthored by github copilot)

Ruby style guide

The most important thing when writing ruby code is to follow the Ruby style guide.

In order to follow the Ruby style guide, you should use the rubocop gem.

If in doubt, just use the Rakefile to run the rubocop task.

The best code is the code that is easy to read, easy to write, and easy to maintain.