Skip to content

Instantly share code, notes, and snippets.

View mahendra150's full-sized avatar
❤️‍🔥
Hello Git user

Mahendra Chaudhari mahendra150

❤️‍🔥
Hello Git user
View GitHub Profile
@mahendra150
mahendra150 / IntegrationTest.java
Created February 9, 2024 05:27 — forked from aoudiamoncef/IntegrationTest.java
Spring Boot Custom Test Annotations
package com.maoudia;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Profile;
import org.springframework.test.context.TestPropertySource;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
@mahendra150
mahendra150 / dashboard_via_api.py
Created January 20, 2021 06:12 — forked from QuentinFra/dashboard_via_api.py
How to create a custom dashboard with the Datadog API
from dogapi import dog_http_api as api
##### Parameters #####
# Credentials
api.api_key = 'my_api_key'
api.application_key = 'my_application_key'
# Dashboard information
title = "Test Quentin via API"
@mahendra150
mahendra150 / dashboard_via_api.py
Created January 20, 2021 06:12 — forked from QuentinFra/dashboard_via_api.py
How to create a custom dashboard with the Datadog API
from dogapi import dog_http_api as api
##### Parameters #####
# Credentials
api.api_key = 'my_api_key'
api.application_key = 'my_application_key'
# Dashboard information
title = "Test Quentin via API"
@mahendra150
mahendra150 / generate-ssh-key.sh
Created May 16, 2020 20:01 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa
@mahendra150
mahendra150 / ansible-aws.md
Last active May 15, 2020 13:49 — forked from diegopacheco/ansible-aws.md
How to Install Ansible on Amazon Linux / CentOS? done...... simple step
sudo su
yum update
yum install -y git
cd /usr/local/src
yum -y install git python-jinja2 python-paramiko PyYAML make MySQL-python
git clone git://github.com/ansible/ansible.git
cd ansible
git submodule update --init --recursive
make install