Skip to content

Instantly share code, notes, and snippets.

View muratakcs's full-sized avatar

Murat Ak muratakcs

  • Akdeniz University
  • Antalya
View GitHub Profile
@muratakcs
muratakcs / pocketdedupe.py
Created February 17, 2020 19:21 — forked from Mierdin/pocketdedupe.py
A Python script to intelligently remove duplicate entries from Pocket
#!/usr/bin/env python
from pocket import Pocket
import webbrowser, sys
# Get consumer key from cmd line
consumer_key = sys.argv[1]
request_token = Pocket.get_request_token(
consumer_key=consumer_key,
@muratakcs
muratakcs / RsaExample.java
Created November 22, 2018 05:34 — forked from nielsutrecht/RsaExample.java
Example of RSA generation, sign, verify, encryption, decryption and keystores in Java
import javax.crypto.Cipher;
import java.io.InputStream;
import java.security.*;
import java.util.Base64;
import static java.nio.charset.StandardCharsets.UTF_8;
public class RsaExample {
public static KeyPair generateKeyPair() throws Exception {
KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");