Skip to content

Instantly share code, notes, and snippets.

View allexradu's full-sized avatar

Allex Radu allexradu

View GitHub Profile
@allexradu
allexradu / setup.md
Last active March 28, 2024 20:02 — forked from novemberborn/setup.md
OS X Setup virtual hosts on two different ports

Changes with .dev domains in mind.

Step 1 : Assign at least two IP address to your MAC OS (one per domain), let's say :

192.168.0.51
192.168.0.52

To setup the second IP you will have to add a second Ethernet Adapter (logical not physical).

@allexradu
allexradu / git-pull-with-rebase-multi-repository-shell-script
Created June 5, 2021 06:39 — forked from sunitparekh/git-pull-with-rebase-multi-repository-shell-script
Shell script to pull latest code from remote git repository for multiple projects
#!/bin/bash
repos=(
"/c/projects/project-1"
"/c/projects/project-2"
"/c/projects/project-3"
)
echo ""
echo "Getting latest for" ${#repos[@]} "repositories using pull --rebase"