##Ubuntu 12.04
# install dependencies
sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
# fixes Gutils.cache
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install asciidoc xmlto docbook2x
#Install gitflow for a user
##Ubuntu 12.04
curl -OL https://raw.github.com/nvie/gitflow/develop/contrib/gitflow-installer.sh
chmod +x gitflow-installer.sh
INSTALL_PREFIX=~/bin ./gitflow-installer.sh
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
#Javascript Project Utils
#SCSS Utils Code _utils.scss is made as a plugin for scss frameworks that will assist in shortening certain code.
Add ssh key to host in one line
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
public function submit_to_salesforce () { | |
$post_fields = http_build_query(array_merge($this->conf_fields, $this->fields)); | |
$ch = curl_init(); | |
curl_setopt($ch,CURLOPT_URL,self::$config['url']); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch,CURLOPT_POSTFIELDS, $post_fields); | |
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); | |
//execute post |
#Just an Idea on how to style lists
fs = require "fs" | |
ftp = require 'gulp-ftp' | |
cleanFtpList = () -> | |
ftpJsonFile = process.cwd() + '/.ftp.json' | |
# clean ftp list | |
fs.writeFile ftpJsonFile, JSON.stringify(new Array()), (err) -> | |
if(err) | |
return gutil.log gutil.colors.red err | |
gutil.log(gutil.colors.yellow("Cleaned ftp list...")) |
##Yosemite Installation of Mysql
https://github.com/MacMiniVault/Mac-Scripts/blob/master/mmvMySQL/mmvmysql-README.md
#Wordpress migration workflow
(Work in progress)
Ever had those 'Oh my goodness!' moments with Wordpress? Here is a plugin that kills the issues with databases. Duplicator: https://wordpress.org/plugins/duplicator/
Setting up VirtualBox Ubuntu server 14.0.4 http://stackoverflow.com/questions/16954395/how-to-connect-to-a-mysql-server-running-on-a-virtual-machine