Skip to content

Instantly share code, notes, and snippets.

@pawsengineer
pawsengineer / gpg-encrypt.go
Created December 27, 2022 04:01 — forked from ayubmalik/gpg-encrypt.go
Golang encrypt file using GPG openpgp. Use standard go libs.
package main
/**
Example hack to encrypt a file using a GPG encryption key. Works with GPG v2.x.
The encrypted file e.g. /tmp/data.txt.gpg can then be decrypted using the standard command
gpg /tmp/data.txt.gpg
Assumes you have **created** an encryption key and exported armored version.
You have to read the armored key directly as Go cannot read pubring.kbx (yet).
@pawsengineer
pawsengineer / cryptokitties.sol
Created January 24, 2021 13:16 — forked from arpit/cryptokitties.sol
Cryptokitties Contract from the Eth blockchain
pragma solidity ^0.4.11;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
@pawsengineer
pawsengineer / EpubDownloadManager.swift
Created July 12, 2019 03:09
EPUB File Downloader
//
// DownloadManager.swift
// Example
//
// Created by Kiettiphong Manovisut on 7/12/19.
// Copyright © 2019 FolioReader. All rights reserved.
//
import Foundation
import Alamofire