Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Mohan Balasundaram tuxfight3r

🏠
Working from home
Block or report user

Report or block tuxfight3r

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tuxfight3r
tuxfight3r / sprinboot.java
Created Feb 17, 2020
sample springboot application
View sprinboot.java
//$ cat Application.java
package hello;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.boot.context.embedded.LocalServerPort;
import java.net.InetAddress;
import java.net.UnknownHostException;
View decrypt_saml_response.py
#!/usr/bin/env python
# Prereq: PyCrypto
# Validation: https://www.samltool.com/decrypt.php
# Usage: ./decrypt_saml_response.py --key PRIVATE_KEY --pretty-print RESPONSE_XML
import sys
import optparse
import base64
@tuxfight3r
tuxfight3r / notes.md
Created Jan 29, 2020
arm cli dependency list
View notes.md
[-0-(mohan@xpsbox) ~/arm (⎈ |minikube:default)|(master)]
$ go list -f '{{ join .Deps "\n" }}'
bufio
bytes
compress/flate
compress/gzip
compress/lzw
container/list
context
@tuxfight3r
tuxfight3r / notes.md
Last active Feb 4, 2020
amory cli dinghyfile render notes
View notes.md

dinghyfile

#$ cat dinghyfile 
{
  "application": "yourspinnakerapplicationname",
  "pipelines": [
    {
      "application": "yourspinnakerapplicationname",
      "keepWaitingPipelines": false,
@tuxfight3r
tuxfight3r / readme.md
Created Dec 4, 2019
curl as an ldap client
View readme.md

Use curl as an LDAP client

curl "ldap://localhost:1389/dc=example,dc=com?homephone?sub?cn=*amar" \

     -u "cn=directory manager"
Enter host password for user 'cn=directory manager':
DN: uid=mathieu,ou=People,dc=example,dc=com
    homephone: +1 225 216 5900
View format.json.bookmarklet.js
javascript:!function(){var n,e,r,i;n=window,e=document.body,r=JSON.parse,i=JSON.stringify,n.isf||(e.innerHTML="<pre>"+i(r(e.innerText),null,4).replace(/\"(.*)[^\:]\:/g,'<span style="color:#9C3636">$1&colon;</span>')+"</pre>",n.isf=!0)}();
//usage:
//save as bookmark and click it whenever you open a json response in a browser tab/window
@tuxfight3r
tuxfight3r / 01.gluster_splitbrain_notes.md
Last active Jul 24, 2019
gluster split brain scenario troubleshooting
View 01.gluster_splitbrain_notes.md

resolving gfid mismatch

$ gluster vol heal volume_name info

Brick 10.140.99.14:/data/lv_gv0/brick
/docker/registry/v2/repositories/tom-test/toppages/_uploads/d8ec7ebe-3013-4378-98a8-b0f0fa1cf719/startedat
Status: Connected
Number of entries: 1

$ cd /data/lv_gv0/brick
View PIR_Template.md

PIR - INC012345

DATE: dd/mm/yyyy
SUMMARY

Describe what happened

IMPACT

Describe about the customer impact

  • item 1
@tuxfight3r
tuxfight3r / spinnaker.tf
Created May 17, 2019 — forked from hareku/spinnaker.tf
Spinnaker + AWS Terraform
View spinnaker.tf
#####################################
# Namespace: Spinnaker
#####################################
resource "kubernetes_namespace" "spinnaker" {
metadata {
name = "spinnaker"
}
}
#####################################
@tuxfight3r
tuxfight3r / rhsm.md
Created May 10, 2019
rhel subscription manager notes
View rhsm.md

rhel rhsm commands

# get the status of the node
subscription-manager status

# list the subscriptions attached
subscription-manager list
subscription-manager list --available
subscription-manager list --consumed
You can’t perform that action at this time.