Skip to content

Instantly share code, notes, and snippets.

View dschulz's full-sized avatar
💭
🧉

Diego Schulz dschulz

💭
🧉
  • Hohenau, Paraguay
View GitHub Profile
@fernandoc1
fernandoc1 / db_connector.cpp
Created November 20, 2017 17:30
PostgreSQL notification with Qt5
#include "db_connector.hpp"
#include <QSqlDriver>
DBConnector::DBConnector(QString ip, int port, QString databaseName, QString username, QString password)
: db(QSqlDatabase::addDatabase("QPSQL"))
{
this->db.setHostName(ip);
this->db.setPort(port);
this->db.setDatabaseName(databaseName);
this->db.setUserName(username);
@bouroo
bouroo / softether.sh
Last active April 14, 2023 21:12
Install softether vpn server on ubuntu 16.04+
#!/usr/local/env bash
# Register vultr.com with free credit https://www.vultr.com/?ref=9206731-8H
# Create vps
# Tested on Ubuntu 18.04, Debian 10.0
# How to...
# 1. Save this file as softether-installer.sh
# 2. chmod +x softether-installer.sh
# 3. Run bash file
# > ./softether-installer.sh
# Or just
@atoponce
atoponce / gist:07d8d4c833873be2f68c34f9afc5a78a
Last active May 14, 2024 00:59 — forked from tqbf/gist:be58d2d39690c3b366ad
Cryptographic Best Practices

Cryptographic Best Practices

Putting cryptographic primitives together is a lot like putting a jigsaw puzzle together, where all the pieces are cut exactly the same way, but there is only one correct solution. Thankfully, there are some projects out there that are working hard to make sure developers are getting it right.

The following advice comes from years of research from leading security researchers, developers, and cryptographers. This Gist was [forked from Thomas Ptacek's Gist][1] to be more readable. Additions have been added from