Skip to content

Instantly share code, notes, and snippets.

View AshikNesin's full-sized avatar

Ashik Nesin AshikNesin

View GitHub Profile
@AshikNesin
AshikNesin / README.md
Created July 27, 2025 17:09 — forked from AndrewAltimit/!README.md
Claude Code and Gemini CLI Integration

Gemini CLI Integration for Claude Code MCP Server

A complete setup guide for integrating Google's Gemini CLI with Claude Code through an MCP (Model Context Protocol) server. This provides automatic second opinion consultation when Claude expresses uncertainty or encounters complex technical decisions.

Usage

@AshikNesin
AshikNesin / droid-system-prompt
Created October 3, 2025 17:22
Factory.ai - Droid System prompt by Pliny the Liberator 🐉󠅫󠄼󠄿󠅆󠄵󠄐󠅀󠄼󠄹󠄾󠅉󠅭
<Role>
You are Droid, an AI software engineering agent built by Factory (https://factory.ai).
You are the best engineer in the world. You write code that is clean, efficient, and easy to understand. You are a master of your craft and can solve any problem with ease. You are a true artist in the world of programming.
The current date is Sunday, September 28, 2025.
The user you are assisting is named Elder Plinius.
</Role>
@AshikNesin
AshikNesin / claude-code-prompts.js
Created March 5, 2025 16:42 — forked from transitive-bullshit/claude-code-prompts.js
Unminified prompts and tool definitions for Claude Code
// Claude Code is a Beta product per Anthropic's Commercial Terms of Service.
// By using Claude Code, you agree that all code acceptance or rejection decisions you make,
// and the associated conversations in context, constitute Feedback under Anthropic's Commercial Terms,
// and may be used to improve Anthropic's products, including training models.
// You are responsible for reviewing any code suggestions before use.
// (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).
// Version: 0.2.9
@AshikNesin
AshikNesin / base64-form-data.js
Last active February 22, 2025 17:30
Base64 image to multipart/form-data
const base64 = 'data:image/png;base64,....' // Place your base64 url here.
fetch(base64)
.then(res => res.blob())
.then(blob => {
const fd = new FormData();
const file = new File([blob], "filename.jpeg");
fd.append('image', file)
// Let's upload the file
// Don't set contentType manually → https://github.com/github/fetch/issues/505#issuecomment-293064470
@AshikNesin
AshikNesin / package.json
Created February 14, 2025 17:24
Sitemap Broken or Redirect Link Checker
{
"name": "sitemap-checker",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
@AshikNesin
AshikNesin / vercel-add-custom-domain.js
Created January 16, 2025 05:29
Add custom domain to a vercel project using Vercel API
import axios from "axios";
const AUTH_TOKEN = process.env.VERCEL_AUTH_TOKEN;
const projectId = process.env.PROJECT_ID;
export const addDomainToProject = async (domain) => {
const config = {
headers: {
Authorization: `Bearer ${AUTH_TOKEN}`,
},
@AshikNesin
AshikNesin / react-file-upload.js
Created February 2, 2017 06:46
Simple React File Upload
import React from 'react'
import axios, { post } from 'axios';
class SimpleReactFileUpload extends React.Component {
constructor(props) {
super(props);
this.state ={
file:null
}
@AshikNesin
AshikNesin / github-url.md
Last active November 13, 2024 16:36
Regular Expression to check GitHub Profile URL
/^(https?:\/\/)?(www\.)?github\.com\/[a-zA-Z0-9_]{1,25}$/igm

@AshikNesin
AshikNesin / rails-skip.md
Created September 10, 2015 11:28
Rails generator controller without tests, assets & helpers

Configuring application.rb

To turn off without having to add options:

# application.rb
config.generators.assets = false
config.generators.helper = false

While Generating Controller

@AshikNesin
AshikNesin / export.js
Created April 20, 2022 19:19 — forked from katoen/export.js
Export Wallet by BudgetBakers records to JSON
// Source for Jake Archibald's idb https://github.com/jakearchibald/idb/blob/v3.0.2/build/idb.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.idb = {}));
}(this, function (exports) { 'use strict';
function toArray(arr) {
return Array.prototype.slice.call(arr);
}