Skip to content

Instantly share code, notes, and snippets.

View Raymundo1's full-sized avatar
🏠
Working from home

Ray Raymundo1

🏠
Working from home
View GitHub Profile
@qoomon
qoomon / conventional_commit_messages.md
Last active May 7, 2024 19:27
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@jkatz
jkatz / setup.sh
Last active September 9, 2023 03:00
Install PostgreSQL 10 & pgAdmin 4 with Docker
#!/bin/bash
mkdir postgres
cd postgres
docker volume create --driver local --name=pgvolume
docker volume create --driver local --name=pga4volume
docker network create --driver bridge pgnetwork
@monkut
monkut / SpotifyCassandra-getting-started.md
Last active May 14, 2018 21:05
Using spotify cassandra docker image

https://github.com/spotify/docker-cassandra

getting and starting single-node cassandra

This describes the method to obtain and run the spotify/cassandra single-node instance on ubuntu 16.04 where docker is already installed.

  1. Obtain image
sudo docker pull spotify/cassandra
@busbey
busbey / host_offset.txt
Last active August 3, 2021 19:01
Helper for running YCSB "Core Workloads" on multiple hosts.
client-1.example.com:0
client-2.example.com:429496729
client-3.example.com:858993458
client-4.example.com:1288490187
client-5.example.com:1717986916
@mvtango
mvtango / README.md
Last active May 31, 2018 22:24
docker-influxdb-persistence-test

Influxdb doesn't recognize databases after restart. This is the test case. Yo need a working docker installation to run it.

  1. cd into the directory where you cloned this gist.

  2. run ./start-and-fill-influx.sh

  3. run ./restart-and-query-influx.sh

The data from step 2 seems not to be there.

@denji
denji / golang-tls.md
Last active April 29, 2024 03:39 — forked from spikebike/client.go
Simple Golang HTTPS/TLS Examples

Moved to git repository: https://github.com/denji/golang-tls

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
@lapastillaroja
lapastillaroja / DividerItemDecoration.java
Last active November 17, 2023 23:06 — forked from akmalxxx/DividerItemDecoration.java
DividerItemDecoration. RecyclerView.ItemDecoration simple implementation
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
@teepark
teepark / btree.py
Created September 9, 2010 22:45
a pure-python B tree and B+ tree implementation
import bisect
import itertools
import operator
class _BNode(object):
__slots__ = ["tree", "contents", "children"]
def __init__(self, tree, contents=None, children=None):
self.tree = tree