Skip to content

Instantly share code, notes, and snippets.

View jmrashed's full-sized avatar

Rashed Zaman jmrashed

View GitHub Profile
@jmrashed
jmrashed / gist:9ea830be203b755406776d1fbe77a4cf
Last active October 7, 2024 10:51
Installing Oh My Zsh with Command Auto-Suggestions on Ubuntu 20.04

Installing Oh My Zsh with Command Auto-Suggestions on Ubuntu 20.04

Follow these steps to install Oh My Zsh with auto-suggestions and syntax highlighting on Ubuntu 20.04.

Step 1: Update Package Lists

Before starting, update your package lists:

sudo apt update
@jmrashed
jmrashed / gist:51eacae2095eca0bfa4769f1b8add20c
Created July 28, 2023 00:08
Install Fonts in Ubuntu Using Terminal
Prepare the Font Files:
Before proceeding, make sure you have all the font files (in .ttf or .otf format) you want to install. Place all these font files in a single directory, for example, create a folder named "MyFonts" and place the font files inside it.
Open Terminal:
Press `Ctrl + Alt + T` to open a terminal window.
Navigate to the Font Directory:
Use the cd command to navigate to the directory where you placed all the font files. For example, if you placed them in the "MyFonts" folder under your home directory, use the following command:
`cd ~/MyFonts`
@jmrashed
jmrashed / file-upload.php
Created August 16, 2017 04:46
File/ Image Upload in Laravel
<?php
public function uploadImage($fileInputField, $uploadFolder, $fileName = '', $create_thumb = false, $photoIndex = false) {
$uploadedFileName = '';
if (Input::file($fileInputField)) {
$fileName = preg_replace('/\s*/', '', $fileName);
@jmrashed
jmrashed / NumberFunction.php
Last active August 16, 2017 04:41
Number convert english to bangla
<?php
function bangla2englishNumber ($number){
$search_array= array("১", "২", "৩", "৪", "৫", "৬", "৭", "৮", "৯", "০");
$replace_array= array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0");
$en_number = str_replace($search_array, $replace_array, $number);
return $en_number;
}