Skip to content

Instantly share code, notes, and snippets.

View Sadhr's full-sized avatar
😎

Saad HARAKAT Sadhr

😎
View GitHub Profile
@Sadhr
Sadhr / multi-git-win.md
Created October 3, 2022 11:19 — forked from rosswd/multi-git-win.md
Setting up a Github and Bitbucket account on the same computer on Mac OS. Now with a guide for Windows 10.

Setting up github and bitbucket on the same computer (Windows)

Guide for Windows

mix3d asked for some help using this guide with windows so here we go. This was tested with Windows 10. Run all commands in Git Bash once it's installed.

Github will be the main account and bitbucket the secondary.

Git for Windows

  • Download and install Git for Windows
    • In the installer, select everything but decide if you want a desktop icon (2nd step)
@Sadhr
Sadhr / clear.txt
Created October 23, 2020 13:05 — forked from EQuimper/clear.txt
React-Native clear Watchman + Cache
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache
@Sadhr
Sadhr / Create configuration file for each host
Created February 7, 2020 10:44
Configure Apache Virtual Hosts in Ubuntu
$ sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/domain.test.conf
$ sudo vi /etc/apache2/sites-available/domain.test.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
package com.reactnativenavigation.utils;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.WritableMap;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class NoOpPromise implements Promise {
@Override