Skip to content

Instantly share code, notes, and snippets.

View jindalAnuj's full-sized avatar
🎯
Focusing

Anuj Jindal jindalAnuj

🎯
Focusing
View GitHub Profile
@jindalAnuj
jindalAnuj / README-Template.md
Created April 14, 2024 08:49 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@jindalAnuj
jindalAnuj / list-apps.sh
Last active January 23, 2023 13:39
Download brew and setup all applications on mac
#!/bin/bash
# File to save the list of applications
app_list="./installed_apps.txt"
# Create file to save the list of applications
touch $app_list
# Extract the list of applications
ls /Applications > $app_list
@jindalAnuj
jindalAnuj / cidr_masking.md
Created August 31, 2020 06:38
Cidr Masking

Ip_address/32 means 1 ip address You should use it for your refering you own ip or single ip eg 103.211.13.37/32

Range of ip can be calculated as - ip_address/range_number (x) = 32- range_number Total number of ip address = 2^x

@jindalAnuj
jindalAnuj / .env
Created December 2, 2019 18:04
sample .env file for time save
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
@jindalAnuj
jindalAnuj / main.dart
Last active March 17, 2019 11:01
Concept of List StateUp in Dart Similar to adding Listiner in Android
import 'package:flutter/material.dart';
import './product_manager.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@jindalAnuj
jindalAnuj / GetWeekDayName.java
Created January 5, 2019 15:25 — forked from javamultiplex/GetWeekDayName.java
How to get Week Day from given Date in Java
package com.javamultiplex.datetime;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;
/**
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="md_red50">#ffffebee</color>
<color name="md_red100">#ffffcdd2</color>
<color name="md_red200">#ffef9a9a</color>
<color name="md_red300">#ffe57373</color>
<color name="md_red400">#ffef5350</color>
<color name="md_red500">#fff44336</color>
<color name="md_red600">#ffe53935</color>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>
@jindalAnuj
jindalAnuj / README.md
Created June 26, 2018 10:58 — forked from Remiii/README.md
How to delete Vault (AWS Glacier)

How to delete Vault (AWS Glacier)

This Gist give some tips in order to remove AWS Glacier Vault with AWS CLI (ie. https://aws.amazon.com/en/cli/).

Step 1 / Retrive inventory

$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --vault-name YOUR_VAULT_NAME --account-id YOUR_ACCOUNT_ID --region YOUR_REGION