Skip to content

Instantly share code, notes, and snippets.

View muath-ye's full-sized avatar
🚀
npx muath

Muath Alsowadi muath-ye

🚀
npx muath
View GitHub Profile
  1. Get node binary (node.exe) from http://nodejs.org/download/
  2. Create the folder where node will reside and move node.exe to it
  3. Download the last zip version of npm from http://nodejs.org/dist/npm
  4. Unpack the zip inside the node folder
  5. Download the last tgz version of npm from http://nodejs.org/dist/npm
  6. Open the tgz file and unpack only the file bin/npm (without extension) directly on the node folder.
  7. Add the the node folder and the packages/bin folder to PATH
  8. On a command prompt execute npm install -g npm to update npm to the latest version

Now you can use npm and node from windows cmd or from bash shell like Git Bash of msysgit.

@muath-ye
muath-ye / blog.web.config
Created March 20, 2023 20:44 — forked from anonymous/blog.web.config
Web.config URL rewriting rules for hosting WordPress (PHP) on IIS
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Remove html" stopProcessing="true">
<match url="(.*).html$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
@muath-ye
muath-ye / blog.web.config
Created March 20, 2023 20:43 — forked from adilmughal/blog.web.config
Web.config URL rewriting rules for hosting WordPress (PHP) on IIS
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Remove html" stopProcessing="true">
<match url="(.*).html$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
@muath-ye
muath-ye / vite.config.js
Created March 9, 2023 18:13 — forked from mpociot/vite.config.js
Using Vite in combination with Valet's secured sites
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import fs from 'fs';
import { resolve } from 'path';
import { homedir } from 'os';
let host = 'sendstack.test';
let homeDir = homedir();
let serverConfig = {};
@muath-ye
muath-ye / aliases.sh
Created March 8, 2023 06:25
A:\Git\etc\profile.d
# Some good standards, which are not used if the user
# creates his/her own .bashrc/.bash_profile
# --show-control-chars: help showing Korean or accented characters
alias ls='ls -F --color=auto --show-control-chars'
alias ll='ls -l'
case "$TERM" in
xterm*)
# The following programs are known to require a Win32 Console
@muath-ye
muath-ye / keybindings.json
Created January 20, 2023 19:44
My custom key bindings for vscode
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+win+b",
"command": "workbench.action.toggleAuxiliaryBar"
},
{
"key": "alt+a",
"command": "workbench.action.toggleActivityBarVisibility"
},
@muath-ye
muath-ye / tsconfig.json
Created October 30, 2022 19:44 — forked from mtimbs/tsconfig.json
basic default tsconfig for use in TypeScript projects
{
"compilerOptions": {
// project options
"lib": [
"ESNext",
"dom"
], // specifies which default set of type definitions to use ("DOM", "ES6", etc)
"outDir": "lib", // .js (as well as .d.ts, .js.map, etc.) files will be emitted into this directory.,
"removeComments": true, // Strips all comments from TypeScript files when converting into JavaScript- you rarely read compiled code so this saves space
"target": "ES6", // Target environment. Most modern browsers support ES6, but you may want to set it to newer or older. (defaults to ES3)
@muath-ye
muath-ye / data.geojson
Created August 29, 2022 11:03
Location on map
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@muath-ye
muath-ye / choose.html
Created August 29, 2022 10:58
Move items between two lists
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Choose</title>
</head>
NETSH WLAN set hostednetwork mode=allow ssid=netspace key=Net$P@ce