Skip to content

Instantly share code, notes, and snippets.

View vaibhav-kaushal's full-sized avatar
:octocat:
Simplicity is the ultimate sophistication.

Vaibhav Kaushal vaibhav-kaushal

:octocat:
Simplicity is the ultimate sophistication.
View GitHub Profile
@vaibhav-kaushal
vaibhav-kaushal / a_phar.md
Created July 26, 2018 13:16
Create a PHP Phar file

Create a PHP Phar file

Run: php create-phar.php

app.phar successfully created

Start a phar file

Run: php app.phar

@vaibhav-kaushal
vaibhav-kaushal / gist:15598856c2dc4ec9be70d5158b8a1528
Created November 22, 2016 07:30 — forked from wacko/gist:5577187
SSH between Mac OS X host and Virtual Box guest

On Mac OS (host):

Shutdown your VM and do:

VirtualBox > Settings > Network > Add (you will get vboxnet0)

On a terminal ifconfig will show you new interface vboxnet0

VM's Settings > System > check "Enable I/O APIC." VM's Settings > Network > Adapter 2 > host-only vboxnet0