Skip to content

Instantly share code, notes, and snippets.

@bessarabov
bessarabov / .bash_profile
Created March 15, 2010 05:55
My ordinary linux environment
View .bash_profile
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
View gist:636690
From: http://friendfeed.com/bobuk/c6a3d237
Script:
{{{
#!/usr/bin/perl
use Modern::Perl;
use File::Find;
use LWP::UserAgent;
View JustTest.pm
package JustTest;
gettext('test ');
1;
View gist:770906
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
bessarabov / gist:1002187
Created June 1, 2011 12:17
Игра: Программист и Заказчик (Нарисуйте мне девушку!)
View gist:1002187
Благодаря этому уникальному упражнению, вы, совершенно не зная ни одного языка программирования, сможете почувствовать себя настоящим программистом-профессионалом!
Для упражнения потребуются:
― два участника;
― часы (желательно с секундомером);
― листок чистой бумаги;
― ручка (шариковая или гелевая, но именно ручка,- это важно).
Один из участников будет "Заказчиком" (Работодателем), другой ― "Исполнителем" (Программистом).
"Заказчику" выдаются часы и право голоса, "Исполнителю" ― бумага и ручка.
View gist:3053055
#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';
use 5.010;
use DDP colored => 1;
use Carp;
use Perl6::Form;
my $ddp_options = {
@bessarabov
bessarabov / gist:4216269
Created December 5, 2012 15:09
/home/bessarabov/felix/tilde/.dataprinter
View gist:4216269
{
use_prototypes => 0,
hash_separator => ' => ',
index => 0,
return_value => 'void',
end_separator => 1,
}
View gist:4968331
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
box.
Guest Additions Version: 4.2.0
VirtualBox Version: 4.1.18
View gist:4975518
Delivery to the following recipient failed permanently:
dmitry@kalinnikov.ru
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain kalinnikov.ru by mxs.ht-systems.ru. [78.110.50.88].
The error that the other server returned was:
550-Verification failed for <ivan@bessarabov.ru>
550-Called: 173.194.71.26
View nopaste
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