Skip to content

Instantly share code, notes, and snippets.

View juandazapata's full-sized avatar

Juanda juandazapata

View GitHub Profile

Keybase proof

I hereby claim:

  • I am juandazapata on github.
  • I am juanda (https://keybase.io/juanda) on keybase.
  • I have a public key whose fingerprint is 2384 E377 EF78 8611 7B02 8681 29F3 A273 9086 4C0E

To claim this, I am signing this object:

@juandazapata
juandazapata / toolbar.md
Created June 7, 2011 23:27
[Toolbar] - Servicio de monitoreo de Visitas
@juandazapata
juandazapata / send2.php
Created July 29, 2011 01:51
AS2 upload
<?php
// array with filenames to be sent as attachment
$files = array("attachments_emails/foto1.jpg","attachments_emails/foto2.jpg","attachments_emails/foto3.jpg");
if(isset($_POST["nombre"]) && isset($_POST["telefono"]) && isset($_POST["email"]) && isset($_POST["url_fotos"]) && isset($_POST["direccion"]) && isset($_POST["barrio"]) && isset($_POST["ciudad"]) && isset($_POST["rut"]) && isset($_POST["eps"]) && isset($_POST["arp"])):
$fecha = date("d-M-y H:i");
$to = "registro@oncegroup.com.co";
$subject = "Alguien desea trabajar en Once Group";
$nombre= $_POST["nombre"];
@juandazapata
juandazapata / gist:1277133
Created October 11, 2011 02:34 — forked from javan/gist:1168475
Fix iPhone home button
Found this tip in comment here: http://www.tipb.com/2011/01/04/tipb-bug-home-button-working-iphone/
1.) Open any application
2.) Press and hold the power button until the slide to shutdown swipe bar appears.
3.) Release Power button
4.) Press and hold Home button Lightly
until screen returns to icon screen
@juandazapata
juandazapata / hack.sh
Created March 31, 2012 23:51 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@juandazapata
juandazapata / .gitignore
Created May 8, 2012 23:30
Basic Gemfile for new projects
/.bundle
/db/*.sqlite3
/log/*.log
/tmp
/public/uploads
/.sass-cache
coverage/
.rvmrc
/public/assets/*.png
/public/assets/*.jpg
@juandazapata
juandazapata / jquery.selectbox-1.2.js
Created June 14, 2012 16:03 — forked from itsadok/jquery.selectbox-1.2.js
jQuery selectbox plugin
/*
* jQuery selectbox plugin
*
* Copyright (c) 2007 Sadri Sahraoui (brainfault.com)
* Licensed under the GPL license and MIT:
* http://www.opensource.org/licenses/GPL-license.php
* http://www.opensource.org/licenses/mit-license.php
*
* The code is inspired from Autocomplete plugin (http://www.dyve.net/jquery/?autocomplete)
*
@juandazapata
juandazapata / Top traffic.md
Created June 21, 2012 16:52
See top traffic
brew install iftop  
ifconfig -l

>>> et0 et1 ....

sudo iftop -i et1
@juandazapata
juandazapata / mountain_lion_home_brew.md
Created July 26, 2012 15:07
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

After upgrading to Mountain Lion, I got this message when trying to run my local rails server:

Installing rmagick (2.13.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    Users/user/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby extconf.rb
$ cd /usr/local/Cellar/imagemagick/6.8.0-10/lib
$ ln -s libMagick++-Q16.7.dylib libMagick++.dylib
$ ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib
$ ln -s libMagickWand-Q16.7.dylib libMagickWand.dylib