Skip to content

Instantly share code, notes, and snippets.

View HarshaSuranjith's full-sized avatar
🎯
Focusing

phx HarshaSuranjith

🎯
Focusing
View GitHub Profile

Users Endpoints

  • Delete User
  • Update User (Including Lock and Other Attributes)
  • Read All Users
  • Read User by ID
  • Add User
  • Add Permissions to User
  • Add Roles to User
  • Remove Roles from User
using System;
using System.Collections.Generic;

namespace YourNamespace.Domain.Entities
{
    public class Organization
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
@HarshaSuranjith
HarshaSuranjith / inkspace-cheatsheet.md
Created October 1, 2023 09:20
Inkscape Keyboard & Mouse Operations Cheat Sheet

Inkscape Keyboard & Mouse Operations Cheat Sheet

Mouse Operations

  • Left Click: Select objects, points, or paths
  • Double Left Click: Enter group or text editing mode
  • Right Click: Context menu
  • Middle Click: Pan around the canvas
  • Scroll Wheel: Zoom in and out
  • Shift + Left Click: Add to selection

Azure AD Multi-Tenant Registration for .NET Core Web API (msal-dotnet-mt-api)

App Registration

  1. Navigate to Azure Portal > Azure Active Directory > App Registrations > New registration.
    • Name: msal-dotnet-mt-api
    • Supported account types: Accounts in any organizational directory.
    • Note down the Application (client) ID for later use.

API Permissions (Delegated)

@HarshaSuranjith
HarshaSuranjith / docker-ex.md
Last active August 28, 2023 05:47
Docker Basics Exercises

Docker Learning Path: Extensive Learning

Task 1: Introduction to Containers

Final Evaluation

To understand the basics of containers, we'll create a simple Java program that prints "Hello, Containers!" to the console. We'll then package this program into a Docker image.

Docker Image: extensive-learning-intro-containers

Test Script (test_intro_containers.sh):

@HarshaSuranjith
HarshaSuranjith / linux-usb-file-copy-fix.md
Created January 2, 2021 00:50 — forked from 2E0PGS/linux-usb-file-copy-fix.md
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local

name: fxcm
channels:
- defaults
dependencies:
- appnope=0.1.0
- bleach=2.1.2
- ca-certificates
- certifi=2018.4.16
- cycler=0.10.0
- dbus=1.12.2
@HarshaSuranjith
HarshaSuranjith / spring-mvc-snips.md
Created February 1, 2020 15:11
snippets for spring mvc xml config

dispatcher-servlet.xml