Skip to content

Instantly share code, notes, and snippets.

View maacpiash's full-sized avatar
🕶️
using System.Reflection;

Ahad Chowdhury maacpiash

🕶️
using System.Reflection;
View GitHub Profile

Software License

Copyright (c) 2025 Mohammad Abdul Ahad Chowdhury

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@maacpiash
maacpiash / index.js
Last active October 2, 2024 23:18
Download all HD wallpapers from MKBHD's panels.art website
import { createWriteStream } from 'fs'
import { Readable } from 'stream'
import dump from './media-1a-i-p~s.json' with { type: 'json' }
// JSON dump link: https://storage.googleapis.com/panels-api/data/20240916/media-1a-i-p~s
const urls = []
const KEY = 'dhd'
for (let id in dump.data) {
@maacpiash
maacpiash / reddit_spark.py
Created December 15, 2023 04:37
Spark-Reddit-App
from pyspark import SparkContext
from pyspark.streaming import StreamingContext
import json
def process_rdd(rdd):
for record in rdd.collect():
print(record)
sc = SparkContext('local[2]', 'RedditStreamApp')
@maacpiash
maacpiash / README.md
Last active February 21, 2024 02:39
PiHole Adlists

PiHole block lists

Lists for:

  • ads
  • trackers
  • telemetry
  • malware
  • ransomware
  • phishing
  • crypto
@maacpiash
maacpiash / aot-Program.cs
Last active September 28, 2023 04:04
ASP.NET Core 8 RC 1 vs Bun 1.0.7 (Elysia) performance
using System.Text.Json.Serialization;
var builder = WebApplication.CreateSlimBuilder(args);
builder.Services.ConfigureHttpJsonOptions(options =>
{
options.SerializerOptions.TypeInfoResolverChain.Insert(0, AppJsonSerializerContext.Default);
});
var app = builder.Build();
import { children, JSX, mergeProps } from 'solid-js'
export interface ButtonProps {
bgColor?: string
hoverColor?: string
activeColor?: string
children: JSX.Element
}
export default function Button(props: ButtonProps) {

Keybase proof

I hereby claim:

  • I am maacpiash on github.
  • I am maacpiash (https://keybase.io/maacpiash) on keybase.
  • I have a public key ASCIvol0MMUpbspcRW02WDgC2isuRQcWOAUTh8zjHP5ICQo

To claim this, I am signing this object:

@maacpiash
maacpiash / README.md
Last active July 21, 2022 16:52
Neovim configuration

File structure of ~/.config/nvim:

.
├── coc-settings.json
├── init.lua
├── lua
│   ├── barb.lua
│   ├── keys.lua
│   ├── opts.lua
@maacpiash
maacpiash / App.js
Last active May 10, 2022 15:12
React mistakes
import { useEffect, useState } from 'react'
export default function App() {
const [title, setTitle] = useState({
firstTitle: 'Java',
secondTitle: 'Script',
renderCount: {
value: 0, // this will increase by 1 every time the button is clicked
comment: 'The count value preserves the count of the clicks.' // a constant. no change ever.
},
@maacpiash
maacpiash / enhancer-for-youtube.json
Last active November 12, 2022 04:14
Firefox Extensions
{
"version": "2.0.117.8",
"settings": {
"blur": 0,
"brightness": 100,
"contrast": 100,
"grayscale": 0,
"huerotate": 0,
"invert": 0,
"saturate": 100,