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
extundelete "no such file or directory while creating directory"
View extundelete-no-such-file-or-directory-while-creating-directory.md

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 Mar 18, 2020
Install Oracle client on Ubuntu 18.04
View install-oracle-client-ubuntu.md

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

  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 May 23, 2020
Convert OpenShift DeploymentConfig to Kubernetes Deployment
View convert-deploymentconfig-to-deployment.md
  1. Change apiVersion from:

    - apiVersion: v1

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

    to:

@bmaupin
bmaupin / using-buildah-inside-a-rhel-container.md
Last active Oct 1, 2019
Using buildah inside a RHEL container
View using-buildah-inside-a-rhel-container.md

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 Oct 1, 2019
Parse OpenShift logs in Graylog
View parse-openshift-logs-in-graylog.md

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 Oct 7, 2019
GBA game compatibility on PSP
View gba-compatibility-on-psp.md
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
Graylog vs Splunk Free
View graylog-vs-splunk-free.md
@bmaupin
bmaupin / install-oracle-xe-11-centos7.sh
Created Apr 29, 2019
Install Oracle XE 11 on CentOS 7
View install-oracle-xe-11-centos7.sh
# 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-1804.sh
Last active Feb 20, 2020
Install Adobe Reader 9 on Ubuntu 18.04
View install-adobe-reader-9-ubuntu-1804.sh
# Cache sudo password
sudo -v
# Enable installation of 32-bit packages
sudo dpkg --add-architecture i386
# Enable the Ubuntu partner repository
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 Dec 10, 2019
Alternatives to Oracle Java
View alternatives-to-oracle-java.md
You can’t perform that action at this time.