I hereby claim:
- I am cornerot on github.
- I am rrom (https://keybase.io/rrom) on keybase.
- I have a public key ASBP9mQTrZoQweS7fbDmO2h7u9SsJ_ehHiOcFOh0TA9ffgo
To claim this, I am signing this object:
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
nix = { | |
package = pkgs.nixUnstable; | |
extraOptions = '' |
<?xml version="1.0" encoding="UTF-8"?> | |
<tag-mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" default-zoom-appear="16" | |
profile-name="default-profile" xmlns="http://mapsforge.org/tag-mapping" | |
xsi:schemaLocation="http://mapsforge.org/tag-mapping https://raw.githubusercontent.com/mapsforge/mapsforge/master/resources/tag-mapping.xsd"> | |
<!-- ************* POIS *************** --> | |
<!-- HIGHWAY TAGS --> | |
<pois> | |
<osm-tag key="highway" value="mini_roundabout" zoom-appear="17" /> |
nadeem@myznc:~/go/src$ ls -al dummy | |
total 12 | |
drwxrwxr-x 2 nadeem nadeem 4096 Jul 20 18:46 . | |
drwxrwxr-x 6 nadeem nadeem 4096 Jul 20 18:45 .. | |
-rw-rw-r-- 1 nadeem nadeem 129 Jul 20 18:46 hello.go | |
nadeem@myznc:~/go/src/dummy$ cat hello.go | |
// Package dummy contains hello world library. | |
package dummy |
# Set pid of nginx master process here | |
pid=8192 | |
# generate gdb commands from the process's memory mappings using awk | |
cat /proc/$pid/maps | awk '$6 !~ "^/" {split ($1,addrs,"-"); print "dump memory mem_" addrs[1] " 0x" addrs[1] " 0x" addrs[2] ;}END{print "quit"}' > gdb-commands | |
# use gdb with the -x option to dump these memory regions to mem_* files | |
gdb -p $pid -x gdb-commands | |
# look for some (any) nginx.conf text |
#!/bin/bash | |
# save this file as tailc then | |
# run as: $ tailc logs/supplier-matching-worker.log Words_to_highlight | |
file=$1 | |
if [[ -n "$2" ]]; then | |
color=' | |
// {print "\033[37m" $0 "\033[39m"} | |
/(WARN|WARNING)/ {print "\033[1;33m" $0 "\033[0m"} | |
/(ERROR|CRIT)/ {print "\033[1;31m" $0 "\033[0m"} |
I hereby claim:
To claim this, I am signing this object:
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
ctrl+shift+i
in firefox)livestreamer "hls://URL_FROM_STEP_5" best -o video1080p.ts
Since many deployments may start out with 3 nodes and so little is known about how to grow a cluster from 3 memebrs to 5 members without losing the existing Quorum, here is an example of how this might be achieved.
In this example, all 5 nodes will be running on the same Vagrant host for the purpose of illustration, running on distinct configurations (ports and data directories) without the actual load of clients.
YMMV. Caveat usufructuarius.
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |