Skip to content

Instantly share code, notes, and snippets.

View dampfklon's full-sized avatar

Dampfklon dampfklon

View GitHub Profile
@dampfklon
dampfklon / README.md
Last active January 29, 2019 13:46 — forked from leonjza/README.md
Custom socat with SSLv2 and SSLv3 support

socat with sslv2 and sslv3 support

This script downloads and builds OpenSSL v1.0.2q and socat v1.7.3.2 in /usr/local/src. Once complete, a symlink at /usr/local/bin/socat-ssl23 is created so that you can run it with socat-ssl23.

install

Tested on Kali Linux:

curl -fsSL https://git.io/vFBDA | bash
@dampfklon
dampfklon / postgresql_changes_tracking.sql
Created September 26, 2018 11:35 — forked from cristianp6/postgresql_changes_tracking.sql
Log row changes in PostgreSQL - Any advice/improvement is welcome ;-)
/**
* Creates a "logging" schema with an "history" table where are stored records in JSON format
*
* Requires PostgreSQL >= 9.3 since data is stored in JSON format
*
* Credits: http://www.cybertec.at/2013/12/tracking-changes-in-postgresql/
*/
/* Create a schema dedicated to logs */
CREATE SCHEMA logging;
@dampfklon
dampfklon / read-access.sql
Last active August 5, 2018 21:07 — forked from oinopion/read-access.sql
How to create read only user in PostgreSQL
-- Revoke default permissions
REVOKE ALL ON SCHEMA public FROM public
GRANT ALL ON SCHEMA public TO writeuser
-- 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;
@dampfklon
dampfklon / pi3_browser-only.md
Last active October 8, 2020 12:30 — forked from bheisig/pi3_browser-only.md
Run Raspberry 3 in digital signage mode with Chromium Web browser on a TV screen