Skip to content

Instantly share code, notes, and snippets.

View nemesifier's full-sized avatar
🎯
Focusing on @openwisp full time!

Federico Capoano nemesifier

🎯
Focusing on @openwisp full time!
View GitHub Profile
@nemesifier
nemesifier / InternationalPhonePrefixes.json
Last active December 23, 2015 12:29 — forked from Goles/CountryCodes.json
International Phone Prefixes with relative names and country codes in JSON format.
[
{
"name":"Afghanistan",
"dial_code":"+93",
"code":"AF"
},
{
"name":"Albania",
"dial_code":"+355",
"code":"AL"
@nemesifier
nemesifier / InternationalPhonePrefixes.yml
Created September 20, 2013 10:43
International Phone Prefixes with relative names and country codes in YAML format.
af:
code: af
prefix: 93
name: Afghanistan
al:
code: al
prefix: 355
name: Albania
@nemesifier
nemesifier / geojson-hotspots.json
Last active December 28, 2015 09:58
Temporary Hotspot container in GeoJSON format
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nemesifier
nemesifier / comuni-provincia-di-roma.json
Created December 18, 2013 17:01
Comuni della Provincia di Roma aggiornati all'ultimo censimento ISTAT 2011 - Municipalities of the Province of Rome updated to the latest ISTAT census of 2011
This file has been truncated, but you can view the full file.
{
"features": [
{
"geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 12.898139, 41.991283 ], [ 12.899094, 41.990909 ], [ 12.900478, 41.990645 ], [ 12.901806, 41.990641 ], [ 12.902691, 41.990890 ], [ 12.903057, 41.990912 ], [ 12.903535, 41.990942 ], [ 12.904127, 41.990539 ], [ 12.904573, 41.989853 ], [ 12.904861, 41.989119 ], [ 12.905163, 41.988757 ], [ 12.905591, 41.988585 ], [ 12.906158, 41.988633 ], [ 12.906934, 41.988863 ], [ 12.907678, 41.989036 ], [ 12.908141, 41.988891 ], [ 12.908469, 41.988788 ], [ 12.909106, 41.988524 ], [ 12.909800, 41.988356 ], [ 12.910279, 41.988083 ], [ 12.910735, 41.987455 ], [ 12.910909, 41.986918 ], [ 12.911479, 41.985811 ], [ 12.911632, 41.985471 ], [ 12.911596, 41.985121 ], [ 12.911928, 41.984538 ], [ 12.912738, 41.984132 ], [ 12.913412, 41.984190 ], [ 12.914293, 41.984214 ], [ 12.915100, 41.984263 ], [ 12.916032, 41.984578 ], [ 12.917137, 41.985076 ], [ 12.917755, 41.985374 ], [ 12.918809, 41.985257 ], [ 12.919425, 41.984903 ], [ 12.919862,
@nemesifier
nemesifier / provincia-di-roma.json
Created December 18, 2013 17:25
Confini della Provincia di Roma aggiornati al censimento ISTAT 2011 - Province of Rome administrative borders according to the ISTAT census of 2011
This file has been truncated, but you can view the full file.
{
"features": [
{
"geometry": { "type": "MultiPolygon", "coordinates": [
[
[
[
12.623322,
41.445588
],
@nemesifier
nemesifier / dynamic_relationships_mixin.py
Last active March 1, 2021 04:34
Django Rest Framework Dynamic relationships mixin
# USAGE EXAMPLE:
# https://github.com/nemesisdesign/nodeshot/blob/09d5307fa38861339a660ba96b2c79f9c19ec92a/nodeshot/core/layers/models/__init__.py
from django.core.urlresolvers import NoReverseMatch
from rest_framework import serializers
from rest_framework.fields import Field
from rest_framework.reverse import reverse
@nemesifier
nemesifier / confini-regione-piemonte.json
Created February 21, 2015 19:04
Confini amministrativi della Regione Piemonte in formato GeoJSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nemesifier
nemesifier / upgrade-sentry-on-debian
Last active August 29, 2015 14:16
Upgrade sentry on debian (default install)
# might vary depending on how sentry was installed
# upgrade system dependencies
apt-get update
apt-get upgrade
apt-get install python-dev python-crypto libffi-dev
# upgrade python packages
pip install -U sentry
# run migrations and other tasks
sentry --config=/etc/sentry.conf.py upgrade
# probably default config location has changed
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nemesifier
nemesifier / gist:0eda930ace7938d14be0
Created May 18, 2015 20:33
ninux.org-rome-network-graph.json
{
"type": "NetworkGraph",
"protocol": "OLSR",
"version": "0.6.6.2",
"revision": "6ec73b8f5213cc740816f2fd2ff93108",
"metric": "ETX",
"nodes": [
{
"id": "172.16.146.6"
},