Skip to content

Instantly share code, notes, and snippets.

elmarcoh / table_init.js
Created Oct 26, 2012
Using Tastypie as an Ajax Source for DataTables
View table_init.js
bProcessing: true,
bServerSIde: true,
sAjaxSource: "/path/to/your/tastypie/api/list/objects/?format=json",
sAjaxDataProp: "objects",
aoColumns: [
// Put the resource name that corresponds to each table column
{'mData': "your"},
{'mData': "columns"},
giovtorres /
Last active Apr 3, 2020
Graph Slurm's sdiag with PySlurm and Graphite
# vim: set ts=4 sw=4 et
A script that uses PySlurm to get the slurm scheduler statistics.
import pickle
import socket
strarsis / .bashrc
Created Mar 16, 2018
Vagrant on WSL (Bash on Windows)
View .bashrc
# Vagrant
export PATH=$PATH:/mnt/c/Program\ Files/Oracle/VirtualBox
export VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATH="/mnt/c/Users/<Windows Username>"
# This gist is compatible with Ansible 1.x .
# For Ansible 2.x , please check out:
# -
# -
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
superdaigo /
Created Sep 20, 2012
Zabbix SMTP Alert script for gmail
# -*- coding: utf-8 -*-
Zabbix SMTP Alert script for gmail.
import sys
import smtplib
from email.MIMEText import MIMEText
from email.Header import Header