Skip to content

Instantly share code, notes, and snippets.

View bor's full-sized avatar
🇺🇦

Sergiy Borodych bor

🇺🇦
View GitHub Profile
@braian87b
braian87b / dumb-ap-wired-link.sh
Last active May 4, 2024 15:13
How to setup a Dumb AP, Wired backbone for OpenWRT / LEDE

Git Cheat Sheet

Commands

Getting Started

git init

or

@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
@ymotongpoo
ymotongpoo / gist:1342656
Last active November 22, 2022 01:26
extract AAC audio from flv, and convert aac to mp3 using ffmpeg
# using libfaac on Mac OS X 10.6.8
# -vn : not copying video
# -acodec : specify codec used in flv file
# -ac : channels. 1 is for mono, 2 is for stereo
# -ab : specify bitrate for output file (note that rate is not kbps but bps)
# -ar : sampling frequency (Hz)
# -threads: number of threads for encoding
# "-strict experimental" is necessary to use libfaac
ffmpeg -y -i xxxxxxxxxxx.flv -vn -acodec aac -ac 2 -ab 128000 -ar 44100 -threads 4 -strict experimental xxxxx.m4a
@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
@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

@bor
bor / phpcs-git-hook-pre-receive
Created September 30, 2011 11:27
PHP CodeSniffer pre-receive hook for git
#!/bin/sh
# PHP CodeSniffer pre-receive hook for git
PHPCS_BIN="/usr/bin/phpcs"
PHPCS_CODING_STANDARD="PEAR"
# use coding standart dir from local repo
PHPCS_DIR_LOCAL=0
TMP_DIR=$(mktemp -d --tmpdir phpcs-pre-receive-hook.XXXXXXXX)
mkdir "$TMP_DIR/source"
@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 / 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"