This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### commands used to setup virtual machine, per: | |
#### https://github.com/ajaxorg/cloud9/issues/2905#issuecomment-22685063 #### | |
sudo apt-get install -y build-essential g++ curl libssl-dev apache2-utils git libxml2-dev; | |
# to get package 'add-apt-repository' | |
sudo apt-get install software-properties-common | |
sudo apt-get install python-software-properties | |
# adding node.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I know it's an ugly, but it works for me. Complete installation process: | |
sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get update; | |
sudo apt-get install -y python-software-properties python g++ make; | |
### 'add-apt-repository' not available on my Ubuntu 12.10 by default, so the next line adds it. | |
### more info found here: http://stackoverflow.com/questions/13018626/add-apt-repository-not-found | |
sudo apt-get install software-properties-common -y; | |
### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@import "breakup"; | |
$breakup-breakpoints: ( | |
'thin' '(max-width: 35.999em)', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Checkbox Hack */ | |
input[type=checkbox] { | |
display: none; | |
} | |
label { | |
display: inline-block; | |
margin: 60px 0 10px 0; | |
cursor: pointer; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sets globals: | |
// __stack, | |
// __line, | |
// __file, | |
// __function, | |
// __ext, | |
// __base | |
// we already have these: | |
// __filename which gives as an example: /Users/mjr/example.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author [email protected] | |
* @version 2014-08-10-1254 | |
* @homepage https://gist.github.com/gavinengel/2ca72704a3b30a07347a | |
*/ | |
// Q: So, what is this php file? | |
// A: This helps you create both a files and a database dump backup every X days. | |
// (I don't trust WordPress backup plugins.) | |
// This is meant for OpenShift. Persistent folders in the "data" folder are backed up as well as repo "php/" files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# connect to database for administration | |
mysql -h $OPENSHIFT_MYSQL_DB_HOST -P ${OPENSHIFT_MYSQL_DB_PORT:-3306} -u ${OPENSHIFT_MYSQL_DB_USERNAME:-'admin'} --password="$OPENSHIFT_MYSQL_DB_PASSWORD" ${OPENSHIFT_APP_NAME}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gavin@localhost:~/Desktop/bindingjs$ grunt | |
Running "jshint:grunt" (jshint) task | |
>> 10 files lint free. | |
Running "eslint:grunt" (eslint) task | |
Running "jsonlint:grunt" (jsonlint) task | |
>> 3 files lint free. | |
Running "mkdir:grunt" (mkdir) task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gavin@localhost:~/Desktop/bjs/bindingjs-0.9.1$ grunt --force | |
Running "jshint:grunt" (jshint) task | |
>> 10 files lint free. | |
Running "eslint:grunt" (eslint) task | |
Running "jsonlint:grunt" (jsonlint) task | |
>> 3 files lint free. | |
Running "mkdir:grunt" (mkdir) task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Place npm packages in your home folder without using sudo | |
# The lazy approach to installing cli npm programs requires sudo (root) access: | |
# $ sudo npm install -g somenpmpackage | |
# Of course, I do not recommend installing npm packages with sudo unless it's required. | |
# This is how I install CLI tools from npm without sudo: | |
# $ lib | |
# $ npm install --save somenpmpackage |
OlderNewer