Skip to content

Instantly share code, notes, and snippets.

View HarshaSuranjith's full-sized avatar
🎯
Focusing

phx HarshaSuranjith

🎯
Focusing
View GitHub Profile
{
"public_identifier": "andrew-huberman",
"profile_pic_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/andrew-huberman/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20241026%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20241026T134719Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=b56d2c55f4931de681ed384ee4c304ad0f6c190f4f1f5ff6b18061836f310ee7",
"background_cover_image_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/andrew-huberman/cover?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20241026%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20241026T134719Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=6b82e0e16ce26f1c5b502bae99111db7449d368675c0d85eb9b7afa02922ebf9",
"first_name": "Andrew",
"last_name": "Huberman",
"full_name": "Andrew Huberman",
"follower_count": 1593212,
"occupation": "Associate Professor of Neurobiology and Ophthalmology & Lab Director at Stanford U
pipeline {
agent any
environment {
SSH_CREDENTIALS = 'your-ssh-credentials-id' // The ID of the SSH credentials in Jenkins
REMOTE_USER = 'your-remote-user' // The user on the remote server
REMOTE_HOST = 'your-remote-host' // The IP or hostname of the remote server
REMOTE_DIR = '/path/to/your/app' // The directory on the remote server where the app will be deployed
}

Tech Talk Topics

Frontend Development (Priority)

  1. CSS/Sass

    • Introduction to CSS/Sass
    • Advanced CSS Techniques
    • Building Responsive Layouts with CSS Grid and Flexbox
  2. ES6

  • Overview of ES6 Features

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