Skip to content

Instantly share code, notes, and snippets.

View aikssen's full-sized avatar

Ever Cifuentes aikssen

  • Bogota, Colombia
View GitHub Profile
@aikssen
aikssen / git.md
Last active February 25, 2016 15:00

GIT

Config

$ git config --global user.name "Joh Doe"
$ git config --global user.email johndoe@mail.com
$ git config --global color.ui true
$ git config --global core.editor nano
$ git config --global merge.tool opendiff
@aikssen
aikssen / sails.md
Last active September 18, 2015 16:05
Sails.js Basics

Install nvm and node js

###Install nvm nvm allows to have multiple versions onf nodejs

$ sudo apt-get install build-essential libssl-dev
@aikssen
aikssen / mongodb.md
Created March 1, 2015 23:35
Mongodb Basics

#MONGO DB

##export data

$ mongoexport --db mydb --collection customers --out customers.json

##import data

@aikssen
aikssen / gulp.md
Created March 1, 2015 23:34
Gulp Basics

#GULP

sudo npm install --save-dev gulp gulp-utils
@aikssen
aikssen / DML.sql
Created March 1, 2015 23:32
SQL basics
--INSERT UPDATE - DELETE MERGE
--INSERT
INSERT INTO wawi.abteilungen
VALUES ('FE', 'Forschung und Entwicklung'); --insertar un valor
INSERT INTO wawi.abteilungen
@aikssen
aikssen / basics.md
Created March 1, 2015 23:30
CoffeeScript Basics

#coffeescript

##variables name = "value

@aikssen
aikssen / config.md
Last active August 29, 2015 14:16
Config Linux server

Install git

$ sudo apt-get update
$ sudo apt-get install git
$ git config --global user.name "Your Name"
$ git config --global user.email "youremail@domain.com"
$ git config --list
# Load balancer configuration
upstream exampleApp {
# Directs to the process with least number of connections.
least_conn;
# One failed response will take a server out of circulation for 20 seconds.
server 127.0.0.1:10080 fail_timeout=20s;
#server 127.0.0.1:10081 fail_timeout=20s;
#server 127.0.0.1:10082 fail_timeout=20s;
#server 127.0.0.1:10083 fail_timeout=20s;
@aikssen
aikssen / Gruntfile.js
Last active August 29, 2015 14:08
Gruntfile.js template
/*global module:false*/
module.exports = function(grunt) {
// load all grunt tasks matching the `grunt-*` pattern
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
//take names from here