Skip to content

Instantly share code, notes, and snippets.

View yasithab's full-sized avatar

Yasitha Bogamuwa yasithab

  • Propertyfinder FZ-LLC
  • United Arab Emirates
View GitHub Profile
@yasithab
yasithab / import-rds-certs.sh
Created August 13, 2021 09:21
import RDS certificates to java keystore on alpine / osx (OpenJDK11)
#!/usr/bin/env sh
#i tried it and working like charm just have to note make the file .sh chmod +x and you may need sudo to run with permission but be carefull with sudo
#be sure the $JAVA_HOME is configure correctly or make it static as commentedline 7 below
OLDDIR="$PWD"
mkdir /tmp/rds-ca && cd /tmp/rds-ca
echo "Downloading RDS certificates..."
curl https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem > rds-combined-ca-bundle.pem
@yasithab
yasithab / import-rds-certs.sh
Created August 13, 2021 09:20 — forked from shareefhiasat/import-rds-certs.sh
import RDS certificates to java keystore on alpine / osx
#!/usr/bin/env sh
#i tried it and working like charm just have to note make the file .sh chmod +x and you may need sudo to run with permission but be carefull with sudo
#be sure the $JAVA_HOME is configure correctly or make it static as commentedline 7 below
OLDDIR="$PWD"
if [ -z "$CACERTS_FILE" ]; then
# you should have java home configure to point for example /usr/lib/jvm/default-java/jre/lib/security/cacerts
CACERTS_FILE=$JAVA_HOME/jre/lib/security/cacerts
fi
@yasithab
yasithab / Activate Office 2019 for macOS VoL.md
Created April 27, 2021 19:37 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@yasithab
yasithab / .bash_aliases
Created August 15, 2020 10:00 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
{
"info":{
"name":"config",
"default-cluster-id":3,
"exporter-version":12,
"engine-version":"2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x)",
"engine-build":"d3beb772c02098ceaea89779a7afd4b7305d3788",
"storage-config-version":18,
"schema-version":4,
"schemaRecordId":"#0:1",

Keybase proof

I hereby claim:

  • I am yasithab on github.
  • I am yasithab (https://keybase.io/yasithab) on keybase.
  • I have a public key whose fingerprint is 6EB6 A3A1 4055 1EA5 6736 FB11 E9AF 88D1 A554 F4F3

To claim this, I am signing this object: