Skip to content

Instantly share code, notes, and snippets.

View saniyathossain's full-sized avatar

Saniyat Hossain saniyathossain

View GitHub Profile
If you don't want to activate and just want to reset the trial,
please delete the
~/.config/dconf/user files and the
~/.config/navicat folder.
Pay attention to the backup data. If conditions permit, please support genuine.
@saniyathossain
saniyathossain / cassandra-documentation.md
Last active February 26, 2023 05:37
Cassandra Keys and Partitions

Keys and Indexes in Cassandra

Keys

In Cassandra, keys are used to uniquely identify a row in a table. Each table in Cassandra must have a primary key, which can be composed of one or more columns. The primary key can be either simple or composite.

Simple Primary Key:

A simple primary key consists of only one column. It uniquely identifies each row in the table.

Composite Primary Key:

A composite primary key consists of more than one column. The first column is the partition key, and the remaining columns are clustering keys. The partition key is used to distribute data across the nodes in a Cassandra cluster, while the clustering keys are used to order the data within each partition.

@saniyathossain
saniyathossain / laravel-ddd-approach.md
Created August 16, 2022 11:20 — forked from ibrunotome/laravel-ddd-approach.md
A Domain Driven Design (DDD) approach to the Laravel Framework
/app
├── /Application
|  ├── /Exceptions
|  ├── /Middlewares
|  ├── /Providers
|  ├── /Requests
├── /Domain
|  ├── /MyDomainA
| | ├── /Contracts
{
"debug.console.fontSize": 14,
"editor.autoIndent": "advanced",
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": true,
"editor.cursorStyle": "line-thin",
"editor.fontFamily": "Meslo LG S for Powerline, IBM Plex Mono, JetBrainsMono Nerd Font Mono",
"editor.fontLigatures": true,
"editor.fontSize": 15,
"editor.formatOnPaste": false,
@saniyathossain
saniyathossain / info.txt
Created April 21, 2022 06:06
KDE Plasma cpu usage fix
sudo vim /usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationIcon.qml
PlasmaComponents.BusyIndicator {
anchors.fill: parent
visible: jobs ? jobs.count > 0 : false
running: false
}
@saniyathossain
saniyathossain / common.txt
Last active February 2, 2022 07:06
Stacks, Coding Guidelines, Acronyms
STACKS:
Project management: Agile, Scrum, JIRA (tool)
Version Control: GIT, Github (Repo), Gitlab (Repo), Bitbucket (Repo), Azure (Repo)
Back-end: PHP (MVC (Model View Controller): Laravel, CakePHP, Symphony, Codeigniter, YII, micro-framework: Lumen, Slim), CMS (Content Management System): Wordpress, Prestashop, Joomla, Magento, Opencart
ORM (Object Relational Mapping): Eloquent (Built in with laravel framework), CakePHP ORM (Built in with CakePHP framework), RedBeanPHP
PHP modules: PHP FPM, PHP CLI
Unit Test: PHPUnit, Codeception, PEST (framework)
Async PHP: Swoole, ReactPHP, Laravel Octane
Cache: File, Memcache, Redis, Database
@saniyathossain
saniyathossain / ubuntu.txt
Created July 6, 2021 02:51
Buildkit enable docker
inside /etc/docker/daemon.json
{
"log-driver": "json-file",
"log-opts": {
"max-size": "100m",
"max-file": "20"
},
"features": {
"buildkit": true
@saniyathossain
saniyathossain / permission.txt
Created May 26, 2021 12:41
docker volume commands for permission laravel
sudo chown -R saniyathossain:www-data bootstrap/cache storage vendor
sudo chmod -R a+w bootstrap/cache storage vendor
export DOCKER_BUILDKIT=1; export COMPOSE_DOCKER_CLI_BUILD=1;
@saniyathossain
saniyathossain / ValidationResponseWithRuleName.php
Created May 1, 2021 23:27 — forked from a-h-abid/ValidationResponseWithRuleName.php
Laravel Validation Response for API with Rule Key
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class ValidationResponseWithRuleName
{
/**
@saniyathossain
saniyathossain / script.js
Created April 22, 2021 09:25
global js script file
$ = jQuery.noConflict(); // define jquery no-conflict
String.prototype.replaceAll = function(search, replacement) {
var target = this;
return target.replace(new RegExp(search, 'g'), replacement);
};
// GLOBAL AJAX SETUP
$.ajaxSetup({
// timeout: 0,