Skip to content

Instantly share code, notes, and snippets.

S. Ali Mihandoost AliMD

View GitHub Profile
@AliMD
AliMD / Manually Optimize & Clean & Compact Windows 10 & 11.md
Last active April 22, 2024 14:53
Manually Optimize/Clean/Compact Windows 10/11

Manually Optimize/Clean/Compact Windows 10/11

Enter Audit Mode by Pressing CTRL+SHIFT+F3

When you are prompted with Let's start with a region or Get going fast, or Personalize, or Customize Settings, or Setup Windows, press CTRL+SHIFT+F3 to switch to audit mode.

Update windows if you like

Anti­Spy for Windows 10⁠

@AliMD
AliMD / gist:3344523
Created August 13, 2012 22:28
All github Emoji (Smiles)

All github Emoji (Smiles)

ali.md/emoji

:bowtie: | 😄 | 😆 | 😊 | 😃 | ☺️ | 😏 | 😍 | 😘 | :kissing_face: | 😳 | 😌 | 😆 | 😁 | 😉 | :wink2: | 👅 | 😒 | 😅 | 😓

😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 | :neckbeard: | 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷

😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨

@AliMD
AliMD / regular-expression-iranian-mobile.md
Last active March 15, 2024 15:03
Best Regular Expression for Detect Iranian Mobile Phone Numbers

Best Regular Expression for Detect Iranian Mobile Phone Numbers

I'm sure its best regular expression for detect iranian mobile number.

(0|\+98)?([ ]|,|-|[()]){0,2}9[1|2|3|4]([ ]|,|-|[()]){0,2}(?:[0-9]([ ]|,|-|[()]){0,2}){8}


use in javascript

@AliMD
AliMD / npm-config.md
Last active November 26, 2023 15:27
Optimize NPM for faster installing packages

AliMd npm config

Optimize NPM for faster installing packages

Strong recommended

npm config set registry http://registry.npmjs.org/
npm config set loglevel info
npm config set fetch-retries 3
npm config set fetch-retry-mintimeout 15000
npm config set fetch-retry-maxtimeout 90000
@AliMD
AliMD / install-doceker.md
Last active October 24, 2023 07:30
Install docker on linux as easy as possible

Install Docker on linux

Any distribution of architecture as easy as possible.

# Install docker latest version from original website
curl -fsSL https://get.docker.com/ | sh

# Adding your user to the "docker" group
sudo usermod -aG docker $(whoami)
## you will have to log out and back in for this to take effect!
@AliMD
AliMD / install.sh
Created October 14, 2019 06:36
Install VMware Horizon Client to Rasbpery Pi 3, 3+, 4
#!/bin/bash
# Install VMware Horizon Client to Rasbpery Pi 3, 3+, 4
apt-get update
apt-get install libudev1 libxss1
ln -s /lib/arm-linux-gnueabihf/libudev.so.1 /lib/arm-linux-gnueabihf/libudev.so.0
wget http://dl.armtc.net/packages/vmwh_LATEST.tar.gz -O /tmp/vmwh_LATEST.tar.gz
@AliMD
AliMD / fix-persian-number.js
Last active August 10, 2022 19:16
Convert/Fix persian and arabic numbers inside a string to english in javascript, AliMD Edition ;)
(() => {
'use strict';
const
// Establish the root object, `window` (`self`) in the browser, `global`
// on the server, or `this` in some virtual machines. We use `self`
// instead of `window` for `WebWorker` support.
root = (() => {
if (typeof self == 'object' && self.self === self) return self;
else if (typeof global == 'object' && global.global === global) return global;
@AliMD
AliMD / cloudSettings
Last active December 19, 2021 15:49
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-12-19T15:49:20.647Z","extensionVersion":"v3.4.3"}
@AliMD
AliMD / Visual Studio Offline.md
Last active November 15, 2021 09:00
Create an offline installation of Visual Studio

Visual Studio Offline

Please run cmd as administrator before start.

Create an offline installation of Visual Studio

cd C:\VisualStudioOffline

vs_Enterprise.exe --layout C:\VisualStudioOffline\layout --add Microsoft.VisualStudio.Workload.NetWeb --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetCrossPlat --includeRecommended --includeOptional --lang en-US
@AliMD
AliMD / Best-UI-Design-Tools.md
Last active April 1, 2021 07:30
Best UI Design Tools

Best UI Design Tools (AliMD)

Best Applications for UI Designers

Sketch is a design toolkit built to help you create your best work — from your earliest ideas, through to final artwork

InVision is the digital product design platform used to make the world's best customer experiences.