Skip to content

Instantly share code, notes, and snippets.

<html>
<body>
<div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="300" width="500">
<line x1="0" y1="95" x2="0" y2="105" stroke-width="1" stroke="gray">
<title>(seg 0)</title>
</line>
<line x1="0" y1="100" x2="306.32813" y2="100" stroke-width="6" stroke="black">
<title>156840 bytes of WAL (seg 1)</title>
</line>
@hlinnaka
hlinnaka / noarch.patch
Created April 30, 2021 16:01
No Arc needed
diff --git a/pageserver/src/restore_local_repo.rs b/pageserver/src/restore_local_repo.rs
index 24356ee1..949f334e 100644
--- a/pageserver/src/restore_local_repo.rs
+++ b/pageserver/src/restore_local_repo.rs
@@ -26,7 +26,6 @@ use std::path::{Path, PathBuf};
use anyhow::Result;
use bytes::Bytes;
-use crate::page_cache;
use crate::page_cache::BufferTag;
diff --git a/pageserver/src/restore_local_repo.rs b/pageserver/src/restore_local_repo.rs
index 24356ee1..949f334e 100644
--- a/pageserver/src/restore_local_repo.rs
+++ b/pageserver/src/restore_local_repo.rs
@@ -26,7 +26,6 @@ use std::path::{Path, PathBuf};
use anyhow::Result;
use bytes::Bytes;
-use crate::page_cache;
use crate::page_cache::BufferTag;
@hlinnaka
hlinnaka / gist:fcb5de3c201ddf4f46bc22f04bf81fed
Last active December 19, 2019 19:38
Diff between GPDB master, and the corresponding upstream version.
$ git diff --stat pgsql/REL9_6_STABLE...origin/master -- . ':!*/.gitignore' ':!src/test' ':!doc' ':!gpdb-doc' ':!concourse' ':!*/*.po' ':!configure' ':!gpAux' ':!gpMgmt' ':!src/test/regress'
.editorconfig | 18 +
.github/CODE_OF_CONDUCT.md | 50 +
.github/CONTRIBUTING.md | 72 +
.github/issue_template.md | 14 +
.gitignore | 29 +
.gitmodules | 11 +
.mailmap | 85 +
.travis.yml | 183 +
COPYRI
@hlinnaka
hlinnaka / ssltest.py
Last active August 29, 2015 13:59 — forked from sh1n0b1/ssltest.py
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
#
# Modified by Heikki Linnakangas / VMWare to test PostgreSQL SSL handshake
# protocol. This version only works against a PostgreSQL server.
import sys
import struct