Skip to content

Instantly share code, notes, and snippets.

@mr-deamon
mr-deamon / log2query.html
Last active October 5, 2022 13:44
postgres log to query
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<textarea id="query"></textarea>
<textarea id="details"></textarea>
@mr-deamon
mr-deamon / readme.MD
Last active January 5, 2021 09:53
SQL-Analyze

Will display percentage of query-types. If DCLs are present, it will show a warning.

Use it locally or directly from github: wget -qO- https://gist.githubusercontent.com/mr-deamon/a7aa6b3d0c965007f819d99b74644101/raw/f722d6dbac009396fd01974fa449d6ec098c10a8/sqlanalyze.py | python3 - file1.sql file2.sql

@mr-deamon
mr-deamon / Fridaybeer.md
Last active April 6, 2022 21:54
Fridaybeer for Dashing

#FridayBeer for Dashing ##Description Show your need for a friday-afternoon beer to your office-mates. ##Usage

  1. Download Gist
  2. Add Widget to your Dashboard:
<li data-row="1" data-col="1" data-sizex="8" data-sizey="6" style="z-index: 99999999">
  <div data-id="beer" data-view="Fridaybeer"></div>