Skip to content

Instantly share code, notes, and snippets.

0442e77cce664925f1bdec69b50013f9873d6c97d9352ba6ef8e68444355bcef57ef285430775e3dfa9c56a11ab4b557fec640a769e0ba4c03f6e933342d72d0a4;paracycle

Keybase proof

I hereby claim:

  • I am cenkalti on github.
  • I am cenk (https://keybase.io/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
cenkalti / json_datetime.py
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
cenkalti / jenkins-home-git.sh
Last active September 8, 2023 17:19
Backup Jenkins home periodicallly with git.
#!/bin/bash
# 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
cenkalti / tr.yml
Created October 8, 2012 13:31
Intercom.io locale file Turkish
tr:
language_name: "Türkçe"
widget:
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"