Skip to content

Instantly share code, notes, and snippets.

View ravibhure's full-sized avatar

Ravi ravibhure

View GitHub Profile
@ravibhure
ravibhure / extract_ff_password.md
Created October 30, 2017 07:36
List all passwords from Firefox database
  1. copy your mozilla firefox profile from %APPDATA%\Mozilla\Firefox\Profiles\*.default on Windows machine to any ubuntu

$ scp -P 2223 -r *.default [email protected]:/tmp/

  1. Follow the steps below to extract the password for users and sitename
$ cd /tmp/*.default
$ sudo apt-get -y install sqlite nss-passwords
@ravibhure
ravibhure / kitchen.yml
Created November 3, 2017 21:10
kitchen for windows
---
# https://discourse.chef.io/t/how-to-run-test-kitchen-on-an-existing-windows-server/11871/1
driver:
name: proxy
host: <fqdn>
reset_command: "exit 0"
port: 5985
username: <user>
password: <password>
@ravibhure
ravibhure / jenkins-home-git.sh
Created March 22, 2018 13:47 — forked from cenkalti/jenkins-home-git.sh
Backup Jenkins home periodicallly with git.
#!/bin/bash
# Setup
#
# - Create a new Jenkins Job
# - Mark "None" for Source Control Management
# - Select the "Build Periodically" build trigger
# - configure to run as frequently as you like
# - Add a new "Execute Shell" build step
# - Paste the contents of this file as the command
@ravibhure
ravibhure / ca.md
Created August 9, 2018 12:17 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

---
c1_packages:
- c1-templates-bundle
- c1-cre-api
@ravibhure
ravibhure / whois.conf
Created November 27, 2019 06:44 — forked from thde/whois.conf
/etc/whois.conf WHOIS records for nTLDs.
##
# WHOIS servers for new TLDs (http://www.iana.org/domains/root/db)
# Current as of 2017-12-10 UTC
##
\.aarp$ whois.nic.aarp
\.abarth$ whois.afilias-srs.net
\.abbott$ whois.afilias-srs.net
\.abbvie$ whois.afilias-srs.net
\.abc$ whois.nic.abc
@ravibhure
ravibhure / coronavirus.py
Created March 13, 2020 11:01
A python program to check the risk of the corona virus
#!/usr/bin/python3
# A python program to check the risk of the corona virus.
# This is not written by me, but found somewhere on social media
# Thanks to UNKNOWN coder :)
name = input('name: ')
age = int(input('age: '))
print('\ndo you have any of these symptomps?')
fever = int(input('fever (0= no, 1= yes): '))
cough = int(input('cough (0= no, 1= yes): '))
sob = int(input('shortness of breath (0= no, 1= yes): '))

Keybase proof

I hereby claim:

  • I am ravibhure on github.
  • I am ravibhure (https://keybase.io/ravibhure) on keybase.
  • I have a public key ASCE8Vdzk4uezYOmUnvJJQwTjJfbQqvOYl6Eze2GFI4hZAo

To claim this, I am signing this object:

@ravibhure
ravibhure / Jenkinsfile
Created June 18, 2020 14:42 — forked from richid/Jenkinsfile
Jenksfile declarative pipeline with parallel dynamic stages
def applications = env.APPLICATIONS.split(",").findAll { it }.collect { it.trim() }
def environment = env.ENVIRONMENT
def version = env.VERSION
def jobs = [:]
if (applications.size() < 1) {
error("ERROR: APPLICATIONS must be a comma-delimited list of applications to build")
}
for (int i = 0; i < applications.size(); i++) {
@ravibhure
ravibhure / AUTO_REGISTER_NAGIOS.md
Created June 27, 2020 06:30
How to use Nagios to monitor services running under AWS auto scaling group (ASG)

How to use Nagios to monitor services running under AWS auto scaling group (ASG)

What is expected from reader

The reader is expected to have basic knowledge about below technologies/concepts.

  • Nagios Core
  • AWS Auto Scaling Group (ASG)
  • PHP REST API
  • DevOps