Skip to content

Instantly share code, notes, and snippets.

@sukharevd
sukharevd / JsonExample.py
Created August 12, 2013 21:38
Example of work with JSON in Python
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Example of work with JSON in Python
# Requires jsonpickle. To git it in Debian/Ubuntu:
# sudo apt-get install python-jsonpickle
import jsonpickle
__author__ = 'Dmitriy Sukharev'
@sukharevd
sukharevd / aws-s3-gzip-compression.py
Last active February 14, 2024 10:43
Synchronizes directory with gzipped content of Amazon S3 bucket with local one to avoid redundant synchronization requests when files were not changed, but MD5 sums of Gzipped files are different.
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
AWS S3 Gzip compression utility
Author: Dmitriy Sukharev
Modified: 2013-09-11
-------
Synchronizes directory with gzipped content of Amazon S3 bucket with local
@sukharevd
sukharevd / wildfly-install.sh
Last active September 9, 2024 09:14
Script to install JBoss Wildfly 10.x as service in Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final
@sukharevd
sukharevd / Json.php
Created August 12, 2012 13:22
Zend Framework Learning
<?php error_reporting(E_ALL & E_NOTICE); ?>
<?php
include_once "Zend/Json.php";
class Book
{
public $isbn;
public $title;
public $authors;
public function __construct($_isbn, $_title, array $authors) {