Skip to content

Instantly share code, notes, and snippets.

View Xerkus's full-sized avatar
:octocat:
Open Sourcing!

Aleksei Khudiakov Xerkus

:octocat:
Open Sourcing!
View GitHub Profile
[remote "zendframework"]
url = git@github.com:zendframework/zf2.git
fetch = +refs/heads/*:refs/remotes/zendframework/*
fetch = +refs/pull/*/head:refs/remotes/zendframework/pr/*
@Xerkus
Xerkus / task.yml
Created June 10, 2014 18:20 — forked from maxim/task.yml
- name: ensure postgresql hstore extension is created
sudo: yes
sudo_user: postgres
shell: "psql {{ postgresql_database }} -c 'CREATE EXTENSION hstore;'"
register: psql_result
failed_when: >
psql_result.rc != 0 and ("already exists" not in psql_result.stderr)
changed_when: "psql_result.rc == 0"
@Xerkus
Xerkus / winswitch.pl
Created August 31, 2014 13:37
IRSSI script to allow to switch between windows using /<number>
sub cmd_winswitch {
my ($data, $server, $witem) = @_;
if ($data =~ /^\/([0-9]+)$/) {
$server->command("win " . $1);
Irssi::signal_stop();
}
}
Irssi::signal_add_first('send command', 'cmd_winswitch');
formats = {
"fe-common/core" = {
own_msg = "{ownmsgnick $2 {ownnick $[!12]0}}$1";
own_msg_channel = "{ownmsgnick $3 {ownnick $[!12]0}{msgchannel $1}}$2";
own_msg_private = "{ownprivmsg msg $[!12]0}$1";
pubmsg_me = "{pubmsgmenick $2 {menick $[!12]0}}$1";
pubmsg_me_channel = "{pubmsgmenick $3 {menick $[!12]0}{msgchannel $1}}$2";
pubmsg_hilight = "{pubmsghinick $0 $3 $[!12]1}$2";
pubmsg_hilight_channel = "{pubmsghinick $0 $4 $[!12]1{msgchannel $2}}$3";
@Xerkus
Xerkus / dirtree.html
Created September 30, 2012 19:32
Quick peek into dojo by example. Directory tree listing using cli command "tree" output in xml format as data source. Needs styling, code cleanup and improvements. May be i'll get back to it later.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>file tree</title>
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/dojo/1.8.0/dijit/themes/claro/claro.css">
<style>
.fileIconPhp {background: url('https://raw.github.com/teambox/Free-file-icons/master/16px/php.png') top left}
</style>
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.8.0/dojo/dojo.js"></script>
[Xerkus@xerkus-laptop zf2 (master)]$ git request-pull origin/master zendframework zendframework/master
The following changes since commit ef6320a48cfe3dbdf28421a78f007e2b304c9fc7:
Merge branch 'hotfix/2889' (2012-11-05 09:18:52 -0600)
are available in the git repository at:
https://github.com/zendframework/zf2.git master
@Xerkus
Xerkus / example.php
Created November 15, 2012 17:50 — forked from ralphschindler/example.php
Zend\Db\Sql\Select example usage
<?php
use Zend\Db\Sql\Select;
// basic table
$select0 = new Select;
$select0->from('foo');
// 'SELECT "foo".* FROM "foo"';
@Xerkus
Xerkus / test.php
Last active December 28, 2015 21:09
Simple test to prove garbage collector does not detect circular reference if SPL object is used.
<?php
gc_enable();
class test
{
public $spl;
public function __construct()
{
---
- name: Test
hosts: 127.0.0.1
connection: local
gather_facts: no
vars:
- modules: ['--with-http_image_filter_module', '--with-http_xslt_module']
- recompile: false
tasks: