Skip to content

Instantly share code, notes, and snippets.

@hkneptune
hkneptune / mysql-8-centos-8-in-virtualbox.md
Last active November 9, 2023 04:01
Install MySQL 8 on CentOS 8 in VirtualBox

Install MySQL 8 on CentOS 8 in VirtualBox

** Please use the root user to edit the files and execute the commands unless further notice. **

Prerequisite

  1. Install the latest VirtualBox Platform Package and the VirtualBox Extension Pack (Oracle_VM_VirtualBox_Extension_Pack-VERSION.vbox-extpack).
  2. Download the latest VirtualBox Guest Additions (VBoxGuestAdditions_VERSION.iso).
  3. Download the latest CentOS Linux release 8.
  4. Create a new virtual machine and install the CentOS to the virtual machine. During the CentOS installation, select Workstation as Base Environment, select Container Management, Development Tools and Graphical Administration Tools as Additional software for Selected Environment. Use http://mirror.centos.org/centos/8/BaseOS/x86_64/os/ as the installation source.
@hkneptune
hkneptune / oracle-db-19c-centos-8-in-virtualbox.md
Last active October 3, 2025 10:01
Install Oracle Database 19c on CentOS 8 in VirtualBox

Install Oracle Database 19c on CentOS 8 in VirtualBox

** Please use the root user to edit the files and execute the commands unless further notice. **

Prerequisite

  1. Install the latest VirtualBox Platform Package and the VirtualBox Extension Pack (Oracle_VM_VirtualBox_Extension_Pack-VERSION.vbox-extpack).
  2. Download the latest VirtualBox Guest Additions (VBoxGuestAdditions_VERSION.iso).
  3. Download the latest CentOS Stream 8.
  4. Create a new virtual machine and install the CentOS to the virtual machine. During the CentOS installation, select Workstation as Base Environment, select Container Management, Development Tools and Graphical Administration Tools as Additional software for Selected Environment. Use http://mirror.centos.org/centos/8/BaseOS/x86_64/os/ as the installation source.
@hkneptune
hkneptune / eclipse-java-code-formatter-profile.xml
Last active November 17, 2020 07:01
Java Code Formatter Profile for Eclipse
<?xml version="1.0" encoding="UTF-8"?>
<profiles version="20">
<profile kind="CodeFormatterProfile" name="Simple Java Code Style" version="20">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert" />
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert" />
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert" />
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert" />
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines" />
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true" />
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_logical_operator" value="insert" />
@hkneptune
hkneptune / useful-tools-utilities.md
Created December 10, 2019 01:13
Useful Tools / Utilities

Useful Tools / Utilities

  • PU: Free for personal use
  • CU: Free for commercial use
  • OS: Open source

File Attributes

Attribute Changer - PU CU - A powerful Windows Explorer add-on, available at your fingertips whenever you right-click on files, folders and even drives in Windows Explorer.

@hkneptune
hkneptune / X509CertificateUtils.java
Created September 25, 2019 02:59
Get the Serial Number of a X509 Certificate
package com.neptuneli.utils;
import java.math.BigInteger;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
public class X509CertificateUtils {
public String getCertSerialNo(final String certPath) {
@hkneptune
hkneptune / nowtv-live-fullscreen.user.js
Last active August 7, 2019 14:29
NOWTV LIVE FULLSCREEN SCRIPT
// ==UserScript==
// @name NOWTV-LIVE-FULLSCREEN
// @namespace https://neptuneli.com/
// @version 1.0
// @description NOWTV LIVE FULLSCREEN SCRIPT
// @author Neptune LI (@hkneptune)
// @match https://news.now.com/home/live
// @match https://news.now.com/home/live331a
// @grant none
// ==/UserScript==
@hkneptune
hkneptune / Useful-Eclipse-Plugins.md
Last active January 8, 2020 07:02
Useful Eclipse Plugins
@hkneptune
hkneptune / getting-the-path-of-maven-dependency-as-a-maven-property.md
Last active June 10, 2019 03:52
Getting the Path of Maven Dependency as a Maven Property

Getting the Path of Maven Dependency as a Maven Property

  1. Setup the maven-dependency-plugin plugin with properties goal.
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
    <version>3.1.1</version>
    <executions>
 
@hkneptune
hkneptune / maven-build-with-dasho-obfuscation.md
Last active May 27, 2019 09:05
Configure Obfuscation with the PreEmptive Protection DashO in Apache Maven Project

Configure Obfuscation with the PreEmptive Protection DashO in Apache Maven Project

Prerequisites

  1. Download DashO for Android & Java on PreEmptive Solutions and then extract it into a local directory. For example: C:\programming\DashO-9.3.0.
  2. Activate the DashO with DashOGUI.
  3. Download Open Java Development Kit (OpenJDK) and then extract it into a local directory. For example: C:\Java\jdk-11.0.2.
  4. Dwonload Apache Maven and then extract it into a local directory. For example: C:\programming\apache-maven-3.6.1.
  5. Configure the user variable DASHO_HOME, DASHO_JAVA_HOME, JAVA_HOME, MAVEN_HOME.
DASHO_HOME=C:\programming\DashO-9.3.0
@hkneptune
hkneptune / dasho-java-win10.md
Last active September 2, 2020 01:51
DashO for Android & Java Setup on Windows 10

DashO for Android & Java Setup on Windows 10

Prerequisites

  1. Download DashO for Android & Java on PreEmptive Solutions and then extract it into a local directory. For example: D:\programming\DashO-10.3.
  2. Download Java SE Development Kit 8 and install it.
  3. Download Apache Ant and extract it into a local directory. For example: D:\programming\apache-ant-1.10.8.
  4. Put the license file dasho.dat into the DashO directory.

System Environment Variables