Skip to content

Instantly share code, notes, and snippets.

View NemoOudeis's full-sized avatar

Nemo Oudeis NemoOudeis

View GitHub Profile
@NemoOudeis
NemoOudeis / cheat.ts
Created June 17, 2020 15:20
TypeScript Cheat Sheet
// String enum
enum StringEnum {
Value1 = 'value1',
Value2 = 'value2',
}
// Interface inheritance
interface Base {
id: number;
}

Android: Generate Release/Debug Keystores

Generate Keystores

Debug Keystore

$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "C=US, O=Android, CN=Android Debug"

A debug keystore which is used to sign an Android app during development needs a specific alias and password combination as dictated by Google.

  • Keystore name: "debug.keystore"
@NemoOudeis
NemoOudeis / stop_bounce.sh
Created September 9, 2018 23:42
Tell that dock to stop bouncing...
defaults write com.apple.dock no-bouncing -bool TRUE
killall Dock
@NemoOudeis
NemoOudeis / pass_gpg_key_sharing.sh
Created September 9, 2018 14:10
for new machines that need a pass pgp key
$ gpg --list-secret-keys
/Users/user/.gnupg/pubring.kbx
------------------------------------
sec YADA YADA
ID
uid YADA YADA
ssb YADA YADA
$ gpg --export-secret-keys ID > pass.asc
# move to other machine

Keybase proof

I hereby claim:

  • I am nemooudeis on github.
  • I am nemooudeis (https://keybase.io/nemooudeis) on keybase.
  • I have a public key ASBtU84N9Z_d9RzlfiZ-oBG3yz97GohMMJ9ZB73PvI2g_go

To claim this, I am signing this object: