Skip to content

Instantly share code, notes, and snippets.

View ImonAwesome's full-sized avatar
✔️
Github Verified!

Md. Imon Hossain ImonAwesome

✔️
Github Verified!
View GitHub Profile
@ImonAwesome
ImonAwesome / google-qr.md
Last active May 2, 2022 01:16
Create QR Code Using Google API
## Update and Upgrade Repos
sudo su
sudo apt update -y && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt autoremove -y
## Setup SWAP
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo /sbin/swapon /var/swap.1
sudo sh -c 'echo "/var/swap.1 swap swap defaults 0 0 " >> /etc/fstab'
@ImonAwesome
ImonAwesome / Sendy Nginx Config
Last active April 16, 2022 08:26 — forked from amanjuman/Sendy Nginx Config
Sendy Nginx Config for PHP7.4 FPM
sudo su
//Setup Hostname
hostnamectl set-hostname subdomain.domain.tld
## Basic
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get autoremove -y && sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php -y && add-apt-repository ppa:nginx/stable -y
//Setup SWAP
sudo fallocate -l 1G /swapfile;
@ImonAwesome
ImonAwesome / litespeed_not_save_data.php
Created March 23, 2022 20:54
Fix Litespeed Cache Plugin Save not working | Issue: Database corrupted or damaged
<?php
define( 'WP_USE_THEMES', false );
require( './wp-load.php' );
global $wpdb;
$table_name = $wpdb->prefix . 'options';
$table_name = "{$wpdb->prefix}options";
$wpdb->query( $wpdb->prepare( "DELETE FROM `$table_name` WHERE `option_name` like '%litespeed.%' " ) );
@ImonAwesome
ImonAwesome / woo_pixel_fire.html
Created March 23, 2022 19:15
WooCommerce Google Ads Conversion Pixel Fire On Click "Add To Cart" & "Cart" & "Checkout" by Selected CSS/ID Element | Google Ads
// WooCommerce Conversion Pixel Fire On Click "Add To Cart" & "Cart" & "Checkout" by Selected CSS/ID Element.
<!-- Global site tag (gtag.js) - Google Ads: TRACKING_iD -->
<script async src="https://www.googletagmanager.com/gtag/js?id=TRACKING_iD"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'TRACKING_iD');
@ImonAwesome
ImonAwesome / remove_nitrocdn_copyright.js
Last active March 22, 2022 21:57
remove nitrocdn copyright
@ImonAwesome
ImonAwesome / ssh_cpanel.md
Last active September 28, 2022 06:22
Cpanel SSH Access

CPanel SSH Access

To create SSH access from your CPanel follow steps below

  • Goto CPanel
  • SSH Access
    [ ✔ ] Manage SSH Keys
    [ ✔ ] Generating a New Key
    [ ✔ ] Fille Below Information as per your settings
    [ ✔ ] Generat Key
@ImonAwesome
ImonAwesome / zip_ubuntu.md
Last active May 4, 2023 08:51
Zip a Folder Into Ubuntu

Install Zip Software Into Ubuntu

sudo apt-get install zip

Usages

zip -r zip_file_name.zip folder

Some solution | Stack Overflow.

@ImonAwesome
ImonAwesome / mysql_restart.md
Created February 21, 2022 14:52
How to Start/Stop MySQL Server on Ubuntu

Restart MySQL

To stop MySQL server use the following command:

sudo service mysql stop

To start MySQL server use the following command:

sudo service mysql start

@ImonAwesome
ImonAwesome / custom_style.css
Last active November 19, 2021 21:32
Elementor Transparent Header
/*
Work Name: Elementor Transparent Header
Sticky: TOP
Sticky On: All Devices
Offset: 0
Effects Offset: 100
Entrance Animation: Default