Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Yolier Galan Tasse gallegogt

🏠
Working from home
View GitHub Profile
@elafargue
elafargue / A Hypriot K8S install.md
Last active Oct 26, 2019 — forked from aaronkjones/k8s-pi.md
K8s (v1.10.5) on Hypriot (July 2018)
View A Hypriot K8S install.md
@xoseperez
xoseperez / rpi3_iot_server.md
Last active Dec 5, 2021
Raspberry Pi 3 with Mosquitto, Node-RED, InfluxDB, Grafana and Nginx (as a reverse proxy)
View rpi3_iot_server.md
View k8s-pi.md
@gcollazo
gcollazo / Backbone.sync_csrftoken.js
Created Sep 25, 2011
This is what I did to insert the CSRF token in backbone requests. This works with django.
View Backbone.sync_csrftoken.js
var oldSync = Backbone.sync;
Backbone.sync = function(method, model, options){
options.beforeSend = function(xhr){
xhr.setRequestHeader('X-CSRFToken', CSRF_TOKEN);
};
return oldSync(method, model, options);
};