Skip to content

Instantly share code, notes, and snippets.

View moshiurse's full-sized avatar
🎯
Focusing

Moshiur Rahman moshiurse

🎯
Focusing
View GitHub Profile
@moshiurse
moshiurse / app.js
Created March 29, 2020 09:21
Excel export With Kendo Grid in angularjs
$scope.loadGridData = function(url) {
$scope.mainGridOptions = {
dataSource: {
transport: {
read: {
url: url,
dataType: "json"
}
},
pageSize: __grid_pagesize,
@moshiurse
moshiurse / contact.html
Created April 26, 2020 18:32
Php get mail
<form class="row contact_form" action="contact_process.php" method="post" id="contactForm" novalidate="novalidate">
<div class="col-md-6">
<div class="form-group">
<input type="text" class="form-control" id="name" name="name" placeholder="Enter your name">
</div>
<div class="form-group">
<input type="email" class="form-control" id="email" name="email" placeholder="Enter email address">
</div>
<div class="form-group">
<input type="text" class="form-control" id="subject" name="subject" placeholder="Enter Subject">
let numbers = [];
const total = 999999;
function createPrime() {
numbers[0] = 0;
numbers[1] = 0;
numbers[2] = 1;
@moshiurse
moshiurse / sendmail.php
Created February 18, 2022 06:04
Php mail basic function
<?php
// the message
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$send_email = "moshiur.swe@gmail.com";
// the message
$to = "$send_email"; // note the comma
@moshiurse
moshiurse / .htaccess
Created February 19, 2022 17:00
htaccess for create ssl site
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@moshiurse
moshiurse / index.html
Created March 14, 2022 11:18
Redux core concept
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redux Plain</title>
</head>
<body>
@moshiurse
moshiurse / lamp_install.md
Last active August 24, 2023 02:47
Lamp Stack Installation

Apache

sudo apt update
sudo apt install apache2
sudo ufw app list
sudo ufw allow in “Apache”
sudo systemctl start apache2 // to start apache server
sudo systemctl status apache2 // to know the status 
sudo systemctl stop apache2 // to stop the server

Linux Command Line Primer

Terminal breakdown

what do moshiur@pc:~$ means ?

  • moshiur: The username of the current user
  • pc: The hostname of the server
  • ~: The current directory. In bash, which is the default shell, the ~, or tilde, is a special character that expands to the path of the current user’s home directory; in this case, it represents /home/sammy
  • $: The prompt symbol. This denotes the end of the command prompt, after which the user’s keyboard input will appear

root@webapp:/var/www# Logged in as a root in var/www directory

@moshiurse
moshiurse / autocomplete.html
Created March 20, 2023 08:09
Raw JS Autocomplete
<input type="text" id="autocomplete-input">
<ul id="autocomplete-list"></ul>
<div class="userinfo">
Latitude: <span id="id"></span><br>
Longitude: <span id="name"></span><br>
</div>
@moshiurse
moshiurse / readme.md
Created July 25, 2023 09:28
Install tar.gz file in linux
  1. Download the desired .tar.gz or (.tar.bz2) file.
  2. Open Terminal
  3. Extract the .tar.gz or (.tar.bz2) file with the following commands

    tar xvzf package.tar.gz
    tar xvjf package.tar.bz2

  4. Navigate to the extracted folder using cd command

    cd package

  5. Now run the following command to install the tarball

    ./configure
    > make