Skip to content

Instantly share code, notes, and snippets.

@bmaupin
bmaupin / extundelete-no-such-file-or-directory-while-creating-directory.md
Created May 29, 2020 15:35
extundelete "no such file or directory while creating directory"

This error may occur when using extundelete with -o:

extundelete: No such file or directory while creating directory

The problem is that -o expects a relative path to the current directory (not an absolute path). Either use -o with a relative path or remove -o.

Source: https://www.itread01.com/p/158985.html

@bmaupin
bmaupin / install-oracle-client-ubuntu.md
Last active February 4, 2025 18:22
Install Oracle client on Ubuntu

Reference: https://help.ubuntu.com/community/Oracle%20Instant%20Client

Tested on: Ubuntu 18.04, 20.04

  1. Decide which version of the Oracle client to install

  2. Download the Oracle client packages

@bmaupin
bmaupin / convert-deploymentconfig-to-deployment.md
Last active October 8, 2024 19:38
Convert OpenShift DeploymentConfig to Kubernetes Deployment
  1. Change apiVersion from:

    - apiVersion: v1

    (or apiVersion: apps.openshift.io/v1)

    to:

@bmaupin
bmaupin / using-buildah-inside-a-rhel-container.md
Last active October 1, 2019 20:19
Using buildah inside a RHEL container

Why

  • Unlike Docker, buildah doesn't need root privileges to run
  • Buildah can pass yum entitlements from build container to container being built
    • Since this has to be done manually (see /run/secrets:/run/secrets below) couldn't Docker do this as well?

Steps

  1. Make sure you're using a RHEL host registered with yum

  2. Make sure you're using RHEL build container image, such as:

@bmaupin
bmaupin / parse-openshift-logs-in-graylog.md
Last active October 1, 2019 19:39
Parse OpenShift logs in Graylog

Problems

  • Application logs are mixed with kubernetes logs. They can be searched using a query similar to this one, but it's a bit unwieldy as it's not using Graylog fields (for example, the quotes can't be left out): "container_name=mycontainer"

  • The actual log message is prefixed with a bunch of extra information that makes the logs difficult to read in the Graylog UI. For example, the message in Graylog shows up as:

    app1.openshift.example.org output_tag: namespace_name=mynamespace, container_name=myapplication, pod_name=myapplication-7dd79c7bb7-qkfzk, message=Web server listening at: http://0.0.0.0:3000
    

But the actual log message is:

@bmaupin
bmaupin / gba-compatibility-on-psp.md
Last active April 3, 2022 14:49
GBA game compatibility on PSP
Game TempGBA-libretro TempGBA4PSP-mod TempGBA4PSP-26731020 TempGBA4PSP-26731013 gpSP 0.9
Golden Sun Seems fine¹ Seems fine¹²³ Seems fine¹²³ Seems fine¹
Kingdom Hearts: Chain of Memories Artifacts in intro
Actual gameplay seems fine¹
Artifacts in intro
Actual gameplay seems fine¹²³
Artifacts in intro
Actual gameplay seems fine¹²³
Hangs during intro
Requires creating a savestate during intro and loading it to continue¹
The Legend of Zelda: The Minish Cap Seems fine¹ Seems fine¹²³ Seems fine¹²³ Seems fine¹
Metroid Fusion **Sound popping in intro (parasites screen)**Actual gameplay seems fine¹ **Sound popping in intro (parasites screen)**Actual g
@bmaupin
bmaupin / graylog-vs-splunk-free.md
Last active May 17, 2019 14:30
Graylog vs Splunk Free
@bmaupin
bmaupin / install-oracle-xe-11-centos7.sh
Created April 29, 2019 20:20
Install Oracle XE 11 on CentOS 7
# Prerequisite: download Oracle Database 11gR2 Express Edition for Linux x64 from: https://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/xe-prior-releases-5172097.html
sudo sh -c 'curl https://public-yum.oracle.com/public-yum-ol7.repo > /etc/yum.repos.d/public-yum-ol7.repo'
sudo sh -c 'curl https://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol7 > /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle'
sudo yum install oracle-rdbms-server-11gR2-preinstall unzip
unzip oracle-xe-11.2.0-1.0.x86_64.rpm.zip
# Don't use rpm -ivh (https://stackoverflow.com/a/18110721/399105)
sudo rpm -i Disk1/oracle-xe-11.2.0-1.0.x86_64.rpm
sudo /etc/init.d/oracle-xe configure
@bmaupin
bmaupin / install-adobe-reader-9-ubuntu.sh
Last active December 21, 2024 16:00
Install Adobe Reader 9 on Ubuntu
# Cache sudo password
sudo -v
# Enable installation of 32-bit packages
sudo dpkg --add-architecture i386
# Enable the Ubuntu partner repository (this doesn't seem to be necessary for 20.04)
if [ $(lsb_release -r | awk '{print $2}') == '18.04' ]; then
sudo sed -i 's/^# deb http:\/\/archive.canonical.com\/ubuntu/deb http:\/\/archive.canonical.com\/ubuntu/' /etc/apt/sources.list
sudo apt update
@bmaupin
bmaupin / alternatives-to-oracle-java.md
Last active March 28, 2025 13:13
Alternatives to Oracle Java

See also: OpenJDK builds

Name Price JCK certified Versions OpenJFX/JavaFX¹ Supported platforms
AdoptOpenJDK free no 8+ no Linux (.deb, .rpm, .tar), Mac, Windows
Amazon Corretto free yes 8, 11 Bundled with 8 only Linux (.deb, .rpm, .tar), Mac, Windows
Azul Zulu free yes 6+ Bundled (choose JDK FX download) Linux (.deb, .rpm, .tar), Mac, Windows
Bellsoft Liberica free 8+ Bundled (choose Full JDK download) inux (.deb, .rpm, .tar), Mac, Windows
Oracle OpenJDK free yes 7+ Linux (⚠ .tar only), Mac,