Skip to content

Instantly share code, notes, and snippets.

View devomman's full-sized avatar
:octocat:
Available for work

Muhammad Omman devomman

:octocat:
Available for work
View GitHub Profile
@devomman
devomman / Clear.bat
Last active February 27, 2024 19:47
Windows 10/11 clear command using batch file by DevOmman
@echo off
:: (Run as Admin code starts)
REM Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\icacls.exe" "%SYSTEMROOT%\system32\config\system"
REM If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Now Running As Administrative Privileges...
goto UACPrompt
@devomman
devomman / using_bat_as_uac.bat
Last active October 30, 2021 12:32
Using Batch file Run as Administrator Privilege
@echo off
:: (Run as Admin code starts)
REM Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\icacls.exe" "%SYSTEMROOT%\system32\config\system"
REM If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Now Running As Administrative Privileges...
goto UACPrompt
@devomman
devomman / functions.php
Created December 14, 2020 16:27 — forked from yousufansa/functions.php
WordPress 5.6 Update Editor Width Fix
if( ! function_exists( 'wp_5_6_editor_wp_block_width_fix' ) ) {
function wp_5_6_editor_wp_block_width_fix() {
if( version_compare( get_bloginfo( 'version' ), '5.6', '>=' ) ) {
echo '<style>.interface-interface-skeleton__editor { max-width: 100%; }</style>';
}
}
}
add_action( 'admin_head', 'wp_5_6_editor_wp_block_width_fix' );
@devomman
devomman / Studio3t_Ubuntu.md
Last active July 30, 2021 08:37
Install Studio 3t for MongoDB in Ubuntu

How to install Studio 3t for MongoDB in Ubuntu:

  • Goto Download link https://studio3t.com/download/
  • unzip tar using command tar -xzf studio-3t-linux-x64.tar.gz
  • goto folder command ./studio-3t-linux-x64.sh

Additional Step for Cloud Base:

@devomman
devomman / NVIDIA-GEFORCE-ISSUE.MD
Last active July 30, 2021 20:15
NVIDIA® GEFORCE® Experience Screen Record Issue

😎 Skype Issue for while:

  • Show Call Window When Skype is in the Background if its enable.

Solve: Goto > Setting > Calling - Find this toggle button & disbale it.

@devomman
devomman / Email Signature Backup Sample.html
Last active March 22, 2024 22:35
Email Signature Backup Sample
<p style="margin: 0in; text-align: justify;"><span style="font-size: 11.0pt; font-family: 'Arial',sans-serif;"><img src="https://i.imgur.com/ElJPAuW.gif" /></span><span style="font-size: 11.0pt; font-family: 'Arial',sans-serif;"></span></p>
<p style="margin: 0in; text-align: justify;"><strong><span style="font-size: 11.0pt; font-family: 'Arial',sans-serif;">MUHAMMAD OMMAN</span></strong></p>
<p style="margin: 0in; text-align: justify;"><span style="white-space: pre-wrap;"><span style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"><span style="white-space: pre-wrap; font-family: Arial, sans-serif;"><span style="font-size: 10pt;"><strong>Web Developer &amp; IT </strong></span></span><span style="font-family: Arial, sans-serif;"><span style="font-size: 13.3333px; white-space: pre-wrap;"><strong>Administrator</strong></span></span></span></span></p>
<p style="margin: 0in; text-align: justify;"><span style="white-space: pre-wrap;"><strong><span style="font-size: 9.0pt; font-family: 'Arial',sans-serif;">M:</
<!doctype html>
<title>Server Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@devomman
devomman / Gulp.js_Command.md
Last active October 3, 2022 22:04
Gulp Js Command Line & Package Json

*Complete documentation on Gulp can be found here: https://gulpjs.com/

  1. Install the gulp command line utility npm install --global gulp-cli
  2. Create a package.json file in your project directory npm init

Create package.json file

{
	"name": "MyProject",
@devomman
devomman / fvm-README.md
Last active November 16, 2023 12:51
fvm command (Flutter Version Manager)

Requiremnets:

  1. chocolatey Install https://chocolatey.org/install (Windows) (Read CarefullY If Required)
  2. Brew Install https://brew.sh/ (MacOS) (Read CarefullY If Required)
  3. Powershell in Administration or Terminal User Open with Administration

ISSUE on WINDOWS User:

  1. For Flutter on Windows: "Unable to find git in your PATH" if terminal is not in admin mode Issue
  • any programme run as adminnistrator ex. Android Studio shortcut Run as Administrator

Command in Windows:

@devomman
devomman / Create_mac_OS_iso_Command.MD
Last active February 16, 2024 14:39
macOS Command for ISO file
  • Sonoma.iso
hdiutil create -o /tmp/Sonoma -size 16384m -volname Sonoma -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sonoma.dmg -noverify -mountpoint /Volumes/Sonoma
sudo /Applications/Install\ macOS\ Sonoma.app/Contents/Resources/createinstallmedia --volume /Volumes/Sonoma --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ Sonoma
hdiutil convert /tmp/Sonoma.dmg -format UDTO -o ~/Desktop/Sonoma
mv -v ~/Desktop/Sonoma.cdr ~/Desktop/Sonoma.iso
rm -fv /tmp/Sonoma.dmg