Skip to content

Instantly share code, notes, and snippets.

View genesis_public_key

Keybase proof

I hereby claim:

  • I am cenkalti on github.
  • I am cenk ( on keybase.
  • I have a public key whose fingerprint is 4517 3BCE AB1B 618F 917D FFC1 2DB2 EA6F D1BF 1761

To claim this, I am signing this object:

cenkalti /
Created May 10, 2013 13:54
Custom encoder and decoder class for using json module with datetime objects.
from __future__ import absolute_import
import json
import datetime
DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ" # ISO 8601
class JSONEncoder(json.JSONEncoder):

Python Number Conversion Chart

From To Expression
cenkalti /
Last active February 13, 2023 06:08
Backup Jenkins home periodicallly with git.
# Setup
# - Create a new Jenkins Job
# - Mark "None" for Source Control Management
# - Select the "Build Periodically" build trigger
# - configure to run as frequently as you like
# - Add a new "Execute Shell" build step
# - Paste the contents of this file as the command
cenkalti / tr.yml
Created October 8, 2012 13:31 locale file Turkish
View tr.yml
language_name: "Türkçe"
message_from_app: "<strong>{{#owner}}{{name}}{{/owner}}</strong> {{app_name}}'den"
messages_with_app: "<strong>{{app_name}}</strong> ile olan konuşmalarınız"
message_to_app: "{{app_name}}'ye <strong>Mesajınız</strong>"
new_message_to_app: "{{app_name}}'ye <strong>Yeni mesaj</strong>"
reply: "Yanıtla"
send: "Gönder"
back: "Geri"