Skip to content

Instantly share code, notes, and snippets.

View cybernetics's full-sized avatar

Rajkumar Singh cybernetics

  • American Airlines
  • Tempe, AZ 85281, USA
  • 10:13 (UTC -07:00)
  • X @quanta007
View GitHub Profile
package util;
import java.text.CharacterIterator;
import java.text.StringCharacterIterator;
public class XMLEscaper {
public static final String[] ESCAPED_CHAR = {"&", "'", "\"", "<", ">"};
public String escape(String aText) {
if (aText == null) return null;
# Source: https://gist.github.com/vfarcic/732bf76feb51489add89567433019460
##################################################################################
# Getting Started with Crossplane: A Glimpse Into the Future | Tutorial (part 1) #
##################################################################################
# Additional Info:
# - Crossplane: https://crossplane.io
#################

Keybase proof

I hereby claim:

  • I am cybernetics on github.
  • I am x6lwgjsf0ei1597h (https://keybase.io/x6lwgjsf0ei1597h) on keybase.
  • I have a public key whose fingerprint is 2A4F D63E AE48 592B 58FF D287 81F8 EA55 0C6C C0A7

To claim this, I am signing this object:

@cybernetics
cybernetics / global-gitignore.md
Created February 15, 2024 20:53 — forked from subfuzion/global-gitignore.md
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.

@cybernetics
cybernetics / Expressions.java
Created December 13, 2023 10:20 — forked from jbgi/Expressions.java
Generated code for @DaTa Expression
package org.derive4j.exemple;
import java.lang.Integer;
import java.lang.Object;
import java.lang.Override;
import java.util.Optional;
import java.util.function.Function;
import java.util.function.Supplier;
public final class Expressions {
@cybernetics
cybernetics / Arch-Mojo.md
Created October 9, 2023 07:17 — forked from Sharktheone/Arch-Mojo.md
Install the new mojo programming language on Arch. This will be obsolete when mojo adds official Arch support.
# Source: https://gist.github.com/2dbb2f8683e661eaf0446f10b6974efb
###################################################################
# How To Create Virtual Kubernetes Clusters With vcluster By loft #
# https://youtu.be/JqBjpvp268Y #
###################################################################
# Referenced videos:
# - Multi-Tenant Kubernetes Cluster With Capsule: https://youtu.be/H8bzEJN7fj8
@cybernetics
cybernetics / .gitconfig
Created July 13, 2022 03:38 — forked from natescode/.gitconfig
Git Aliases to make GIT easier to work with
[user]
email = your_email
name = your_username
[alias]
s = status
co = checkout
cob = checkout -b
feat = "!f(){ git cob feature/${1}; };f"
# Return the default branch for the repo i.e. master or main
default = !git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'
@cybernetics
cybernetics / github.bash
Created July 13, 2022 03:37 — forked from igrigorik/github.bash
Open GitHub URL for current directory/repo...
alias gh="open \`git remote -v | grep [email protected] | grep fetch | head -1 | cut -f2 | cut -d' ' -f1 | sed -e's/:/\//' -e 's/git@/http:\/\//'\`"
@cybernetics
cybernetics / README.md
Created January 26, 2022 16:57 — forked from odytrice/README.md
Kubectx, Kubens for Windows (Powershell)