Skip to content

Instantly share code, notes, and snippets.

View akramabdulrahman's full-sized avatar

akram abdelrahman akramabdulrahman

View GitHub Profile
@devmsh
devmsh / MagicUser.php
Last active September 6, 2016 10:44
PHP Magical Setter and Getter
<?php
// once you add the magical setter and getter
// you can can access any private fields as usual
// but you can also develop custom setter and getter if you want
$user = new MagicUser();
$user->username = "test";
$user->password = "pass";
echo $user->username; // will print Test not test.
@LeZuse
LeZuse / 00_README.md
Last active November 1, 2024 02:35
Install node on Apple Silicon M1 both ARM and x86 (Rosetta)

Node.js on Apple Silicon

Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.

TODO

  • find a way how to run the same node version on both platforms
@akramabdulrahman
akramabdulrahman / 00_README.md
Created February 7, 2022 01:27 — forked from LeZuse/00_README.md
Install node on Apple Silicon M1 both ARM and x86 (Rosetta)

Node.js on Apple Silicon

Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.

TODO

  • find a way how to run the same node version on both platforms