Skip to content

Instantly share code, notes, and snippets.

View gonzalocasas's full-sized avatar

Gonzalo Casas gonzalocasas

View GitHub Profile
@gonzalocasas
gonzalocasas / gist:57eb94f122a04e2cadb1
Last active August 29, 2015 14:01
extapi response
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:tel="http://tel.search.ch/api/spec/result/1.0/" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<updated>2014-05-09T00:00:00Z</updated>
<totalResults>4</totalResults>
<startIndex>0</startIndex>
<itemsPerPage>4</itemsPerPage>
<entry canmanage="no" following="no" followers="105">
<id>OjadhwVpB-6LAbNMCGzzLw</id>
<type>Organisation</type>
<name>Cyber Solutions GmbH</name>
@gonzalocasas
gonzalocasas / gist:d42127dccd1d6a95a46e
Created September 25, 2015 16:53
Search Github branches without cloning
$ zipgrep 'string' =(curl -sL https://github.com/org/repo/archive/branch.zip)
@gonzalocasas
gonzalocasas / lorawan-gateways.geojson
Created November 19, 2015 10:00 — forked from vasile/lorawan-gateways.geojson
LoRaWAN Gateways in use
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gonzalocasas
gonzalocasas / fire_and_forget.rb
Created May 30, 2016 23:18
Fire And Forget HTTP requests on Ruby
require 'socket'
require 'uri'
def fire_and_forget_post(url, body)
uri = URI.parse(url)
req = []
port = ":#{uri.port}" if uri.port != 80
req << "POST #{uri.request_uri} HTTP/1.1"
req << "Host: #{uri.host}#{port}"
@gonzalocasas
gonzalocasas / verein.md
Last active August 29, 2016 11:54
Open Network Infrastructure Association in short

Open Network Infrastructure Association in short

What means open infrastructure?

  • Free/open everyone, no questions asked, no permission required, no strings attached.
  • Aligned to the open definition: http://opendefinition.org/

Goals of the association

  • promote, support and find funding for open network infrastructure projects, such as community networks
  • organize workshops, tech sessions, meetups, etc
  • push for legal/political change to enable open infrastructure
@gonzalocasas
gonzalocasas / ros-install.sh
Last active March 9, 2018 08:56
Installer for ROS into a Raspberry Pi
#!/bin/bash
# Stop on the first sign of trouble
set -e
if [ $UID != 0 ]; then
echo "ERROR: Operation not permitted. Forgot sudo?"
exit 1
fi
@gonzalocasas
gonzalocasas / README.md
Created August 27, 2018 13:13
Start a full ROS environment

Pre-workshop: Introduction to compas_fab

Windows users: the only Windows version that supports many of the requirements is Windows 10, making it a pre-requisite for everything else.

Requirements