Skip to content

Instantly share code, notes, and snippets.

View okertanov's full-sized avatar

Oleg Kertanov okertanov

View GitHub Profile
@okertanov
okertanov / build-libevent-ios.sh
Created November 28, 2018 10:23 — forked from ursachec/build-libevent-ios.sh
libevent build script for iOS
#!/bin/bash
set -u
# Setup architectures, library name and other vars + cleanup from previous runs
ARCHS=("armv7" "armv7s" "i386")
SDKS=("iphoneos" "iphoneos" "macosx")
LIB_NAME="libevent-2.0.21-stable"
TEMP_DIR="$(pwd)/tmp"
TEMP_LIB_PATH="$(pwd)/tmp/${LIB_NAME}"
{
"version": "1.2.0",
"sourceUrl": "https://gist.githubusercontent.com/okertanov/a60455fe3ad997977cffb4e64980fb16/raw/2879f7ac94dfdb5c00ec9fdc6574e6ac8b9c34f2/SmartContractsRegistry",
"contracts": [
{
"symbol": "CK",
"name": "CryptoKitties",
"descriptionText": "Collect and breed digital cats.",
"homepageUrl": "https://www.cryptokitties.co/",
"address": "0x06012c8cf97bead5deae237070f9587f8e7a266d",

Keybase proof

I hereby claim:

  • I am okertanov on github.
  • I am okertanov (https://keybase.io/okertanov) on keybase.
  • I have a public key whose fingerprint is 6060 B2F6 2B66 44DB 2239 606A 7619 C5B3 B956 3313

To claim this, I am signing this object:

@okertanov
okertanov / mnemonic-encoding-project-word-list.txt
Created March 14, 2015 11:35
Oren Tirosh’s mnemonic encoding project word list
Oren Tirosh’s mnemonic encoding project word list
http://web.archive.org/web/20090918202746/http://tothink.com/mnemonic/wordlist.html
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES;
acrobat africa alaska albert albino album
alcohol alex alpha amadeus amanda amazon
america analog animal antenna antonio apollo
april aroma artist aspirin athlete atlas
banana bandit banjo bikini bingo bonus
camera canada carbon casino catalog cinema
@okertanov
okertanov / shc.c
Created April 13, 2013 11:18
Shell script in ANSI C
/*/true
outname=${0%.*}
cc $0 -o ./outname && ./outname && rm -f ./outname ./outname.exe
exit 0
*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv)
@okertanov
okertanov / add1.cpp
Created August 3, 2012 09:06
Increments items in an array matching specified value.
/**
@file add1.cpp
@brief Increments items in an array matching specified value.
@author Oleg Kertanov <okertanov@gmail.com>
@date August 2012
@see http://blog.jazzychad.net/2012/08/01/array-iteration-problem.html
and
http://news.ycombinator.com/item?id=4326382
@okertanov
okertanov / human_enum.py
Created April 30, 2012 08:33 — forked from anthonywu/human_enum.py
Python Human Enums
"""
Copyright (c) 2012 Anthony Wu, twitter.com/anthonywu
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@okertanov
okertanov / hack.sh
Created March 31, 2012 10:53 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@okertanov
okertanov / minimal-vimrc
Created December 20, 2011 19:54
minimalistic .vimrc file
set nocp
behave mswin
set guioptions-=m
set guioptions-=M
set guioptions-=t
set guioptions-=T
set guioptions-=r
set lines=40 columns=120
set ruler