Skip to content

Instantly share code, notes, and snippets.

View riprasad's full-sized avatar
🏠
Working from home

Rishab Prasad riprasad

🏠
Working from home
View GitHub Profile
@riprasad
riprasad / kerberos_setup.md
Last active May 18, 2020 08:02
Kerberos Setup

1. INSTALLING KERBEROS

Kerberos packages may be installed by default, but make sure that the appropriate packages are installed for the Kerberos server or client being configured.

To install packages for a Kerberos server:

yum install krb5-server krb5-libs krb5-auth-dialog

To install packages for a Kerberos client:

yum install krb5-workstation krb5-libs krb5-auth-dialog

@riprasad
riprasad / GitHub-Forking.md
Created August 19, 2020 08:24 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@riprasad
riprasad / Patents.md
Last active February 2, 2023 16:12
Consolidated guide for Patenting Inventions at Red Hat

What ?

A patent is an exclusive right granted for an invention, which is a product or a process that provides, in general, a new way of doing something, or offers a new technical solution to a problem.

Red Hat highly encourages its employees to disclose and submit patent inventions liberally

Why ?

  1. Red Hat wants to build up a patent portfolio for defensive purposes.
  2. It will discourage other companies from suing Red Hat, claiming that we infringe their patents
  3. Such a portfolio will help deter litigation-minded companies from bringing us to court
  4. We will be able to countersue them for infringing our patents
import groovy.util.logging.Slf4j
import org.apache.maven.model.Build
import org.apache.maven.model.Dependency
import org.apache.maven.model.DependencyManagement
import org.apache.maven.model.Plugin
import org.codehaus.plexus.util.xml.Xpp3Dom
import org.commonjava.maven.atlas.ident.ref.SimpleProjectVersionRef
import org.commonjava.maven.ext.common.ManipulationException
import org.commonjava.maven.ext.common.model.Project
import org.commonjava.maven.ext.core.groovy.BaseScript
import groovy.util.logging.Slf4j
import org.apache.maven.model.Build
import org.apache.maven.model.Dependency
import org.apache.maven.model.DependencyManagement
import org.apache.maven.model.Plugin
import org.codehaus.plexus.util.xml.Xpp3Dom
import org.commonjava.maven.atlas.ident.ref.SimpleProjectVersionRef
import org.commonjava.maven.ext.common.ManipulationException
import org.commonjava.maven.ext.common.model.Project
import org.commonjava.maven.ext.core.groovy.BaseScript
import org.apache.maven.model.Exclusion
import org.commonjava.maven.ext.core.groovy.BaseScript
import org.commonjava.maven.ext.core.groovy.InvocationStage
import org.commonjava.maven.ext.core.groovy.PMEBaseScript
import org.commonjava.maven.ext.core.groovy.InvocationPoint
@InvocationPoint(invocationPoint = InvocationStage.FIRST)
@PMEBaseScript BaseScript pme
String fge = 'com.github.fge'
#oc apply -f atmoz-sftp.yaml
kind: PersistentVolume
apiVersion: v1
metadata:
name: atmoz-pv
labels:
app: atmoz
spec:
storageClassName: ""
@riprasad
riprasad / sftp.yaml
Created November 2, 2021 19:58 — forked from jujhars13/sftp.yaml
kubernetes pod example for atmoz/sftp
apiVersion: v1
kind: Namespace
metadata:
name: sftp
---
kind: Service
apiVersion: v1
metadata:
#!productVersion=0.0.0
#!milestone=CR1
#!projectVersion=0.1.8.Final
#!scmRevision=0.1.8.Final
#!projectName=apicurio-common-rest-client
#!productName=Red Hat OpenShift Service Registry
#!abbreviation=RHOSR
#!groupConfigName={{projectName}}-{{projectVersion}}
@riprasad
riprasad / increase_root_fedora.md
Last active January 5, 2023 08:30 — forked from 181192/increase_root_fedora.md
How to increase the root partition size on Fedora

How to increase the root partition size on Fedora

Boot up with an Fedora Live USB stick.

  1. Run vgs to check if there's any space:
$ sudo vgs
  VG     #PV #LV #SN Attr   VSize    VFree
  fedora_dhcp35--100   1   3   0 wz--n- <237.28g    0