Skip to content

Instantly share code, notes, and snippets.

View bor's full-sized avatar
🇺🇦

Sergiy Borodych bor

🇺🇦
View GitHub Profile
@Ovid
Ovid / cor.md
Last active September 12, 2021 08:02
Cor—A minimal object system for the Perl core

NAME

Cor — A minimal OO proposal for the Perl core

VERSION

This is version 0.10 of this document.

AUTHOR

@braian87b
braian87b / dumb-ap-wired-link.sh
Last active March 30, 2024 20:21
How to setup a Dumb AP, Wired backbone for OpenWRT / LEDE
@braian87b
braian87b / wireless-link-wds.sh
Last active January 7, 2024 19:31
How to setup Wireless Links to avoid Wired backbone using WDS on Atheros for OpenWRT / LEDE
@braian87b
braian87b / relayd-igmpproxy.sh
Last active October 22, 2023 12:32
How to setup Client Bridged / Client Mode / RelayD and IGMPProxy for OpenWRT / LEDE
# Client Bridged / Client Mode / RelayD and IGMPProxy (It works)
# RelayD is to redirect packages and IGMP is for redirect IGMP packages
# Our network is 192.168.1.0/24
# Steps:
# Configure WAN as static
# We should edit our wan iface and put static IP
uci set network.wan='interface'
uci set network.wan.proto='static'
uci set network.wan.ipaddr='192.168.1.239' # Main Network IP

Git Cheat Sheet

Commands

Getting Started

git init

or

@bor
bor / perl_unused_subs.sh
Last active December 13, 2015 21:18
Find unused subs in project
#!/bin/bash
# Usage:
# ./perl_unused_subs.sh project_dir
# ./perl_unused_subs.sh project_dir another_project_dir_that_can_use_prev
# ACK_OPTIONS="-h" && ./perl_unused_subs.sh project_dir
INC_DIRS=$@
TMP_FILE="$$.pl"
@bor
bor / jQuery.plugin.serializeObject.js
Created July 10, 2012 13:15
jQuery plugin: add .serializeObject() method to jQuery
// 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[o.name] = obj[o.name] === undefined ? o.value :
$.isArray( obj[o.name] ) ? obj[o.name].concat( o.value ) :
[ obj[o.name], o.value ];
@briandfoy
briandfoy / find_unused_subs.pl
Created July 7, 2012 00:51
Find unused Perl subroutines
#!/usr/bin/perl
use v5.14;
use strict;
use warnings;
use PPI;
use Scalar::Util qw(blessed);
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
@bor
bor / height.html
Created June 26, 2012 09:42
jQuery plugin: Scrollable Table with Sticky Headers
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>jQuery.plugin.convertTableToScrollable test</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"></script>
<script type="text/javascript" src="jQuery.plugin.convertTableToScrollable.js"></script>
<style type="text/css">
table {
border-collapse: collapse;
@jcaraballo
jcaraballo / git-branch-between-different-repositories.md
Created March 6, 2012 01:05
How to fork a github repository in bitbucket

#Create bitbucket branch

##Create local branch

$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
  master
* sync