Skip to content

Instantly share code, notes, and snippets.

View vestigegroup's full-sized avatar
🏠
Working from home

Harish Vagjiyani vestigegroup

🏠
Working from home
View GitHub Profile
@vestigegroup
vestigegroup / AzureCheatSheet.md
Created May 24, 2022 05:47 — forked from plasx/AzureCheatSheet.md
Azure Cheat Sheet

Listing Images via Azure CLI

az vm image list --output table

Deleting certain resoruces in a resource group

List resource groups in a subscription

az resource list
/// <reference path="Emp.js" />
var App = angular.module('MyApp', ['ngRoute']);//already disscused about ngRoute and angular.module
App.controller('EmpController', function ($scope, EmployeeService) {// controller with two parameters $scope and serive Which i have little bit discused about it in ever first angualrjs tutorial
$scope.isFormValid = false;
$scope.message = null;
$scope.employee = null;
EmployeeService.GetEmployeeList().then(function (d) { //Call the GetEmployeeList() function in service for getting all Employee Record
$scope.employee = d.data;
},
function () {
@vestigegroup
vestigegroup / index.html
Created December 17, 2020 10:25 — forked from shalotelli/index.html
Creating Web Components in JavaScript (ES6) to use in your Angular, React and Ember projects
<!DOCTYPE html>
<html>
<head>
<title>Web Components</title>
<style>
body {
font-family: 'Helvetica Neue';
}
</style>
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""This module's docstring summary line.
This is a multi-line docstring. Paragraphs are separated with blank lines.
Lines conform to 79-column limit.
Module and packages names should be short, lower_case_with_underscores.
Notice that this in not PEP8-cheatsheet.py

Interview Questions

MongoDB

Q1: Explain what is MongoDB? ☆

Answer: MongoDB is an open-source document database that provides high performance, high availability, and automatic scaling. It's Key Features are:

  • Document Oriented and NoSQL database.
@vestigegroup
vestigegroup / s3-upload-via-link.php
Created May 7, 2020 11:58 — forked from keithweaver/s3-upload-via-link.php
Upload image using link to AWS S3 with PHP
@vestigegroup
vestigegroup / s3-upload-via-form.php
Created May 7, 2020 11:58 — forked from keithweaver/s3-upload-via-form.php
Upload image using form submission to AWS S3 with PHP
<?php
// This file demonstrates file upload to an S3 bucket. This is for using file upload via a
// file compared to just having the link. If you are doing it via link, refer to this:
// https://gist.github.com/keithweaver/08c1ab13b0cc47d0b8528f4bc318b49a
//
// You must setup your bucket to have the proper permissions. To learn how to do this
// refer to:
// https://github.com/keithweaver/python-aws-s3
// https://www.youtube.com/watch?v=v33Kl-Kx30o
@vestigegroup
vestigegroup / face_detection.py
Created April 3, 2020 13:12 — forked from pknowledge/face_detection.py
Face Detection in using OpenCV & Python with Face Detection using Haar Cascades
import cv2
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
# Read the input image
#img = cv2.imread('test.png')
cap = cv2.VideoCapture('test.mp4')
while cap.isOpened():
_, img = cap.read()
let obj1 = {
a: "this",
b: "is",
c: "an",
d: "object",
e: "literal"
};
let obj2 = new Object(["object", "contructor", "one"]); // new Array("", "", "")
let obj3 = new Object({ an: "object", literal: "again" });
let obj4 = new Object(obj1.a); // new Object("some string") new String("asdfas")
@vestigegroup
vestigegroup / deployment-tool-ansible-puppet-chef-salt.md
Created January 10, 2020 11:22 — forked from jaceklaskowski/deployment-tool-ansible-puppet-chef-salt.md
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution