Skip to content

Instantly share code, notes, and snippets.

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

Hrithik Tiwari hrithikwins

🏠
Working from home
View GitHub Profile
@SahilDhingraa
SahilDhingraa / github-actions-docker-to-ec2.md
Last active August 9, 2024 18:51
This GitHub Actions workflow automates the process of building a Docker image and deploying it to an EC2 instance.

GitHub Actions CI/CD Workflow for Docker and EC2 Deployment

This GitHub Actions workflow automates the process of building a Docker image and deploying it to an EC2 instance. It consists of two main jobs: build-docker and run-on-ec2.

Workflow YAML

name: OneHealth CI/CD

on:
@rajasharma1603
rajasharma1603 / material.module.ts
Created April 11, 2020 15:14
One single module import file to import all Angular Material Modules.
// IMPORT ALL MATERIAL COMPONENTS
// #STEPS
// 1- Import this file as module in app.module.ts ==> import { MaterialModule } from './xyz/abc';
// 2- Initialize it in imports:[] array ==> imports:[MaterialModule]
import { NgModule } from '@angular/core';
// *************** FORM CONTROLS ***************
import {MatAutocompleteModule} from '@angular/material/autocomplete';
import {MatCheckboxModule} from '@angular/material/checkbox';
import {MatDatepickerModule} from '@angular/material/datepicker';
@theredhead
theredhead / Angular Material Module
Created June 27, 2019 07:58
Material Design Components module
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MatAutocompleteModule } from '@angular/material/autocomplete';
import { MatBadgeModule } from '@angular/material/badge';
import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
import { MatButtonModule } from '@angular/material/button';
import { MatButtonToggleModule } from '@angular/material/button-toggle';
import { MatCardModule } from '@angular/material/card';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatChipsModule } from '@angular/material/chips';