Skip to content

Instantly share code, notes, and snippets.

View gaulatti's full-sized avatar
馃搱
Highwaying

Javier Godoy N煤帽ez gaulatti

馃搱
Highwaying
View GitHub Profile
@radutzan
radutzan / Transantiago public endpoints.md
Last active October 13, 2023 03:31
APIs REST p煤blicas con data del Transantiago. Respuestas en JSON.

Nuevo: SCLTransit

Ignacio Hermosilla implement贸 un servicio web de acceso p煤blico usando los feeds GTFS de Transantiago y los puntos de acceso oficiales que normalmente requieren acuerdos con el DTPM, para que t煤 no tengas que hacerlo.

Est谩 toda la informaci贸n de Transantiago que puedas necesitar, con formatos de alta calidad y sin tr谩mites. Estas APIs son las que ahora alimentan a Cromi.

APIs internas de Transantiago (no recomendadas)

Transantiago implement贸 estas APIs para uso interno, por lo que no hay ninguna garant铆a sobre su funcionalidad, mantenimiento o futura existencia. 脷salas bajo tu propio riesgo. (Probablemente no es aconsejable que las uses para nada cr铆tico.)

@ddragosd
ddragosd / api-gateway-marathon-setup.sh
Last active April 9, 2018 04:31
API Gateway setup in Mesos and Marathon
# PREREQUISITES:
# Setup a Mesos cluster and install Marathon framework
MARATHON_HOST="http://<marathon_host>/marathon"
# this could be an internal ELB that the Gateway nodes can use to auto-discover services
INTERNAL_MARATHON_HOST="http://<internal_marathon_host>/marathon"
# a wildcard domain configured with *.api.anydomain
API_DOMAIN="api.<my-domain>"
# -------------------------
@phanan
phanan / runner.js
Last active April 7, 2025 13:42
Record a webpage with PhantomJS and FFMpeg
// Run this from the commandline:
// phantomjs runner.js | ffmpeg -y -c:v png -f image2pipe -r 24 -t 10 -i - -c:v libx264 -pix_fmt yuv420p -movflags +faststart output.mp4
var page = require('webpage').create(),
address = 'http://s.codepen.io/phanan/fullembedgrid/YPLewm?type=embed&safe=true&_t=1424767252279',
duration = 3, // duration of the video, in seconds
framerate = 24, // number of frames per second. 24 is a good value.
counter = 0,
width = 500,
height = 500;
@royriojas
royriojas / install.apc.sh
Last active December 14, 2016 02:29 — forked from ryanjbonnell/gist:4074061
Install apc on mac os X. Works in Mavericks!
#!/bin/bash
echo '===> install apc.so in OSX Mavericks'
mkdir -p ~/tmp/apc-deps
# Compile PCRE - Perl Compatible Regular Expressions
cd ~/tmp/apc-deps
curl -O ftp://ftp.csx.cam.ac.uk//pub/software/programming/pcre/pcre-8.33.tar.gz
tar -xvzf pcre-8.33.tar.gz