These instructions allow you to intall psql, pg_dump & pg_restore without a full installation of postgresql.
First, install libpq via homebrew
brew doctor
brew update
brew install libpq
These instructions allow you to intall psql, pg_dump & pg_restore without a full installation of postgresql.
First, install libpq via homebrew
brew doctor
brew update
brew install libpq
#!/bin/bash | |
DIR=$1 | |
if [[ ! -d $DIR ]];then | |
echo "${DIR} does not exist." | |
exit 1 | |
fi | |
BASENAME=$(basename $DIR) | |
UPDIR=$(cd $DIR/.. && pwd) |
#!/usr/bin/python3 | |
# | |
# run it: | |
# STIBKEY=<apikey> ./stib.py | |
import os | |
import requests | |
import json | |
import datetime | |
from datetime import timedelta |
$ sudo dnf install java-latest-openjdk
$ sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
$ cat <<EOF | sudo tee /etc/yum.repos.d/elasticsearch.repo
[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
flowchart LR | |
W((World)) --- TR | |
TR --- KC(Keycloak) | |
BB --- KC | |
subgraph Nomad | |
TR(Traefik proxy) --- BB | |
BB(Biblio backend) --- NATS{NATS} | |
NATS --- JB{JMS bridge} | |
JB --- F(Fedora repository) | |
NATS --- IDX(Indexer service) |
pihole comes with it's own lightweight DNS server called FTL. It's geared towards easy of use. Even so, setting up this feature can be hard. Here are some lessons I've learned.
In this example:
Warning! One liners such as these are basically hacks. Please look into the comm
program which is part of GNU Coreutils. It basically does all of this without any of the complexity below. See: https://www.gnu.org/software/coreutils/manual/html_node/comm-invocation.html
You have 2 text files, each containing rows of data each having 1 column (e.g. e-mail address, uuids, names, md5 hashes,...). You want to very quickly compare those, spending the least amount of time and energy, looking for ...
# assuming catmandu.yml in the same folder as this script | |
# Change bag("document") to the relevant bag name / document type in ES | |
# ensure camtandu.yml exists! | |
use Catmandu::Sane; | |
use Config::Onion; | |
use Catmandu; | |
use Path::Tiny; | |
use Data::Dumper; |
// Easily compile plain SCSS or SASS if you want to use Webpack | |
// but you're not working on a JS project (React, Typescript, whathaveyou) | |
// | |
// Why? Webpack does what Grunt/Gulp does with half the configuration. | |
// See: https://alligator.io/tooling/webpack-gulp-grunt-browserify/ | |
// | |
// You will need: | |
// npm install --save-dev autoprefixer | |
// npm install --save-dev css-loader | |
// npm install --save-dev file-loader |