Skip to content

Instantly share code, notes, and snippets.

View wesruv's full-sized avatar
🤔
Why can I have a status?

wesruv wesruv

🤔
Why can I have a status?
View GitHub Profile
@wesruv
wesruv / file.js
Last active October 11, 2023 20:57
Translations
'en': {
primaryListLabel: 'Quick links: redhat.com, Customer Portal, Red Hat\'s developer site, Red Hat\'s partner site',
youAreHere: 'You are here',
redHatDescription: 'Learn about our open source products, services, and company.',
portalDescription: 'Get product support and knowledge from the open source experts.',
developersDescription: 'Read developer tutorials and download Red Hat software for cloud application development.',
connectDescription: 'Get training, subscriptions, certifications, and more for partners to build, sell, and support customer solutions.',
productsHeading: 'Products & tools',
ansibleDescription: 'Learn about and try our IT automation product.',
ecosystemDescription: 'Find hardware, software, and cloud providers―and download container images―certified to perform with Red Hat technologies.',
@wesruv
wesruv / markdown_live_preview.mjs
Created April 7, 2023 20:37
Codemirror 6 Implementation (In Progress)
import { EditorView, basicSetup } from "codemirror";
import { keymap } from "@codemirror/view";
import { EditorState, Compartment } from "@codemirror/state";
import { indentWithTab } from "@codemirror/commands";
import { markdown } from "@codemirror/lang-markdown";
import { color, oneDark, oneDarkHighlightStyle, oneDarkTheme } from "@codemirror/theme-one-dark";
// Setup to update settings?
let language = new Compartment, tabSize = new Compartment;
@wesruv
wesruv / 1_creating-vm.md
Created January 21, 2023 18:27
Creating a LAMP local dev environment with Virtualbox

Creating a Virtualbox Linux VM for local LAMP dev

Download and Install Virtualbox

https://www.virtualbox.org/wiki/Downloads Choose the version for the host machine, so if you’re on Windows, choose that, if Mac, choose that.

Download Ubuntu Server

@wesruv
wesruv / settings.php
Last active October 14, 2022 19:11
Environment Indicator settings
<?php
switch ($environment) {
case 'local':
$config['environment_indicator.indicator']['name'] = 'Local';
$config['environment_indicator.indicator']['fg_color'] = '#ffffff';
$config['environment_indicator.indicator']['bg_color'] = '#005fab';
break;
case 'dev':
case 'preview':
$config['environment_indicator.indicator']['name'] = 'Dev';
java.nio.file.FileSystemException: /home/wruvalca/juno/asciidoc_local_render/output/rhel-8/titles/RHEL-System-Roles-7.9/administration-and-configuration-tasks-using-system-roles-in-rhel-7.9/modules/proc_requesting-a-new-certificate-from-idm-ca-using-the-certificate-system-role.adoc: Too many open files
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
at java.nio.file.Files.newInputStream(Files.java:152)
at com.redhat.ganymede.asciidoctorj.core.Converter.hash(Converter.java:211)
@wesruv
wesruv / cheatsheet.md
Last active May 20, 2022 22:50
Linux CLI Beginner Cheatsheet

Basics

Here's some Linux (particularly Ubuntu) Command Line Interface (CLI) basics

# Command for listing files
ls

# Shows all files and in a nicer layout with the options l and a
ls -la

Creating a Virtualbox Linux VM for local LAMP dev

Download and Install Virtualbox

https://www.virtualbox.org/wiki/Downloads Choose the version for the host machine, so if you’re on Windows, choose that, if Mac, choose that.

!IMPORTANT: On Windows, run the install for Virtualbox as Admin, if you do not network drivers for the VM won't be installed and VM's won't be able to connect to the internet.

Running with gitlab-runner 14.6.0 (5316d4ac)
 on gitlab-runner2.cee.prod.upshift.rdu2.redhat.com 9d6aaa01
section_start:1642007687:prepare_executor
Preparing the "docker" executor
Using Docker executor with image cypress/browsers:node14.15.0-chrome86-ff82 ...
Authenticating with credentials from /root/.docker/config.json
Pulling docker image cypress/browsers:node14.15.0-chrome86-ff82 ...
Using docker image sha256:2119be48cbda5c3ba43e5bedff238506ca057a7ff6fd380412e346b3571f0162 for cypress/browsers:node14.15.0-chrome86-ff82 with digest cypress/browsers@sha256:62a4384fc51d03ad184e13dae85739ddb7b619c22a6fcf2edba75138c39cfa16 ...
section_end:1642007689:prepare_executor
section_start:1642007689:prepare_script
$ npm run build
> build
> run-s build:*
> build:tools
> npm run build --workspace @patternfly/pfe-tools
@wesruv
wesruv / example.md
Last active December 20, 2021 18:25

For authenticated users, you'd leave what you have, except get rid of the tmp-login-link.

For anonymouse users, instead of:

<pfe-navigation>
  <rh-account-dropdown slot="account" tmp-login-link="javascript:document.dispatchEvent(new Event('keycloakRhdLogin'));" tmp-logout-link="javascript:document.dispatchEvent(new Event('keycloakRhdLogout'));" lang="en" pfelement="" class="PFElement" type="content" login-link="javascript:document.dispatchEvent(new Event('keycloakRhdLogin'));"></rh-account-dropdown>
</pfe-navigation>