Skip to content

Instantly share code, notes, and snippets.

View DannyNunez's full-sized avatar

Danny Nunez DannyNunez

View GitHub Profile

##Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management

###Instructions to Change PHP Installation

First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Within the terminal, Fire this command:

which php

@DannyNunez
DannyNunez / vhost.py
Last active August 29, 2015 14:11 — forked from fideloper/vhost.py
#! /usr/bin/python
from sys import argv
from os.path import exists
from os import makedirs
from os import symlink
from os import system
import getopt
#
@DannyNunez
DannyNunez / gist:94d2659d4f4432420fd6
Created May 19, 2014 19:58
Vagrant File to allow VM write access to file on the host Machine
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "192.168.33.21"
<VirtualHost *:80>
ServerName dev.example.com
DocumentRoot "/var/www/example/public_html"
<Directory "/var/www/example/public_html">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
ErrorLog "logs/mysite.local-error_log"
</VirtualHost>
@DannyNunez
DannyNunez / BootStrapFlyoutMenu.html
Last active June 19, 2018 10:41
Boot Strap Flyout Menu
<!doctype html>
<html>
<head>
<title>Boot Strap Fly out</title>
<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<style>
/* Drop Down FLyout Menu */
.dropdown-submenu {
@DannyNunez
DannyNunez / gist:9361912
Last active August 29, 2015 13:57
hhvm-laravel.hdf
Server {
Port = 80
SourceRoot = /Users/dan/hhvm-test/public/
}
VirtualHost {
* {
Pattern = .*
RewriteRules {
* {
@DannyNunez
DannyNunez / README.md
Created December 31, 2013 23:02 — forked from oodavid/README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/

This uses Twitter Bootstrap classes for CodeIgniter pagination.

Drop this file into application/config.

<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
*
* Updated for Laravel 4.0.8 (2013-10-07)
* Generated with https://github.com/barryvdh/laravel-ide-helper
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
exit('Only to be used as an helper for your IDE');
@DannyNunez
DannyNunez / port
Created October 20, 2013 03:05
Get PID of all job running on a port.
sudo lsof -i -P | grep "9000"