Skip to content

Instantly share code, notes, and snippets.

View mekegi's full-sized avatar

Arsen Abdusalamov mekegi

View GitHub Profile
/usr/bin/php /ssd/native/RussianPost.php
0 at [1, 1]
1 at [1, 5]
2 at [1, 9]
3 at [1, 13]
4 at [1, 17]
5 at [1, 21]
6 at [1, 25]
7 at [1, 29]
8 at [1, 33]
@mekegi
mekegi / MenuPhingTask.php
Created April 17, 2015 11:42
whiptail menu for phing
<?php
/**
* usage:
* example 1
<taskdef name="menu" classname="MenuPhingTask" />
<menu title="select enviropment" choices="dev,staging,hotfix,live" />
<property name="build.env" value="${menu.result}" override="true" />
*
* example 2
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src='http://closure-library.googlecode.com/svn/trunk/closure/goog/base.js'></script>
<script src="http://cdn.sencha.com/ext/gpl/4.2.0/ext-all.js"></script>
<script>
goog.require('goog.dom');
goog.require('goog.dom.classes');
goog.require('goog.style');
@mekegi
mekegi / linphone.reg
Last active December 31, 2015 06:59
fix linphone click to call
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\sip\shell\open\command]
@="\"C:\\Program files\\Linphone\\bin\\linphone.exe\" --workdir \"C:\\Program files\\Linphone\" --call \"%1\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\sip\shell\open\command]
@="\"C:\\Program Files (x86)\\Linphone\\bin\\linphone.exe\" --workdir \"C:\\Program Files (x86)\\Linphone\" --call \"%1\""
<!-- live preview https://jsfiddle.net/duburlan/16vstjxo/2/ -->
<section class="sharing-btns post-share">
<a href="https://www.facebook.com/dialog/share?app_id={{ .Site.Params.facebook_admin }}&amp;display=popup&amp;href={{ .Permalink }}&redirect_uri={{ .Permalink }}"
target="_blank"
title="Поделиться через Facebook"
data-social="Facebook"
class="like__widget swidget_facebook"
></a>
<a href="https://twitter.com/share?url={{ .Permalink }}&amp;text={{ .Title }}&amp;hashtags=some,ololo"