Skip to content

Instantly share code, notes, and snippets.

View Ralph-Lee's full-sized avatar
🏠
Working from home

Ralph Ralph-Lee

🏠
Working from home
View GitHub Profile
@Ralph-Lee
Ralph-Lee / change-mysql-data-directroy-to-new-location.md
Created July 4, 2025 09:04 — forked from linuxkathirvel/change-mysql-data-directroy-to-new-location.md
Change a MySQL Data Directory to a New Location on CentOS 7

Change a MySQL Data Directory to a New Location on CentOS 7

mysql -u root -p

# Check current data directory
mysql> select @@datadir;
+-----------------+
| @@datadir       |
+-----------------+
| /var/lib/mysql/ |
@Ralph-Lee
Ralph-Lee / docker-mysql.md
Created June 27, 2025 08:41 — forked from eric-do/docker-mysql.md
Guide for installing running MySQL 8.0 using Docker.

Installing MySQL 8.0 via Docker

TLDR: just looking for the code? Skip to the end.

📖 Summary

This document guides you through the setup of Docker and MySQL.

Why would you want to do it this way?

  • Isolated environment. Need to upgrade from version 5.7 to 8.0 and are just developing locally? Previous configurations breaking your installation? Toss your old image and get a new one.
  • Preparation for real world development. Local databases are typically for coding and testing. Developers don't normally run a live production database from their own machine. We just need a database we can quickly test and develop on. Docker is perfect for that.
@Ralph-Lee
Ralph-Lee / mysql57-in-centos7.md
Created July 25, 2024 04:47 — forked from linuxkathirvel/mysql57-in-centos7.md
Install MySQL 5.7 in CentOS7/RHEL7

MySQL 5.7 installation in CentOS 7

sudo su

# Remove MariaDB packages
yum list installed | grep -i maria
yum remove mariadb.x86_64
yum remove mariadb-libs.x86_64

# Download MySQL 5.7 RPM tar
@Ralph-Lee
Ralph-Lee / openssh-latest-build-install.md
Created April 19, 2024 06:36 — forked from jtmoon79/openssh-latest-build-install.md
OpenSSH: build and install the latest version
@Ralph-Lee
Ralph-Lee / build-gcc-9.2.0-on-centos7.md
Created March 29, 2024 03:05 — forked from nchaigne/build-gcc-9.2.0-on-centos7.md
Building GCC 9.2.0 on CentOS 7

Building GCC 9.2.0 on CentOS 7

Introduction

CentOS 7 distribution (as well as RHEL 7) ships with a somewhat outdated version of the GCC compiler (4.8.5 on CentOS 7.5), which may not be suitable to your compilation requirements. For example, C11 - which supersedes C99 - is fully supported only starting from GCC 4.9).

Additionally, recent versions of GCC (GCC6, GCC7, GCC8, GCC9) come with improvements which help detect issues at build time and offer suggestions on how to fix them. Sometimes, these are even actually helpful!

This note describes how to build the latest GCC (9.2.0 as of October 2019) from sources on CentOS 7. This should be applicable as is on RHEL 7. For other Linux distributions, adapt as needed.

@Ralph-Lee
Ralph-Lee / gist:be0d85bc49d027a1e2cf0ad3832a518a
Created January 17, 2024 11:56 — forked from kr0nicas/gist:bdea3b2b71cb066f44a2
Weblogic enforce-valid-basic-auth-credentials
Weblogic 11c
Add the <enforce-valid-basic-auth-credentials> element to config.xml within the <security-configuration> element.
:
<enforce-valid-basic-auth-credentials>false</enforce-valid-basic-auth-credentials>
</security-configuration>
Start or restart all of the servers in the domain.
http://blog.avanttic.com/2011/02/16/problema-drivers-jdbc-al-migrar-una-aplicacion-java-1-4-a-1-6-weblogic-11g/
Weblogic 12C
@Ralph-Lee
Ralph-Lee / 0: jvm-options-java8.conf
Created January 5, 2024 07:52 — forked from elifarley/0: jvm-options-java8.conf
JVM options to maximize performance
# See https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html
# See https://docs.oracle.com/javase/8/docs/technotes/guides/vm/performance-enhancements-7.html
# See https://docs.oracle.com/javase/8/embedded/develop-apps-platforms/codecache.htm
# See http://normanmaurer.me/blog_in_progress/2013/11/07/Inline-all-the-Things/
# See http://stas-blogspot.blogspot.com.br/2011/07/most-complete-list-of-xx-options-for.html
# -XX:+LogCompilation
# -XX:+PrintInlining
-Dfile.encoding=UTF-8
@Ralph-Lee
Ralph-Lee / osx_setup.md
Created March 2, 2023 02:12 — forked from andrewvaughan/osx_setup.md
Mac OSX Setup

Mac OSX Bootstrap

Upgrade to Mavericks

  1. Install Mavericks via the App Store.

Secure The Machine

@Ralph-Lee
Ralph-Lee / raspberry-pi-vpn-router.md
Created February 10, 2023 09:33 — forked from superjamie/raspberry-pi-vpn-router.md
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@Ralph-Lee
Ralph-Lee / autossh.lenciel.plist
Created December 6, 2022 07:59 — forked from lenciel/autossh.lenciel.plist
autossh plist file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>autossh.lenciel</string>
<key>ProgramArguments</key>
<array>