Skip to content

Instantly share code, notes, and snippets.

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

Nihal Maskey maskeynihal

🏠
Working from home
View GitHub Profile
#!/usr/bin/env bash
# ─────────────────────────────────────────────────────────────────────────────
# detect-mini-shai-hulud.sh
#
# Scans every git project under the CWD across ALL branches (local + already
# fetched remote-tracking branches) for npm packages compromised in the
# "Mini Shai-Hulud" supply-chain attack (npm ecosystem, 2026).
#
# For every watched package found in any lockfile on any branch, the script
# reports the project, branch, package, version, and whether that version is
This file has been truncated, but you can view the full file.
Developer Guide
# Amazon DocumentDB
Copyright © 2025 Amazon Web Services, Inc. and/or its affiliates. All rights reserved.
**Amazon DocumentDB: Developer Guide**
@maskeynihal
maskeynihal / SSH into docker with root user.md
Last active May 11, 2024 19:37
SSH into docker with root user.

SSH into docker with root user

Tools

  • docker

OS

  • ubuntu

Steps

@maskeynihal
maskeynihal / lastDayOfMonthEvent.ics
Created July 1, 2023 06:47
Adding event for the last date of the month in google calendar
BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
RRULE:FREQ=MONTHLY;INTERVAL=1;BYSETPOS=-1;BYDAY=SU,MO,TU,WE,TH,FR,SA
SUMMARY:Event for the end of the month
DTSTART;VALUE=DATE:20230631
SEQUENCE:0
DESCRIPTION:Write description of the event here
END:VEVENT
END:VCALENDAR
@maskeynihal
maskeynihal / serverless.yml
Last active July 17, 2021 17:33
Default serverless file by bref
service: laravel
provider:
name: aws
# The AWS region in which to deploy (us-east-1 is the default)
region: us-east-1
# The stage of the application, e.g. dev, production, staging… ('dev' is the default)
stage: dev
runtime: provided.al2
@maskeynihal
maskeynihal / flat.js
Last active May 26, 2021 18:48
If array has single item, then treat it like primitive data type or a single object
const util = require("util");
const data = {
test: [
{
address: {
street: ["kathmandu"],
ward: 30,
mainStreet: "SK",
fullAddress: {