Skip to content

Instantly share code, notes, and snippets.

View maisnamraju's full-sized avatar

Maisnam Raju Singh maisnamraju

View GitHub Profile
@maisnamraju
maisnamraju / multiple_ssh_setting.md
Created March 14, 2022 15:04 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@maisnamraju
maisnamraju / .block
Last active January 5, 2022 01:46 — forked from tlfrd/.block
Bubble Chart
license: mit
@maisnamraju
maisnamraju / .gitlab-ci.yml
Created November 25, 2021 14:13 — forked from zuffik/.gitlab-ci.yml
Gitlab CI config for elastic beanstalk and nestjs app
image: node:10
stages:
- build
- test
- deploy
build:
stage: build
cache:
[
{
"name":"अहमदनगर",
"tahasil" : [ "अकोले", "जामखेड", "कर्जत", "कोपरगाव", "नगर", "नेवासा", "पारनेर", "पाथर्डी", "राहाता", "राहुरी", "संगमनेर", "शेवगांव", "श्रीगोंदा", "श्रीरामपूर" ]
},
{
"name":"अकोला",
[
{
"name":"Ahmednagar",
"tahasil" : [ "Akola", "Jamkhed", "Karjat", "Kopargaon", "Nagar", "Nevasa", "Parner", "Pathardi", "Rahta", "Rahuri", "Sangamner", "Shevgaon", "Shrigonda", "Shrirampur" ]
},
{
"name":"Akola",
"tahasil":[ "Akola", "Akot", "Balapur", "Barshitakli", "Murtijapur", "Patur", "Telhara" ]
@maisnamraju
maisnamraju / client.js
Last active February 25, 2020 10:03 — forked from agrueneberg/client.html
HMAC-SHA256 sample code.
var http, crypto, sharedSecret, query, signature;
http = require("http");
crypto = require("crypto");
sharedSecret = "super-secret";
body = { "test": "123" };
signature = crypto.createHmac("sha256", sharedSecret).update(body).digest("hex");
http.post({
@maisnamraju
maisnamraju / create-ssl-for-localhost
Last active September 24, 2019 04:44 — forked from itsMattShull/create-ssl-for-localhost
Command to create a key.pem and cert.pem for localhost for ubuntu
openssl req \
-newkey rsa:2048 \
-x509 \
-nodes \
-keyout key.pem \
-new \
-out cert.pem \
-subj /CN=localhost \
-reqexts SAN \
-extensions SAN \
@maisnamraju
maisnamraju / main.go
Created June 27, 2019 10:53 — forked from creack/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"strconv"
@maisnamraju
maisnamraju / go-soap-wsdl-using-http.go
Created June 17, 2019 07:53 — forked from novalagung/go-soap-wsdl-using-http.go
Example implementation of making SOAP call on WSDL web service using go with only net/http package. The full tutorial avaiable on https://medium.com/eaciit-engineering/soap-wsdl-request-in-go-language-3861cfb5949e
package main
import (
"bytes"
"crypto/tls"
"encoding/base64"
"encoding/xml"
"fmt"
"log"
"net/http"
@maisnamraju
maisnamraju / how-to-set-up-stress-free-ssl-on-os-x.md
Created February 27, 2018 01:17 — forked from jed/how-to-set-up-stress-free-ssl-on-os-x.md
How to set up stress-free SSL on an OS X development machine

How to set up stress-free SSL on an OS X development machine

One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.

Most workflows make the following compromises:

  • Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the secure flag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection.

  • Use production SSL certificates locally. This is annoying