Skip to content

Instantly share code, notes, and snippets.

@uozias
uozias / mackerel.config.yml
Last active November 5, 2015 08:05 — forked from hakobera/mackerel.config.yml
Setup Mackerel for AWS Elastic Beanstalk
packages:
rpm:
mackerel: "https://mackerel.io/file/agent/rpm/mackerel-agent-latest.noarch.rpm"
files:
/etc/mackerel-agent/mackerel-agent.conf:
mode: "00644"
owner: root
group: root
encoding: plain
@uozias
uozias / user_fixture_from_csv.py
Created October 26, 2022 02:13 — forked from jalopez/user_fixture_from_csv.py
Django: Creates a JSON fixture for user model, from a CSV file
#!/usr/bin/python
import csv
import json
import hashlib
import random
import string
from optparse import OptionParser
def random_string(length):
char_set = string.ascii_letters + string.digits