Skip to content

Instantly share code, notes, and snippets.

View rodrigolopezguerra's full-sized avatar

Rodrigo López Guerra rodrigolopezguerra

View GitHub Profile
function test() {
updateSeries();
var a = 0;
}
function doGet(request) {
_setCount();
// Logica llamado principal
if (!request.parameters.route ) {
function checkAvailability() {
var options = {
"method" : "GET",
};
try {
var i;
var url = "https://www.cgeonline.com.ar/informacion/apertura-de-citas.html";
var result = UrlFetchApp.fetch(url,options);
var response = result.getContentText("iso-8859-1");
var start = "<table"
@rodrigolopezguerra
rodrigolopezguerra / update-route53.sh
Created July 22, 2021 22:16 — forked from inhumantsar/update-route53.sh
Update Amazon Route 53 from Bash
#!/bin/bash
ZONEID='' # Hosted Zone ID e.g. BJBK35SKMM9OE
RECORDSET='' # The CNAME you want to update e.g. hello.example.com
TTL=300 # The Time-To-Live of this recordset
TYPE='A' # Change to AAAA if using an IPv6 address
COMMENT="Auto updating @ `date`"
IP=`curl -ss https://icanhazip.com/` # Get the external IP address
LOGPATH='/var/log'
@rodrigolopezguerra
rodrigolopezguerra / slack_delete.py
Last active March 8, 2018 12:48 — forked from Paradoxis/slack_delete.py
Delete all Slack files. Usage: python slack_delete.py --token <your token>
import argparse
import requests
import time
import json
def main():
"""
Entry point of the application
:return: void
@rodrigolopezguerra
rodrigolopezguerra / radios_nacionales.txt
Created January 25, 2017 12:33 — forked from pisculichi/radios_nacionales.txt
URLs de radios nacionales de Argentina, para poder escuchar en la terminal con mplayer o vlc
# alias radio='function __radio(){ r=`grep -v "#" radios_nacionales.txt | grep -m 1 -i $1 | cut -d" " -f1`; cvlc $r; }; __radio'
# podria utilizarse mplayer en vez de vlc
AMs Nacionales
http://200.68.81.65:8000/am530 Radio Madre 530
http://wmserver3.aginet.com.ar:19043 Radio Colonia 550
http://195.154.182.222:26016/;stream/1 Radio Argentina 570
http://7359.live.streamtheworld.com/CONTINENTAL.mp3 Continental 590
http://181.119.20.132:8234/stream Rivadavia 630
@rodrigolopezguerra
rodrigolopezguerra / README.md
Created December 22, 2016 13:54 — forked from tjamps/README.md
Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle

Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle

The API we are creating in this gist will follow these rules :

  • The API only returns JSON responses
  • All API routes require authentication
  • Authentication is handled via OAuth2 with password Grant Type only (no need for Authorization pages and such).
  • API versioning is managed via a subdomain (e.g. v1.api.example.com)

The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :