Skip to content

Instantly share code, notes, and snippets.

View slaykovsky's full-sized avatar
🎯
Focusing

Aleksei Slaikovskii slaykovsky

🎯
Focusing
  • London, UK
View GitHub Profile
'use strict';
var util = require('util');
var async = require('async');
var randomInt = function(low, high) {
return Math.floor(Math.random() * (high - low) + low);
};
var find = function(key, object, callback) {
def euclidean(m, n)
r = m % n
r == 0 ? n : euclidean(n, r)
end
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="libintl_dll"
ProjectGUID="{9E3973B5-12BD-4E6F-A30A-D41D8E657A4D}"
RootNamespace="libintl_dll"
Keyword="Win32Proj"
TargetFrameworkVersion="131072"
>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
#ifndef __LIBXML_WIN32_CONFIG__
#define __LIBXML_WIN32_CONFIG__
#define HAVE_CTYPE_H
#define HAVE_STDARG_H
#define HAVE_MALLOC_H
#define HAVE_ERRNO_H
#if defined(_WIN32_WCE)
#undef HAVE_ERRNO_H
/*
* Summary: Windows configuration header
* Description: Windows configuration header
*
* Copy: See Copyright for the status of this software.
*
* Author: Igor Zlatkovic
*/
#ifndef __LIBXSLT_WIN32_CONFIG__
#define __LIBXSLT_WIN32_CONFIG__
rem Prerequisities
rem 1. Visual Studio 2015 Community Edition
rem 2. Msys2
rem 3. Active Perl
rem 4. Python 2.7
rem 5. 7-zip
rem Set PostgreSQL version
set PGVER=9.4.4
➜ ~ docker run --rm -it ubuntu:15.10 /bin/bash
root@d29fd9dd0567:/# sed -i "s|archive.ubuntu.com|mirror.yandex.ru|g" /etc/apt/sources.list
root@d29fd9dd0567:/# apt-get update && apt-get install wget sudo lsb-release -y
Get:1 http://mirror.yandex.ru wily InRelease [218 kB]
Get:2 http://mirror.yandex.ru wily-updates InRelease [64.4 kB]
Get:3 http://mirror.yandex.ru wily-security InRelease [64.4 kB]
Get:4 http://mirror.yandex.ru wily/main Sources [1411 kB]
Get:5 http://mirror.yandex.ru wily/restricted Sources [7171 B]
Get:6 http://mirror.yandex.ru wily/universe Sources [8976 kB]
Get:7 http://mirror.yandex.ru wily/main amd64 Packages [1833 kB]
@slaykovsky
slaykovsky / create_test_table.sql
Created February 12, 2016 11:40
Hitachi PostgreSQL Testing
CREATE TABLE testset(
set serial PRIMARY KEY,
info text
);
CREATE TABLE tests(
test serial PRIMARY KEY,
set int NOT NULL REFERENCES testset(set) ON DELETE CASCADE,
scale int,
dbsize int8,
start_time timestamp default now(),
@slaykovsky
slaykovsky / configuration.nix
Created February 4, 2017 22:09
My nixos configuration.
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix