Skip to content

Instantly share code, notes, and snippets.

View lolmaus's full-sized avatar
🧠
Reducing entropy

Andrey Mikhaylov (lolmaus) lolmaus

🧠
Reducing entropy
View GitHub Profile
When the truth is found Когда обнаруживается,
To be lies Что правда — это ложь,
And all the joy И весь восторг
Within you dies Умирает внутри тебя...
Don't you want ...Разве тебе не хочется
Somebody to love Кого-то любить?
Don't you need Разве ты не нуждаешься в том,
Somebody to love Чтобы кого-то любить?
Заявление
Утром 14 июня 2011 года в квартире, где я временно проживаю (по адресу
Москва, Нахимовский пр-т, д. 11, корп. 2, кв. 147), была совершена
кража.
Украдены:
• клиторальный вибратор, текущая стоимость которого в магазине
составляет 1356 рублей;
• комплект ключей от квартиры: два ключа, длинный и короткий, плоский
@lolmaus
lolmaus / De-Phazz — Astrud Astronette (correct lyrics and Russian translation).txt
Created July 25, 2011 19:45
De-Phazz — Astrud Astronette (correct lyrics and Russian translation)
Seven years and twenty days Семь лет и двадцать дней
Since my spaceship scoured its course Как мой космический корабль лег на курс
Floating in oblivion Дрейф в забвении
Without objective, without source Без цели и без смысла
Memories dwindle, colours fade Воспоминания путаются, цвета блекнут
Suspended in the eternal night Зависшая в вечной ночи
Shrivelling muscles, shrinking bones Увядающие мышцы, истончающиеся кости
Moving at the speed of fright Полет на скорости страха
C:\Documents and Settings\lolmaus>tracert 192.168.0.11 -d
Трассировка маршрута к 192.168.0.11 с максимальным числом прыжков 30
1 <1 мс <1 мс <1 мс 192.168.20.1
2 <1 мс <1 мс <1 мс 192.168.20.7
3 <1 мс <1 мс <1 мс 192.168.20.1
4 <1 мс <1 мс <1 мс 192.168.20.7
5 1 ms 1 ms 1 ms 192.168.20.1
6 1 ms 1 ms 1 ms 192.168.20.7
# Push routes to the client to allow it
# to reach other private subnets behind
# the server. Remember that these
# private subnets will also need
# to know to route the OpenVPN client
# address pool (10.8.0.0/255.255.255.0)
# back to the OpenVPN server.
push "route 192.168.20.0 255.255.255.0"
[backup]
path = /mnt/storage/backup
browsable = yes
read only = no
writable = yes
guest ok = no
follow symlinks = yes
source 'http://rubygems.org'
gem 'rails', '3.0.0.rc'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3-ruby', :require => 'sqlite3'
# Use unicorn as the web server
lolmaus@sea:/var/vhosts/ld.lolmaus.ru$ sudo rm -rf .* *
[sudo] password for lolmaus:
rm: cannot remove directory `.'
rm: cannot remove directory `..'
validates :image_url,
format: { with: %r{\.(gif|jpg|jpeg|png)$}i,
message: 'must be a URL for GIF, JPG or PNG image.', },
allow_blank: true
class Product < ActiveRecord::Base
validates :title,
presence: true,
uniqueness: true
validates :price,
numericality: { greater_than_or_equal_to: 0.01 }