We install certutil and pk12util if necessary:
sudo apt install libnss3-tools
On Linux, Chromium uses the NSS Shared DB. Check if you have the ~/.pki/nssdb directory:
ls $HOME/.pki/nssdb
| --- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md | |
| --- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192 | |
| -- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB. | |
| ------------ | |
| -- Basics -- | |
| ------------ | |
| -- Get indexes of tables |
We install certutil and pk12util if necessary:
sudo apt install libnss3-tools
On Linux, Chromium uses the NSS Shared DB. Check if you have the ~/.pki/nssdb directory:
ls $HOME/.pki/nssdb
| #!/bin/bash | |
| LOGOPTS=() | |
| END_AND_BEGIN=() | |
| #argument parsing | |
| while [ -n "$1" ]; do | |
| case "$1" in | |
| "-s") | |
| shift | |
| END_AND_BEGIN+=("--after=$1") | |
| ;; |
I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.
I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real
| #!/bin/bash | |
| # Script to install FFmpeg on GNU/Linux | |
| # Website: https://www.johnvansickle.com/ffmpeg/ | |
| # Created by q3aql (q3aql@protonmail.ch) | |
| # Builds by John Van Sickle (john.vansickle@gmail.com) | |
| # Licensed by GPL v.2 | |
| # Date: 22-03-2019 | |
| # -------------------------------------- | |
| VERSION=1.2.1 |
| -- Create a group | |
| CREATE ROLE readaccess; | |
| -- Grant access to existing tables | |
| GRANT USAGE ON SCHEMA public TO readaccess; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
| -- Grant access to future tables | |
| ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
Kafka 0.11.0.0 (Confluent 3.3.0) added support to manipulate offsets for a consumer group via cli kafka-consumer-groups command.
kafka-consumer-groups --bootstrap-server <kafkahost:port> --group <group_id> --describeNote the values under "CURRENT-OFFSET" and "LOG-END-OFFSET". "CURRENT-OFFSET" is the offset where this consumer group is currently at in each of the partitions.
This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)
| package com.yalantis.util; | |
| import android.text.TextUtils; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| /** | |
| * Created by Aleksandr on 05.10.2015. | |
| */ |