Skip to content

Instantly share code, notes, and snippets.

Tominoff Sergey ikenfin

Block or report user

Report or block ikenfin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ikenfin /
Created Jan 24, 2019 — forked from ygotthilf/
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out
cat jwtRS256.key
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias c='clear'
# git aliases
alias gad='git add'
alias gcm='git commit -m'
alias gp='git push'
ikenfin /
Created Jan 25, 2018 — forked from parmentf/
Git Commit message Emoji
View Pods_echo_tag.php
Set my_theme_t function as allowed for pods echo tag
function my_theme_pods_template_echo_tag_allowed_functions($funcs) {
return array_merge($funcs, array('my_theme_t'));
add_filter('pods_template_echo_tag_allowed_functions', 'my_theme_pods_template_echo_tag_allowed_functions');
Add "echo" tag to Pods Template
ikenfin /
Created Oct 27, 2016
Список кодов городов XML API Gismeteo
Код Название
27611 Москва
26062 С.-Петербург
29865 Абакан
22550 Архангельск
34880 Астрахань
29838 Барнаул
34214 Белгород
31510 Благовещенск
View AbstractAdvertisementXMLReader.php
Родительский класс для XML импортеров.
class AbstractAdvertisementXMLReader {
protected $reader;
protected $result = array();
ikenfin / user-exit-example.js
Created Sep 20, 2016
Пример определения ухода пользователя
View user-exit-example.js
Очередь фиксированного размера
function fixedSizeQueue(size) {
var queue = Array.apply(null, []);
queue.fixedSize = size;
queue.trimHead = fixedSizeQueue.trimHead;
queue.push = fixedSizeQueue.push;
return queue;
ikenfin / TestReader.php
Created Sep 15, 2016
XMLReader wrapper test for
View TestReader.php
class TestReader extends AbstractAdvertisementXMLReader {
private $num = 0;
public function parseRow() {
ikenfin / JQCompatibleBlock.js
Created May 23, 2016
Jquery compatible SirTrevor block
View JQCompatibleBlock.js
JQCBlock - jquery compatible sir trevor block (old style)
it may be usefull for legacy jquery dependent code
SirTrevor.JQCompatibleBlock = SirTrevor.Block.extend({
$ : function(selector) {
return $(this.el).find(selector);
View gist:0501aa78b3e1885265c5
<meta http-equiv="refresh" content="0; URL=http://URL.HERE/badbrowser/">
You can’t perform that action at this time.