Skip to content

Instantly share code, notes, and snippets.

View singhabhinav's full-sized avatar

Abhinav Singh singhabhinav

  • Bangalore, India
View GitHub Profile
@singhabhinav
singhabhinav / gist:132b8196abac026b43fa
Last active April 14, 2023 12:44
Install SSL certificate in Nginx (Using .crt & .ca-bundle certificate files)
Step 1 - Create .crt file
cat domainname.crt domainname.ca-bundle > domainname-ssl-bundle.crt
Step 2-
Add lines for ssl_certificate in nginx configuration
server {
listen 80 default_server;
@singhabhinav
singhabhinav / ambari_server_backup.sh
Last active May 18, 2016 11:55
Take Ambari server backup and move to S3
# This script will take backup of ambari server and move to S3
# Make sure you have s3cmd installed and configured https://github.com/s3tools/s3cmd
# Customize it according to your need
#!/bin/bash
USERNAME=$1
export PGPASSWORD=$2
DB=ambari