Skip to content

Instantly share code, notes, and snippets.

View radanisk's full-sized avatar

Aleksandr B. Ivanov radanisk

  • Chuvash Republic
View GitHub Profile
require 'spreadsheet'
def generate
book = Spreadsheet::Workbook.new
worksheet = book.create_worksheet(name: 'Texts')
worksheet.row(0)[0] = 'Long text.'
worksheet.row(0)[1] = "=IF(A1=\"\";\"\";LEN(A1))"
book.write('test.xls')
end
#Чебоксары -cheboksary_ru -zarulem_ws -afisha_cheb -naidikvartiru -news_cheb -TVchat_ru -smsflirt -locdoginfo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install patch gawk g++ gcc make libc6-dev patch libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.gz
tar -xvzf ruby-1.9.3-p448.tar.gz
cd ruby-1.9.3-p448/
./configure --prefix=/usr/local
make
make install
export PS1='\[\033[01;32m\]\h\[\033[01;34m\] \w\[\033[31m\]$(__git_ps1 "(%s)") \[\033[01;34m\]$\[\033[00m\] '