Skip to content

Instantly share code, notes, and snippets.

View jwcastillo's full-sized avatar
🏠
Working from home

José Wenceslao Castillo jwcastillo

🏠
Working from home
View GitHub Profile
@jwcastillo
jwcastillo / gist:8529a545ada93b392572
Created November 20, 2015 16:00 — forked from jelcaf/gist:5045907
Backup de repositorios Git
#!/bin/bash
###########################################
# Backup de aplicaciones git del servidor #
###########################################
#################
# Configuración #
#################
# Servidor
SERVER_IP=X.X.X.X
@jwcastillo
jwcastillo / C++ Install gSOAP.txt
Created November 20, 2015 16:00 — forked from callemall/C++ Install gSOAP.txt
Install gSOAP for using C++ programs to access a SOAP API. Install from an account that has appropriate system privileges.
wget http://sourceforge.net/projects/gsoap2/files/gSOAP/gsoap_2.8.1.zip/download
unzip gsoap_2.8.1.zip
cd gsoap-2.8/
./configure --prefix=/usr
make
make install
@jwcastillo
jwcastillo / C++ Pull Definitions From Web Service.txt
Created November 20, 2015 16:00 — forked from callemall/C++ Pull Definitions From Web Service.txt
Commands to pull the Call-Em-All SOAP API web service definitions from the server.
mkdir /usr/local/src/CEAAPI
cd /usr/local/src/CEAAPI
cp /usr/local/src/gsoap-2.8/gsoap/typemap.dat .
wsdl2h -o CEAAPI.h http://staging-api.call-em-all.com/webservices/CEAAPI_v2.asmx?WSDL
soapcpp2 -i CEAAPI.h -I/usr/share/gsoap/import/
INSERTING TEXT
ESC command mode
i Insert before cursor
I Insert before line
a Append after cursor
A Append after line
o Open blank line below the cursor
O Open blank line above the cursor
@jwcastillo
jwcastillo / Readme.md
Created November 24, 2015 20:26 — forked from mrgcohen/Readme.md
Twitter Bootstrap Typeahead autocomplete example

Requirements

  • bootstrap with typeahead
  • jquery

Explanation

This will use bootstrap with typeahead to create an autocomplete search.

@jwcastillo
jwcastillo / nodejs-tcp-example.js
Created November 27, 2015 19:58 — forked from tedmiston/nodejs-tcp-example.js
Node.js tcp client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@jwcastillo
jwcastillo / SOLID.markdown
Created November 30, 2015 00:03 — forked from emaraschio/SOLID.markdown
SOLID Principles with ruby examples

#SOLID Principles with ruby examples

##SRP - Single responsibility principle A class should have only a single responsibility.

Every class should have a single responsibility, and that responsibility should be entirely encapsulated. All its services should be narrowly aligned with that responsibility, this embrace the high cohesion.

##OCP - Open/closed principle Software entities should be open for extension, but closed for modification.

{
"title": "Asterisk Dashboard",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0,
@jwcastillo
jwcastillo / README.md
Created January 13, 2016 21:33 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@jwcastillo
jwcastillo / d3.js para principiantes
Created January 20, 2016 14:43 — forked from aaizemberg/d3.js para principiantes
d3.js para principiantes
Ariel Aizemberg
@aaizemberg ( https://twitter.com/aaizemberg )
http://www.linkedin.com/in/arielaizemberg
Introducción
Que es D3
Quién creó esta librería
Mirar algunos ejemplos de la galería
https://github.com/mbostock/d3/wiki/Gallery