Skip to content

Instantly share code, notes, and snippets.

View cdcarson's full-sized avatar

Chris Carson cdcarson

View GitHub Profile
@cdcarson
cdcarson / gist:a93ffb31b1df4780ba84
Last active May 1, 2018 07:48
npm install errors (npm install nodegit issue)
Chris-Dev:nog chris$ npm install
-
> [email protected] install /Users/chris/dev/nog/node_modules/nodegit
> node lifecycleScripts/install
module.js:338
throw err;
^
Error: Cannot find module 'fs-extra'
at Function.Module._resolveFilename (module.js:336:15)
@cdcarson
cdcarson / package.json
Created June 23, 2015 17:36
Non-working package.json (npm install nodegit issue)
{
"name": "nog",
"version": "1.0.0",
"description": "A simple site generator for GitHub Pages.",
"main": "Gruntfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
@cdcarson
cdcarson / get_option_event_end.php
Last active August 29, 2015 14:03
Event Publisher API examples
use NowZoo\EventPublisher\API;
$start = API::get_option_event_end();
// object(Carbon\Carbon)#4 (3) {
// ["date"]=>
// string(19) "2014-07-04 20:00:00"
// ["timezone_type"]=>
// int(3)
// ["timezone"]=>
// string(15) "America/Chicago"
<?php
/**
* Add the composer autoload
*/
require_once __DIR__ . '/vendor/autoload.php';
/**
* Conditional environment statement
*/
# get the latest WordPress
curl http://wordpress.org/latest.tar.gz -o latest.tar.gz
# extract the archive
tar -zxvf latest.tar.gz
# move it to the root...
mv wordpress/* ./
# delete the latest.tar.gz archive and
SetEnv IS_DEV_LOCAL 1
SetEnv DEV_DB_HOST localhost
SetEnv DEV_DB_USER webapp
SetEnv DEV_DB_PASS SuperSecret123
git add -A
git commit -m 'initial commit'
#.gitignore
.DS_Store
.idea
vendor
.elasticbeanstalk/
## BEGIN WORDPRESS ##
# ignore everthing...
/wp-content/*
- myapp
- .elaticbeanstalk
- config
- .gitignore
- index.php
eb init