Skip to content

Instantly share code, notes, and snippets.

View frankz61's full-sized avatar
🎯
Focusing

frankz61 frankz61

🎯
Focusing
View GitHub Profile
@irbull
irbull / OpenSSLExample.cpp
Created August 11, 2016 18:32
Code signing and verification with OpenSSL
#include <iostream>
#include <openssl/aes.h>
#include <openssl/evp.h>
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <assert.h>
@daqi
daqi / linux-updater.ts
Last active January 24, 2024 03:36
linux-updater
import { EventEmitter } from 'events';
import {
eq as isVersionsEqual,
gt as isVersionGreaterThan,
lt as isVersionLessThan,
parse as parseVersion,
} from 'semver';
import { safeLoad } from 'js-yaml';
import { app, shell, net } from 'electron';
import { Logger } from '../logger';