Skip to content

Instantly share code, notes, and snippets.

@capslocky
capslocky / Dockerfile
Created March 1, 2021 18:27
My Development Machine for Node.js
FROM ubuntu:20.04
LABEL description="My Development Machine for Node.js."
LABEL version="0.1"
LABEL maintainer="Baur Atanov"
ENV TERM=xterm-256color
USER root
WORKDIR /dockerfile_workdir
# in order to have help built-in documentation
RUN yes | unminimize
@capslocky
capslocky / couchbase-metadata-flags.md
Last active January 30, 2024 20:48
Couchbase metadata Common Flags
flags value (decimal) flags value (binary) bits #[5,6,7,8] decimal type note
16777216 00000001000000000000000000000000 0001 1 Private couchbase docs example
33554432 00000010000000000000000000000000 0010 2 JSON couchbase docs example
33554438 00000010000000000000000000000110 0010 2 JSON default from http rest api
50331648 00000011000000000000000000000000 0011 3 Raw Binary couchbase docs example
@capslocky
capslocky / dns.sh
Last active August 27, 2020 03:39
Compare answers and query time of different public DNS
#!/bin/bash
# Compare answers and query time of different public DNS
# https://gist.github.com/capslocky/486c72e1ca59a204fa55fdebf221595f/
dns_names=()
dns_ips=()
add_dns(){
dns_names+=("$1")
dns_ips+=("${2:-ip not set}")