Skip to content

Instantly share code, notes, and snippets.

@hons82
hons82 / GenPubSSHKey.java
Created June 25, 2024 10:42
Generate SSH public keypair from SSH RSA/DSA/EC private key in Java (Converted from https://gist.github.com/wernerb/3795be58d27829512272)
import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;
import java.io.StringReader;
import java.security.KeyFactory;
import java.security.PublicKey;
import java.security.interfaces.DSAParams;
import java.security.interfaces.DSAPublicKey;
import java.security.interfaces.ECPublicKey;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.X509EncodedKeySpec;
@hons82
hons82 / upload-symbols.sh
Created July 17, 2020 08:10
Firebase Crashlytics build phase script
"${PODS_ROOT}/FirebaseCrashlytics/run"
find "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}" -name "*.dSYM" | xargs -I \{\} "${PODS_ROOT}/FirebaseCrashlytics/upload-symbols" -gsp "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/GoogleService-Info.plist" --build-phase \{\}
@hons82
hons82 / .bash_profile
Created June 7, 2017 18:53 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@hons82
hons82 / DataStore.swift
Last active September 10, 2015 09:53 — forked from kristopherjohnson/DataStore.swift
Swift: Core Data persistence stack
import Foundation
import CoreData
// "Class variables" used in DataStore.sharedDataStore()
private var _instance: DataStore?
private var DataStoreClassLock = NSRecursiveLock()
private let appStoreFilename = "DataStore.sqlite"
private let testStoreFilename = "test_DataStore.sqlite"