Skip to content

Instantly share code, notes, and snippets.

View kowalski7cc's full-sized avatar
🐲
Rawr! I'm a dragon!

Kowalski Dragon kowalski7cc

🐲
Rawr! I'm a dragon!
View GitHub Profile
@kowalski7cc
kowalski7cc / jsonpath.py
Last active February 26, 2024 09:02
Check one or more cluster operator condition status with Python
#!/usr/bin/env python3
import json
import os
from jsonpath_ng import JSONPath
from jsonpath_ng.ext import parse
CO_CMD = "oc get co -o json"
QUERY = "items[?(@.status.conditions[?(@.type=='Degraded' & @.status=='True')])]"
@kowalski7cc
kowalski7cc / README.md
Created February 5, 2019 15:40 — forked from BoGnY/README.md
[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)

Requirements

  • Install GPG4Win: this software is a bundle with latest version of GnuPG v2, Kleopatra v3 certificate manager, GNU Privacy Assistant (GPA) v0.9 which is a GUI that uses GTK+, GpgOL and GpgEX that are respectively an extension for MS Outlook and an extension for Windows Explorer shell
  • Install Git for Windows: so you can have a *nix based shell, this software is a bundle with latest version of Git which use MINGW environment, a Git bash shell, a Git GUI and an extension for Windows Explorer shell (Make sure your local version of Git is at least 2.0, otherwise Git don't have support for automatically sign your commits)
  • Verify
@kowalski7cc
kowalski7cc / paste.js
Created February 5, 2019 15:39
Don’t F*ck with Paste
var allowPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('paste', allowPaste, true);
@kowalski7cc
kowalski7cc / LICENSE
Created December 10, 2018 16:12
PowerShell Bash prompt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@kowalski7cc
kowalski7cc / keybase.md
Last active January 21, 2019 19:49
Keybase proof

Keybase proof

I hereby claim:

  • I am kowalski7cc on github.
  • I am kowalski7cc (https://keybase.io/kowalski7cc) on keybase.
  • I have a public key ASCpLDL0b4bl-wwAQrmdi1Ml1GrkJlufYoYK0OEwaP2BQwo

To claim this, I am signing this object:

@kowalski7cc
kowalski7cc / 0_reuse_code.js
Created March 12, 2014 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console