Skip to content

Instantly share code, notes, and snippets.

Sergiy Borodych bor

  • Kyiv, Ukraine
Block or report user

Report or block bor

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
bor /
Created Sep 7, 2018 — forked from braian87b/
How to setup Wireless Links to avoid Wired backbone using WDS on Atheros for OpenWRT / LEDE
bor /
Created May 23, 2018
echo "Updating package list..."
opkg update > /dev/null
if [ `opkg list-upgradable | cut -d " " -f1 | wc -l` -gt 0 ]; then
echo "Available updates:"
opkg list-upgradable
echo ""
bor /
Created Jul 20, 2014
package Net::SMPP::Packet;
use strict;
use warnings;
use Data::Dumper;
use List::Util qw/first/;
use base qw(Exporter);
our $VERSION = '0.01';
bor /
Last active Dec 13, 2015
Find unused subs in project
# Usage:
# ./ project_dir
# ./ project_dir another_project_dir_that_can_use_prev
# ACK_OPTIONS="-h" && ./ project_dir
bor / jQuery.plugin.serializeObject.js
Created Jul 10, 2012
jQuery plugin: add .serializeObject() method to jQuery
View jQuery.plugin.serializeObject.js
// jQuery plugin: add .serializeObject() method to jQuery
// at this moment (jQuery v1.7.2) where no such method in core
// this method serializes a form into an (arguably more useful) object
(function($,undefined) {
$.fn.serializeObject = function() {
var obj = {};
$.each( this.serializeArray(), function(i,o) {
obj[] = obj[] === undefined ? o.value :
$.isArray( obj[] ) ? obj[].concat( o.value ) :
[ obj[], o.value ];
bor / height.html
Created Jun 26, 2012
jQuery plugin: Scrollable Table with Sticky Headers
View height.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>jQuery.plugin.convertTableToScrollable test</title>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="jQuery.plugin.convertTableToScrollable.js"></script>
<style type="text/css">
table {
border-collapse: collapse;
bor / phpcs-git-hook-pre-receive
Created Sep 30, 2011
PHP CodeSniffer pre-receive hook for git
View phpcs-git-hook-pre-receive
# PHP CodeSniffer pre-receive hook for git
# use coding standart dir from local repo
TMP_DIR=$(mktemp -d --tmpdir phpcs-pre-receive-hook.XXXXXXXX)
mkdir "$TMP_DIR/source"
You can’t perform that action at this time.