openssl req -x509 -sha256 -nodes -days 3650 -newkey rsa:2048 -keyout serverID.key -out serverID.crt
https://www.sslshopper.com/article-most-common-openssl-commands.html
function (_i) { | |
var i = Math.pow(10, _i - 1); | |
var j = Math.pow(10, _i) - 1; | |
return ((Math.floor(Math.random() * (j - i + 1)) + i)); | |
}; |
openssl req -x509 -sha256 -nodes -days 3650 -newkey rsa:2048 -keyout serverID.key -out serverID.crt
https://www.sslshopper.com/article-most-common-openssl-commands.html
touch README.md
git add .
git commit -m "Init"
git push
git branch dev
git checkout dev
git merge master
git push --set-upstream origin dev
alias ..='cd ..'
alias c='clear'
alias process='ps -eaf | grep '
alias q='exit'
alias l='ls'
alias ll='ls -l'
alias ss='source ~/.bash_aliases'
alias path='echo -e ${PATH//:/\\n}'
alias ports='netstat -tulanp tcp'
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: testpod | |
namespace: appveen | |
spec: | |
containers: | |
- name: test-container | |
image: k8s.gcr.io/busybox | |
args: [/bin/sh, -c, 'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 1; done'] |
const MongoClient = require('mongodb').MongoClient; | |
const assert = require('assert'); | |
var url = 'mongodb://localhost:27017'; | |
const dbName = 'test'; | |
const client = new MongoClient(url, { useUnifiedTopology: true }); | |
client.connect(function(err) { |
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"go.mongodb.org/mongo-driver/mongo" | |
"go.mongodb.org/mongo-driver/mongo/options" | |
"go.mongodb.org/mongo-driver/x/bsonx" |
{ | |
"name": "String", | |
"creditCardNumber": "String", | |
"expiryDate": "Date", | |
"cvv": "String", | |
"bank": "String", | |
"billingAddtess": { | |
"line1": "String", | |
"line2": "String", | |
"state": "String", |
touch app.js | |
npm init | |
npm install --save express |
const URLS = { | |
states: "https://cdn-api.co-vin.in/api/v2/admin/location/states", | |
vaccinationCenters: "https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict" | |
} | |
async function api(url) { | |
const options = { | |
url: url, | |
method: "GET", | |
headers: { |