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
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 / passgen
Last active March 17, 2019 05:23
password generation command and shell script for creating hash based deterministic passwords from master password and string, eg: `passgen string 16`
head -c 500 /dev/urandom | tr -dc a-z0-9 | head -c 32; echo
@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 / gist:3840496
Last active November 24, 2023 00:21
Mime and mail related RFCs

Mime and mail related RFCs

  1. RFC 1847 Security Multiparts for MIME: Multipart/Signed and Multipart/Encrypted
  2. RFC 2045 Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies
  3. RFC 2046 Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types
  4. RFC 2047 Multipurpose Internet Mail Extensions (MIME) Part Three: Message Header Extensions for Non-ASCII Text
  5. RFC 2049 Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples
  6. RFC 2076 Common Internet Message Headers
  7. RFC 2183 Communicating Presentation Information in Internet Messages: The Content-Disposition Header Field
[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:
let g:vdebug_options= {"marker_default": '◇'}
let g:vdebug_options= {"port": '9006'}
let g:vdebug_features= {'max_data': 50000, 'max_depth': 2, 'max_children': 128}