Create a group for a system user (daemnos and program users like www-data, mysql...)
# addgroup --system jboss
Create a user (system user, without home -> See below the command, to the jboss group and no login shell)
vnxs:~ Vinnix$ dig www.facebook.com | |
; <<>> DiG 9.4.3-P3 <<>> www.facebook.com | |
;; global options: printcmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19911 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;www.facebook.com. IN A |
vinicius.schmidt@dls110:~$ export PGSERVICE=a4c_dump_test | |
vinicius.schmidt@dls110:~$ psql9 | |
psql9 (9.2.1, server 9.1.5) | |
WARNING: psql9 version 9.2, server version 9.1. | |
Some psql features might not work. | |
Type "help" for help. | |
a4c_dump_test=> \d | |
No relations found. | |
a4c_dump_test=> \l |
#include "postgres.h" | |
#include <sys/file.h> | |
#include <sys/stat.h> | |
#include <unistd.h> | |
#include "catalog/pg_type.h" | |
#include "funcapi.h" | |
#include "miscadmin.h" | |
#include "postmaster/syslogger.h" |
$ python get_logs.py rds-db-instance-name rds.log aws-access-key aws-secret-key
$ ./pgbadger -p '%t:%r:%u@%d:[%p]:' ./rds.log
$ open out.html
CREATE OR REPLACE FUNCTION public.json_append(data json, insert_data json) | |
RETURNS json | |
IMMUTABLE | |
LANGUAGE sql | |
AS $$ | |
SELECT ('{'||string_agg(to_json(key)||':'||value, ',')||'}')::json | |
FROM ( | |
SELECT * FROM json_each(data) | |
UNION ALL | |
SELECT * FROM json_each(insert_data) |
CREATE OR REPLACE FUNCTION public.json_append(data json, insert_data json) | |
RETURNS json | |
IMMUTABLE | |
LANGUAGE sql | |
AS $$ | |
SELECT ('{'||string_agg(to_json(key)||':'||value, ',')||'}')::json | |
FROM ( | |
SELECT * FROM json_each(data) | |
UNION ALL | |
SELECT * FROM json_each(insert_data) |
$ ./bitcoin-qt --version | |
Bitcoin Core version v0.15.99.0-5180a86 (64-bit) | |
Copyright (C) 2009-2017 The Bitcoin Core developers | |
[vinnix@vnxsam bin]$ valgrind --leak-check=full --show-leak-kinds=all --leak-check=yes ./bitcoind | |
==2817== Memcheck, a memory error detector | |
==2817== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. | |
==2817== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info | |
==2817== Command: ./bitcoind | |
==2817== |
## | |
## Trying to learn something from here: | |
## http://profmarcello.blogspot.com/search/label/PostGIS%20Raster | |
## | |
## Bottom (past) -> Top(now) worklog chronology | |
-- Using 2nd patch! |