This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
echo -n "PDF Password: " && read -s && echo "" && qpdf --password=$REPLY --decrypt "$1" "$2" && echo -e "${GREEN}DONE${NC}" || echo -e "${RED}FAILED${NC}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UNIX includes | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <errno.h> | |
#include <string.h> | |
// QT includes | |
#include <QCoreApplication> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef JSONHELPER_H | |
#define JSONHELPER_H | |
#include <QJsonObject> | |
#include <QMetaProperty> | |
class JSONHelper | |
{ | |
public: | |
template<class T> |