Skip to content

Instantly share code, notes, and snippets.

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

Rakibul Islam raykibul

🏠
Working from home
View GitHub Profile
@raykibul
raykibul / reop.md
Last active March 12, 2026 23:20
move a repo to a mono repo maintaining git commit history

Seamlessly Migrate Your GitHub Repository with Full Commit History to a Monorepo

Migrating a standalone GitHub repository into a larger monorepo while preserving the invaluable commit history is a common challenge for development teams. This process allows for better code sharing, simplified dependency management, and streamlined builds.

The most effective and recommended method involves using the powerful git filter-repo tool, followed by a strategic merge into the destination monorepo.


Step-by-Step Migration Guide

[
{
"key": "shift+alt+cmd+d",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "space e",
"command": "workbench.action.toggleSidebarVisibility"
},
@raykibul
raykibul / git config.txt
Created February 20, 2024 06:17
My personal git config..
git conifg --global alias.branchs "git branch --sort=-committerdate --column"
@raykibul
raykibul / command line
Created December 9, 2023 15:49
create certbot mannual certificate
sudo certbot certonly \
--manual \
--preferred-challenges=dns \
--email youremail@gmail.com \
--server https://acme-v02.api.letsencrypt.org/directory \
--work-dir=. --config-dir=. --logs-dir=. \
--agree-tos \
-d your-domain.com
@raykibul
raykibul / step by step
Last active July 4, 2021 07:01
How to host django applicaiton on shared server
1. Create an python app in your cpanel , with the passenger logs and your folder name
2. copy the command provided after you created the python app
source /home/raykzpwp/virtualenv/telecom.raykibul.com/3.8/bin/activate && cd /home/raykzpwp/telecom.raykibul.com
3. go to your terminal on cpanel
4. paste the source command you copied
5. now install django using pip install django command
6. create new project using django-admin startproject projectname .
7. now replace your main wsgi file , replace with "from projectname.wsgi import application"
8. now add your domain name with www and without www in allowed host
9. add media , asset and static files directories
<?php
session_start();
require_once 'autoload.php';
$user = Xss::xssClean(Input::get('user'));
$key = Xss::xssClean(Input::get('key'));
if(!isset($user) || empty($user)){
echo 'ERROR : INVALID REQUEST';
exit();
@raykibul
raykibul / index.js
Created March 9, 2020 20:10
This is dialogflow inline editor code for firebase realtime database
'use strict';
const functions = require('firebase-functions');
const {WebhookClient} = require('dialogflow-fulfillment');
const {Card, Suggestion} = require('dialogflow-fulfillment');
const admin= require ('firebase-admin');
@raykibul
raykibul / MySingleton.java
Created December 22, 2019 08:08
Volley Library Singleton class .
import android.content.Context;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
public class MySingleton {
private static MySingleton mInstance;
private RequestQueue requestQueue;
private static Context nCtx;
@raykibul
raykibul / CallNotification.java
Last active August 5, 2019 17:39
android Create Notification
import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;
@raykibul
raykibul / ROOM DEPENDENCY
Created May 25, 2019 13:27
ROOM DATABASE TUTORIAL DEPENDENCY
implementation "android.arch.persistence.room:runtime:1.1.1"
annotationProcessor "android.arch.persistence.room:compiler:1.1.1"
androidTestImplementation "android.arch.persistence.room:testing:1.1.1"
implementation "android.arch.lifecycle:extensions:1.1.1"
annotationProcessor "android.arch.lifecycle:compiler:1.1.1"
implementation "android.arch.lifecycle:viewmodel:1.1.1"