Skip to content

Instantly share code, notes, and snippets.

View aeweda's full-sized avatar

Abdelrahman Eweda aeweda

View GitHub Profile
@aeweda
aeweda / nvm.md
Last active September 21, 2021 11:44
nvm guide
  • run
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
  • add the following to your .bashrc or .zshrc file in ~/
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
  • run
@aeweda
aeweda / wsl.md
Created September 21, 2021 11:31
Install & Configure WSL

First of all confirm that you have windows Version 1903 or higher, with Build 18362 or higher. & That virtualization technology is enabled from BIOS/UEFI

Install WSL

  1. Run the following commands in a powershell window as admin & Reboot your pc
$ dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
$ dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  1. Install the wsl package on windows Download
; Start a new pool named 'www'.
; the variable $pool can be used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Per pool prefix
; It only applies on the following directives:
; - 'access.log'
; - 'slowlog'
; - 'listen' (unixsocket)
@aeweda
aeweda / php.ini
Created June 3, 2021 12:41
basic php.ini config
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order: