Skip to content

Instantly share code, notes, and snippets.

@jodamn
jodamn / jkeylib
Last active July 18, 2021 19:52
jkeylib
#!/usr/bin/env bash
function push_private_key_to_yubikey {
DEFAULT_PRIVATE_KEY_FILE="private.pem"
if [[ ! `yubico-piv-tool --action "status" 2> /dev/null` ]]; then
>&2 echo "yubikey not detected"
return 127
fi
import java.text.SimpleDateFormat;
import java.util.Date;
import java.text.ParseException;
public class SimpleDateFormatTest {
public static void main(String[] args) throws ParseException {
String dateThreeMillis = "2019-05-23 11:22:33.450";
String dateTwoMillis = dateThreeMillis.substring(0, dateThreeMillis.length() - 1);
@jodamn
jodamn / keybase.md
Created February 16, 2017 03:18
Keybase Proof

Keybase proof

I hereby claim:

  • I am jodamn on github.
  • I am jodamn (https://keybase.io/jodamn) on keybase.
  • I have a public key ASCEkGe3NNL0hEzO9FuE5KeeJT82rslQVyYpdlYNYqIQ_Qo

To claim this, I am signing this object: