Skip to content

Instantly share code, notes, and snippets.

View alexfjw's full-sized avatar
🐢
I may be slow to respond.

Alex Fong alexfjw

🐢
I may be slow to respond.
View GitHub Profile
Tmux
:set-window-option mode-keys vi
fd
fd --glob "*something*"
@alexfjw
alexfjw / ExpiringLruCache.java
Created August 16, 2017 05:08 — forked from christopherperry/ExpiringLruCache.java
LruCache for Android with expiring keys. Instead of modifying LruCache directly I used delegation to get around final keyword usage and a dirty hack to override everything else.
import android.os.SystemClock;
import android.support.v4.util.LruCache;
import java.util.HashMap;
import java.util.Map;
/**
* An Lru Cache that allows entries to expire after
* a period of time. Items are evicted based on a combination
* of time, and usage. Adding items past the {@code maxSize}
@alexfjw
alexfjw / OKC_GSoC_2016_AlexFJW.md
Created August 23, 2016 16:53
OpenKeychain GSoC 2016 (Passwords to Applock)

#OpenKeychain GSoC 2016

###From Passwords to Applock Mechanism

Work Done
  • Migrated app from using encrypted secret subkeys to encrypted secret keyring blocks
  • Introduced a master password and an applock for further security
  • Added a single password workflow for app, reducing the complexity of PGP key usage.
  • Enabled a seamless transition between both the single and multi-passowrd workflow