Skip to content

Instantly share code, notes, and snippets.

bessarabov / .bash_profile
Created March 15, 2010 05:55
My ordinary linux environment
export PATH=$PATH:~/bin/:~/bin/sicd/
export EDITOR=vim
mkdir -p ~/tmp/delete_after_$(date +%Y-%m-%d)
export T=~/tmp/delete_after_$(date +%Y-%m-%d)
alias ls='ls --color=auto'
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
use Modern::Perl;
use File::Find;
use LWP::UserAgent;
package JustTest;
gettext('test ');
dpkg-scanpackages: warning: Package site (filename binary/site_1.00_i386.deb) is repeat;
dpkg-scanpackages: warning: ignored that one and using data from binary/site_1.01_i386.deb!
dpkg-scanpackages: info: Wrote 1 entries to output Packages file.
bessarabov / gist:1002187
Created June 1, 2011 12:17
Игра: Программист и Заказчик (Нарисуйте мне девушку!)
Благодаря этому уникальному упражнению, вы, совершенно не зная ни одного языка программирования, сможете почувствовать себя настоящим программистом-профессионалом!
Для упражнения потребуются:
― два участника;
― часы (желательно с секундомером);
― листок чистой бумаги;
― ручка (шариковая или гелевая, но именно ручка,- это важно).
Один из участников будет "Заказчиком" (Работодателем), другой ― "Исполнителем" (Программистом).
"Заказчику" выдаются часы и право голоса, "Исполнителю" ― бумага и ручка.
use strict;
use warnings FATAL => 'all';
use 5.010;
use DDP colored => 1;
use Carp;
use Perl6::Form;
my $ddp_options = {
bessarabov / gist:4216269
Created December 5, 2012 15:09
use_prototypes => 0,
hash_separator => ' => ',
index => 0,
return_value => 'void',
end_separator => 1,
bessarabov@b-yanote:~/git/play-perl$ time vagrant up
[default] Importing base box 'precise64'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
Guest Additions Version: 4.2.0
VirtualBox Version: 4.1.18
Delivery to the following recipient failed permanently:
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain by [].
The error that the other server returned was:
550-Verification failed for <>
Revision history for App-Nopaste
0.91 Sun Jan 27 2013
Decode incoming text as utf8 (Jesse Luehrs)
Support for GITHUB_USER and GITHUB_PASS (Rafael Kitover)
Name the gist file `nopaste` not `nopaste.txt` for possible syntax highlighting (Rafael Kitover)
Use decode_json not a regular expression to decode Gist response body (Shawn M Moore)
Give a hint to perldoc App::Nopaste::Service::Gist on 401 (Shawn M Moore)
0.90 Tue Oct 30 2012