Skip to content

Instantly share code, notes, and snippets.

View nelyj's full-sized avatar
👁️
25/8

Nelson Jiménez nelyj

👁️
25/8
View GitHub Profile
@nelyj
nelyj / install_puma_gem.sh
Created November 23, 2017 15:33 — forked from ikennaokpala/install_puma_gem.sh
install puma gem on el capitan
brew install openssl
brew link --force openssl
gem install puma
ALternatively:
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export LDFLAGS="-L/usr/local/opt/openssl/lib"
gem install puma
@nelyj
nelyj / commands
Created October 29, 2017 18:38
My vim commands
:Goyo
:Limelight0.7
:Ack search
ctrp + p search file
ctrl n: Nerdtree
ghi show issues
@nelyj
nelyj / Transantiago public endpoints.md
Created July 12, 2017 03:10 — forked from radutzan/Transantiago public endpoints.md
APIs REST públicas con data del Transantiago. Respuestas en JSON.

Paraderos alrededor de un punto

http://www.transantiago.cl/restservice/rest/getpuntoparada?lat=-33.6089714&lon=-70.5742975&bip=1

Estimación de parada

http://www.transantiago.cl/predictor/prediccion?codsimt=PA420&codser=504 (código de servicio es opcional, pero el parámetro debe estar presente aunque esté vacío)

Lista de servicios

http://www.transantiago.cl/restservice/rest/getservicios/all

Info completa de servicio

@nelyj
nelyj / xmlsec.xml
Last active May 30, 2016 06:10
XMLSEC format
<References>
<Book>
<Author>
<FirstName>Bruce</FirstName>
<LastName>Schneier</LastName>
</Author>
<Title>Applied Cryptography</Title>
</Book>
<Web>
<Title>XMLSec</Title>
@nelyj
nelyj / gist:977e9d8bc7a2d179eaa7
Created December 1, 2015 19:38
Modelo de booking
1 require_relative './concerns/bookable'
2
3 class Booking < ActiveRecord::Base
4 include Bookable
5
6 belongs_to :profile
7 belongs_to :service
8
9 def payment!(current_user)
10 amount = 1
require 'khipu-api-client'
2
3 Khipu.configure do |c|
4 c.secret = ENV['KHIPU_SECRET']
5 c.receiver_id = ENV['KHIPU_RECEIVER_ID']
6 c.platform = 'Kiipet' # (optional) please let us know :)
7 c.platform_version = '0.1'
8 end
$.fn.extend
dynamicSelectable: ->
$(@).each (i, el) ->
new DynamicSelectable($(el))
class DynamicSelectable
constructor: ($select) ->
@init($select)
init: ($select) ->
@nelyj
nelyj / facebook.py
Created October 14, 2015 19:30
facebook.py Modificado - Facebook brute force - Hacking Chile convesation
#!usr/bin/python
#Facebook Cracker Version 2.1 can crack into Facebook Database 100% without Interruption By Facebook Firewall !
#This program is for educational purposes only.
#Don't attack people facebook accounts it's illegal !
#If you want to crack into someone's account, you must have the permission of the user.
#Mauritania Attacker is not responsible.
import sys
import random
@nelyj
nelyj / blind_sqli_time_based.rb
Last active September 14, 2015 21:51 — forked from Techbrunch/blind_sqli_time_based.rb
Small script for Time Based Blind SQL Injection in Ruby
require 'net/http'
require 'uri'
uri = URI.parse('http://www.test.com/index.php')
http = Net::HTTP.new(uri.host, uri.port)
hex = (('a'..'f').to_a + ('0'..'9').to_a).sort.map { |x| x.ord }
ascii = (32..127).to_a
tables = ''
@nelyj
nelyj / Contract Killer 3.md
Last active August 29, 2015 14:26 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post