Skip to content

Instantly share code, notes, and snippets.

View geek5nan's full-sized avatar
🎯
Focusing

Wu Nan geek5nan

🎯
Focusing
View GitHub Profile
@Hakky54
Hakky54 / java_keytool_cheat_sheet.md
Last active May 11, 2024 02:18
Keytool Cheat Sheet - Some list of keytool commands for create, check and verify your keys

Keytool CheatSheet 🔐

Some history

This cheat sheet came into life when I started working on a tutorial of setting up one way tls and two way tls, which can be found here: GitHub - Mutual TLS SSL

Creation and importing

Generate a Java keystore and key pair

keytool -genkeypair -keyalg RSA -keysize 2048 -keystore keystore.jks -alias server -validity 3650
@y-polek
y-polek / LiveDataExt.kt
Last active November 25, 2021 01:22
'map' and 'combineLatest' transformations for LiveData
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MediatorLiveData
import android.arch.lifecycle.MutableLiveData
fun <X, Y> LiveData<X>.map(func: (X?) -> Y?): MutableLiveData<Y?> {
return MediatorLiveData<Y>().apply {
addSource(this@map) { x -> value = func(x) }
}
}
@smaeul
smaeul / report.md
Created August 28, 2017 15:21
Google Summer of Code 2017 Report

Overview

The project I worked on this summer was divided into two major parts. First, I optimized the cryptography parallelism of the in-kernel WireGuard implementation. My goal was to improve overall speed, increase multi-core scalability, and fix some hard-to-reproduce race conditions. I spent the second half of the summer writing an Android application that serves as a convenient GUI frontend for WireGuard. My vision for the app was to be simple, yet very functional.

Queueing improvements

Get the code!

@0xmachos
0xmachos / Keychain.md
Last active February 19, 2024 06:50
Useful resources for working with iOS/ macOS Keychain API

Keychain API

kSecAttrAccessible Mapping

Protection Domain (pdmn) Keychain Accessibility Values
ck kSecAttrAccessibleAfterFirstUnlock
cku kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
dk kSecAttrAccessibleAlways
akpu kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly