Skip to content

Instantly share code, notes, and snippets.

View emranio's full-sized avatar
🎯
Not Available

Emran emranio

🎯
Not Available
  • Sigmative
  • Bogura, Bangladesh
View GitHub Profile
@emranio
emranio / gist:76b03dd85659871c0c19d7b1e19be1aa
Created December 10, 2025 05:22
psd placeholder usage
const psd = new processPSD('path-to-psd-template-file') // it's a js class
psd.replaceTexts({
"first_name": "Jhon Doe",
"age": "54"
}).replaceImages({
"photo": "path-to-replace-image",
"logo": "path-to-replace-image"
}).saveAs("path-to-save-dir-with-filename") // output dir: /User/ubuntu/output and filename: 875.psd, then this value will be /User/ubuntu/output/875.psd
// all paths are physical location.
@emranio
emranio / reset-git.sh
Last active February 25, 2026 06:54
reset git history
#!/bin/bash
set -e
# Ensure we're on main branch
git checkout main
# Delete all history locally
rm -rf .git
@emranio
emranio / vscode extentions
Created October 10, 2024 08:42
vscode extentions
code --list-extensions 2:39:49 PM
aaron-bond.better-comments
alefragnani.bookmarks
alefragnani.project-manager
be5invis.vscode-custom-css
bmewburn.vscode-intelephense-client
bodil.file-browser
bradlc.vscode-tailwindcss
davidf.untabify
devonray.snippet
- admin API:
- /update-options
{
"instruction": "",
"goal": "",
"conversationScopes": ""
"invalidQueryMgs": "",
"needAssistanceQueryMgs": "",
"siteId": "uniqueId"
}
@emranio
emranio / vscode-extension-list.txt
Last active December 18, 2023 17:24
VSCode Extension List
aaron-bond.better-comments@3.0.2
alefragnani.Bookmarks@13.4.2
alefragnani.project-manager@12.7.0
bmewburn.vscode-intelephense-client@1.10.2
devonray.snippet@1.1.0
discountry.react-redux-react-router-snippets@0.4.29
drcika.apc-extension@0.3.6
eamodio.gitlens@14.6.1
file-icons.file-icons@1.1.0
formulahendry.auto-close-tag@0.5.14