http://bash.cyberciti.biz/domain/create-bind9-domain-zone-configuration-file/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Skip Lists: A Probabilistic Alternative to Balanced Trees */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <limits.h> | |
#define SKIPLIST_MAX_LEVEL 6 | |
typedef struct snode { | |
int key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* fifo_q: a macro-based implementation of a FIFO Queue | |
* | |
* Copyright (c) 2012 Basho Technologies, Inc. All Rights Reserved. | |
* Author: Gregory Burd <greg@basho.com> <greg@burd.me> | |
* | |
* This file is provided to you under the Apache License, | |
* Version 2.0 (the "License"); you may not use this file | |
* except in compliance with the License. You may obtain | |
* a copy of the License at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
sudo apt-get install libblocksruntime-dev | |
clang -fblocks clang-blocks.c -lBlocksRuntime -o clang-blocks | |
CAVEAT: only works with clang and BlocksRuntime | |
*/ | |
#include <stdio.h> | |
int main(void) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
docker buildx build --format docker --progress=plain --no-cache --rm --platform linux/x86_64 --load -t symas/openldap:latest . | |
mkdir /tmp/ldap | |
chmod 0777 /tmp/ldap | |
clear; sudo rm -rf /tmp/ldap/{.ldap_setup_complete,slapd.d,data}; docker run --rm -e BITNAMI_DEBUG=true --name=symas-openldap -p 1389:1389 -p 1639:1639 --volume /tmp/ldap:/bitnami/openldap --user 1001 symas/openldap:latest | |
``` | |
gburd@floki ~/w/c/o/2/debian-11 (main)> sudo rm -rf /tmp/ldap/{.ldap_setup_complete,slapd.d,data}; docker run --rm -e BITNAMI_DEBUG=true --name=symas-openldap -p 1389:1389 -p 1639:1639 --volume /tmp/ldap:/bitnami/openldap --user 1001 symas/openldap:latest | |
17:55:10.09 INFO ==> ** Starting LDAP setup ** | |
17:55:10.12 INFO ==> Validating settings in LDAP_* env vars |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* async_nif: An async thread-pool layer for Erlang's NIF API | |
* | |
* Copyright (c) 2012 Basho Technologies, Inc. All Rights Reserved. | |
* Author: Gregory Burd <greg@basho.com> <greg@burd.me> | |
* | |
* This file is provided to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This file is a direct import of code from an MIT licensed project: | |
## digma-ai/opentelemetry-instrumentation-digma | |
## | |
## https://github.com/digma-ai/opentelemetry-instrumentation-digma/blob/main/LICENSE | |
## https://raw.githubusercontent.com/digma-ai/opentelemetry-instrumentation-digma/main/src/opentelemetry/instrumentation/digma/trace_decorator.py | |
## | |
import inspect | |
import types | |
from functools import wraps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This is done once per database instance. | |
BEGIN; | |
CREATE SCHEMA partman; | |
CREATE EXTENSION pg_partman SCHEMA partman; | |
COMMIT; | |
BEGIN; | |
CREATE ROLE partman WITH LOGIN; | |
GRANT ALL ON SCHEMA partman TO partman; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### KERNEL TUNING ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(timeit). | |
-compile(export_all). | |
%% @doc Dynamically add timing to MFA. There are various types of | |
%% timing. | |
%% | |
%% all - time latency of all calls to MFA | |
%% | |
%% {sample, N, Max} - sample every N calls and stop sampling after Max | |
%% |
NewerOlder