Skip to content

Instantly share code, notes, and snippets.

We can't make this file beautiful and searchable because it's too large.
product_id,crawl_timestamp,product_url,product_name,description,list_price,sale_price,brand,item_number,gtin,package_size,category,postal_code,available
@saketj
saketj / pgbouncer.diff
Last active April 29, 2022 02:52
Running pgbouncer with envoyproxy in docker containers
From dcad45a2ddf7b167b0c251002bdada58a62b2e56 Mon Sep 17 00:00:00 2001
From: Saket Saurabh <ssaurabh.wisc@gmail.com>
Date: Sun, 24 Apr 2022 08:18:58 +0000
Subject: [PATCH] Add pgbouncer example
---
examples/pgbouncer/Dockerfile-proxy | 5 +
examples/pgbouncer/README.md | 16 ++
examples/pgbouncer/docker-compose.yaml | 37 +++++
examples/pgbouncer/envoy.yaml | 37 +++++
@saketj
saketj / Q1Strings.java
Created September 7, 2019 23:22
Q1 Strings: Remove exactly one character to make strings equal
import java.io.*;
import java.lang.*;
import java.util.*;
public class Q1Strings {
public static boolean equalsWhenOneCharRemoved(String x, String y) {
// Time complexity: O(N)
// Space complexity: O(1)
int diff = 0;
@saketj
saketj / settings.json
Created April 24, 2019 00:03
Useful Visual Studio Code Editor Settings
{
"editor.minimap.enabled": false,
"window.zoomLevel": 0,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"terminal.integrated.fontFamily": "Source Code Pro for Powerline",
"terminal.integrated.fontSize": 14,
"editor.rulers": [
80
@saketj
saketj / kerberos_setup.md
Last active July 6, 2024 00:43 — forked from ashrithr/kerberos_setup.md
Set up kerberos on Redhat/CentOS 7

Installing Kerberos on Redhat 7

This installation is going to require 2 servers one acts as kerberos KDC server and the other machine is going to be client. Lets assume the FQDN's are (here cw.com is the domain name, make a note of the domain name here):

  • Kerberos KDC Server: kdc.cw.com
  • Kerberos Client: kclient.cw.com

Important: Make sure that both systems have their hostnames properly set and both systems have the hostnames and IP addresses of both systems in