Skip to content

Instantly share code, notes, and snippets.

View dewwwald's full-sized avatar

dewald dewwwald

View GitHub Profile
@dewwwald
dewwwald / _README.md
Last active August 29, 2015 14:18
Install git from source

Install git from source for user

##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
@dewwwald
dewwwald / _README.md
Last active August 29, 2015 14:18
Install Git-Flow locally

#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
@dewwwald
dewwwald / _README.md
Created May 19, 2015 07:47
Javascript project utils

#Javascript Project Utils

@dewwwald
dewwwald / _A.md
Last active November 6, 2015 09:04

#SCSS Utils Code _utils.scss is made as a plugin for scss frameworks that will assist in shortening certain code.

@dewwwald
dewwwald / _README.md
Created September 8, 2015 08:11
SSH

Add ssh key to host in one line

cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
@dewwwald
dewwwald / salesforce.php
Created November 1, 2015 20:00
Submit post processed form to salesforce using CURL
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
@dewwwald
dewwwald / _!A.md
Last active August 2, 2016 07:08
Just an Idea on how to style lists Styling lists is a mission.

#Just an Idea on how to style lists

@dewwwald
dewwwald / gulp_ftp.coffee
Last active November 19, 2015 05:52
FTP for gulp
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..."))
@dewwwald
dewwwald / _A.md
Last active August 2, 2016 07:08
Yosemite Installation of Mysql
@dewwwald
dewwwald / _A.md
Last active August 19, 2016 12:26
Wordpress migration workflow