Skip to content

Instantly share code, notes, and snippets.

View vulkoingim's full-sized avatar
🚀

Aleksandar vulkoingim

🚀
View GitHub Profile
@vulkoingim
vulkoingim / High_Performance_Redis.md
Created June 30, 2022 08:01 — forked from neomantra/High_Performance_Redis.md
Notes on running Redis with HPC techniques

High Performance Redis

In response to this brief blog entry, @antirez tweeted for some documentation on high-performance techniques for Redis. What I present here are general high-performance computing (HPC) techniques. The examples are oriented to Redis. but they work well for any program designed to be single- or worker-threaded and asynchronous (e.g. uses epoll).

The motivation for using these techniques is to maximize performance of our system and services. By isolating work, controlling memory, and other tuning, you can achieve significant reduction in latency and increase in throughput.

My perspective comes from the microcosm of my own bare-metal (vs VM), on-premises deployment. It might not be suitable for all scenarios, especially cloud deployments, as I have little experience with HPC there. After some discussion, maybe this can be adapted as [redis.io documentation](https://redis.io/do

@vulkoingim
vulkoingim / github-pages-custom-domain-gandi-dns-records.md
Created January 23, 2021 19:13 — forked from matt-bailey/github-pages-custom-domain-gandi-dns-records.md
How to set up DNS records on gandi.net to use a custom domain on Github Pages

How to set up DNS records on gandi.net to use a custom domain on Github Pages

You would think it would be easy to find this information, but none of the Github or Gandi documentation is clear so I have recorded the required steps here.

Create the following A records:

@ 1800 IN A 185.199.108.153
@ 1800 IN A 185.199.109.153
@ 1800 IN A 185.199.110.153
@vulkoingim
vulkoingim / normal_pull.cpp
Created May 16, 2019 17:43
C++ example of PubSub grpc pull operations
#include <iostream>
#include <memory>
#include <grpc++/grpc++.h>
#include <grpc++/client_context.h>
#include <grpc++/create_channel.h>
#include <grpc++/security/credentials.h>
#include <grpc++/support/status.h>
#include <grpc/grpc.h>
#include <grpcpp/grpcpp.h>
@vulkoingim
vulkoingim / gcp_ips.sh
Created May 24, 2018 10:11
Get GCP Public IP Ranges
#!/usr/bin/env bash
# This script lists all ip ranges currently used by
# the google cloud platform, according to ns-lookup / dig
# TXT _cloud-netblocks.googleusercontent.com
#
# https://cloud.google.com/compute/docs/faq#ipranges
errcho() {
>&2 echo "$@"
@vulkoingim
vulkoingim / main.go
Last active February 20, 2018 09:49
Naive example of GCS memory consumption when writing many small objects
package main
import (
"context"
"crypto/rand"
"log"
"os"
"time"
"cloud.google.com/go/storage"
### Keybase proof
I hereby claim:
* I am vulkoingim on github.
* I am vlk (https://keybase.io/vlk) on keybase.
* I have a public key ASBCspjHgf6Zm9bNqlTJbKQYe9bsq94pdJUOA-nArSyx6Ao
To claim this, I am signing this object: