Skip to content

Instantly share code, notes, and snippets.

Working from home

Yolier Galan Tasse gallegogt

Working from home
View GitHub Profile
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);
elafargue / A Hypriot K8S
Last active Oct 26, 2019 — forked from aaronkjones/
K8s (v1.10.5) on Hypriot (July 2018)
View A Hypriot K8S
alexellis /
Last active Jul 19, 2022
K8s on Raspbian
xoseperez /
Last active Aug 29, 2022
Raspberry Pi 3 with Mosquitto, Node-RED, InfluxDB, Grafana and Nginx (as a reverse proxy)