Skip to content

Instantly share code, notes, and snippets.

View MohamedLamineAllal's full-sized avatar

Mohamed Lamine Allal MohamedLamineAllal

View GitHub Profile
prettier-eslint eslint-plugin-prettier eslint-config-prettier
What it is
A JavaScript module exporting a single function.

An ESLint plugin.

An ESLint configuration.
What it does
Runs the code (string) through prettier then eslint --fix. The output is also a string.

Plugins usually contain implementations for additional rules that ESLint will check for. This plugin uses Prettier under the hood and will raise ESLint errors when your code differs from Prettier's expected output.

This config turns off formatting-related rules that might conflict with Prettier, allowing you to use Prettier with other ESLint configs like eslint-config-airbnb.
How to use it Either callin
@MohamedLamineAllal
MohamedLamineAllal / ibm-mariadb-my.cnf
Last active September 26, 2023 17:09
Ibm article mariadb configuration
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
port = 3306
socket = /tmp/mysql.sock
back_log = 50
max_connections = 100
@MohamedLamineAllal
MohamedLamineAllal / my.cnf
Created September 26, 2023 17:04 — forked from kanibaspinar/my.cnf
Mysql My.cnf Optimization - Best Performance For 1000 + Sites Web Server
# Optimized MySQL configuration for cPanel servers by Kani Baspinar - Updated June 2016
#
# The settings provided below are a starting point for a 24GB RAM server with 8 CPU cores.
# If you have less or more resources available you MUST adjust accordingly to save CPU, RAM and disk I/O usage.
# To fine tune these settings for your system, use MySQL DB diagnostics tools like:
# Test your configuration ; https://launchpad.net/mysql-tuning-primer
# or
# http://blog.mysqltuner.com/download/
# Note that if there is NO comment beside a setting, then you don't need to adjust it.
#
@MohamedLamineAllal
MohamedLamineAllal / my.cnf
Created September 26, 2023 16:54 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated December 2021 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@MohamedLamineAllal
MohamedLamineAllal / TypeClipboard.md
Created September 4, 2023 21:33 — forked from ethack/TypeClipboard.md
Scripts that simulate typing the clipboard contents. Useful when pasting is not allowed.

It "types" the contents of the clipboard.

Why can't you just paste the contents you ask? Sometimes pasting just doesn't work.

  • One example is in system password fields on OSX.
  • Sometimes you're working in a VM and the clipboard isn't shared.
  • Other times you're working via Remote Desktop and again, the clipboard doesn't work in password boxes such as the system login prompts.
  • Connected via RDP and clipboard sharing is disabled and so is mounting of local drives. If the system doesn't have internet access there's no easy way to get things like payloads or Powershell scripts onto it... until now.

Windows

The Windows version is written in AutoHotKey and easily compiles to an executable. It's a single line script that maps Ctrl-Shift-V to type the clipboard.

All supported Cloud watch services sources! From the console wizard popup!
You can check this too at this documentation link:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html
DATE: 30 JUL 2021, 00:18
0: "API Gateway"
1: "AWS Application Cost Profiler"
@MohamedLamineAllal
MohamedLamineAllal / execution2.end.log
Created November 28, 2020 20:32
Second execution after adding the assignment line at the end (go to the bottom)
<
Source file:
/home/coderhero/Documents/coderhero/Dev/projects/glitnir/TradingPlatformProject/ExchangeAPI/src/interface.ts
================+++>
text:
IStreamReturnObj
text:
>
text:
;
@MohamedLamineAllal
MohamedLamineAllal / execution.end.log
Last active November 28, 2020 20:29
End of the execution before the error (all the elements are part of interface.ts) (go to all bottom)
Source file:
/home/coderhero/Documents/coderhero/Dev/projects/glitnir/TradingPlatformProject/ExchangeAPI/src/interface.ts
================+++>
text:
callback
text:
:
text:
text:
@MohamedLamineAllal
MohamedLamineAllal / interface.ts
Last active November 28, 2020 20:42
File where the last resolution before failing happened!
import { Candle, Trade, AggregatedTrade } from "./types/tradingTypes";
import { FetchMod } from "./utils/DataFetcher/src";
import { string_symbol } from "./symbols";
import { bindStreamKeepAliveAsync } from "./utils/KeepAlive/src/async";
import { DbManager } from "./Components/DbManager";
import { DbConnector } from "./Components/DbManager/DbConnector";
import { LimitsManager } from "./Components/LimitsManager";
import {
IOrderPayload,
IWSOrderUpdateData,
@MohamedLamineAllal
MohamedLamineAllal / connection.svg
Last active November 28, 2019 17:25
Svg sprite example (used with React svgr)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.