Skip to content

Instantly share code, notes, and snippets.

Alexei Yuzhakov sibprogrammer

Block or report user

Report or block sibprogrammer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View webspace-disk-usage.xml
<?xml version="1.0" encoding="UTF-8"?>
<packet>
<webspace>
<get>
<filter><id>1</id></filter>
<dataset>
<gen_info/>
</dataset>
</get>
</webspace>
@sibprogrammer
sibprogrammer / cc-review.rb
Created Oct 13, 2010
git-svn client for CodeCollaborator
View cc-review.rb
#!/usr/bin/env ruby
require 'pp'
require 'xmlrpc/client'
require 'time'
require 'digest/md5'
CC_URI = URI.parse(`cat ~/.smartbear/com.smartbear.ccollab.client.txt | grep url=`.split('=')[1].chomp.gsub('\\',''))
SUPPORTED_SERVER_VERISON = 823
SVN_LOGIN = `cat ~/.subversion/auth/svn.simple/* | head -16 | tail -1`.chomp
@sibprogrammer
sibprogrammer / merge-srt.rb
Created Sep 22, 2010
Merge two subtitles files into single one
View merge-srt.rb
#!/usr/bin/env ruby
def load_subtitles(filename, as_hash = false)
subtitles = as_hash ? {} : []
File.open(filename) do |file|
while !file.eof? do
record = []
while (line = file.gets).strip != '' and !file.eof? do
record << line
@sibprogrammer
sibprogrammer / hiphop-build.sh
Created Feb 23, 2010
Script for building HipHop for PHP at Ubuntu 9.10 32-bit
View hiphop-build.sh
#!/bin/sh
sudo apt-get install cmake g++ libboost-dev flex bison re2c libmysqlclient-dev \
libxml2-dev libmcrypt-dev libicu-dev openssl binutils-dev libcap-dev \
libgd2-xpm-dev zlib1g-dev libtbb-dev libonig-dev libpcre3-dev git-core \
autoconf libtool libcurl4-openssl-dev libboost-system-dev \
libboost-program-options-dev libboost-filesystem-dev curl
# getting hiphop source code
mkdir hiphop
View translate.rake
namespace :translate do
desc "Check for missed keys"
task :missed => :environment do
default_locale = I18n.default_locale.to_s
locale = ENV['LOCALE']
puts "Comparision of #{default_locale} locale with #{locale}"
default_locale_keys = get_locale_key(default_locale)
You can’t perform that action at this time.