Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block braian87b

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
braian87b /
Created Mar 3, 2016 — forked from joneskoo/
Clone all my gists automatically (gist backup?)
#!/usr/bin/env python
# Git clone all my gists
import json
import urllib
from subprocess import call
from urllib import urlopen
import os
USER = os.environ['USER']
braian87b / testing extroot
Last active Mar 7, 2017
Testing ext-root rootfs on SD Card for PogoPlug Mobile
View testing extroot
# This commands executed on OpenWrt on 128mb internal Flash on a PogoPlug Mobile
# Yet something is missing to make it work, but I think I am close
# Install some stuff
opkg install usbutils
opkg install fdisk
opkg install kmod-usb-storage block-mount kmod-fs-ext4
opkg install e2fsprogs
# List Partitions on SD
braian87b /
Last active May 24, 2017
How to Setup an OpenWRT / LEDE box to rip Floppy Disks data
# This script allow to setup a working OpenWRT / LEDE router with two USB ports
# or a USB Hub with a PenDrive and a Floppy Disk USB Drive,
# it will automatically create a Floppy Disk image and copy all data to a directory too.
# Optionally (disabled because it takes ages) will erase all data and blank it and format it.
# Floppy Disk rip process takes about 50 seconds, erasing and formating idk but takes more than 3 minutes.
opkg update
# Needed to mount filesystems
opkg install block-mount
braian87b /
Last active Aug 6, 2017
Additional VLAN 3 for WAN2 on tl-wr1043nd-v2, tl-wdr3600-v1 and tl-wdr4300-v1 OpenWRT / LEDE
# This is done by luci (it just sets defaults and assigns an ID to each vlan entry)
uci set network.@switch[0].mirror_source_port='0'
uci set network.@switch[0].mirror_monitor_port='0'
uci set network.@switch_vlan[0].vid='1'
uci set network.@switch_vlan[1].vid='2'
# For tl-wr1043nd-v2:
# Switch, LAN (on tl-wr1043nd-v2 we must enable tagging on CPU port 0)
uci set network.@switch_vlan[0].ports='0t 1 2 3 4' # previously '0 1 2 3 4'
# Switch, WAN
braian87b /
Last active Aug 7, 2017
How to setup Routed Client for OpenWRT / LEDE
Refer to image:
Instrucciones en español:
# Delete existing wireless interfaces:
uci del wireless.@wifi-iface[-1]
uci del wireless.@wifi-iface[-1]
uci del wireless.@wifi-iface[-1]
# Important, to avoid conflicts with phisical WAN port (you will not be using it, if you want to use it too you had to use MWAN3)
braian87b /
Last active Aug 7, 2017
Como configurar Cliente Enrutado para OpenWRT / LEDE
Ver imagen:
English instructions:
Si tu Router es el de la izquierda del grafico:
# Borras interfaces wifi que tengas:
uci del wireless.@wifi-iface[-1]
uci del wireless.@wifi-iface[-1]
uci del wireless.@wifi-iface[-1]
braian87b /
Last active Aug 8, 2017
Equal Cost Routing (OpenWrt - LEDE)

The firmware is designed for installation on a single-disk network drive Western Digital 'MyBook Live'. It is built on the basis of the project LEDE (ex-OpenWRT):

This version assumes that the installation is performed on a clean hard disk.


To install, you need a computer with a Linux system installed, or bootable from an external media Linux system such as Live-CD, Live-USB, etc. The firmware is downloaded from, the installation script uses the following utilities: sgdisk, mke2fs, lsblk.

braian87b /
Last active Aug 28, 2017
OpenWRT - LEDE uci-defaults for TP-LINK Routers for default factory SSID and KEY
braian87b / wrtbwmon-instructions.txt
Last active Aug 29, 2017
Instructions to get properly working wrtbwmon from
View wrtbwmon-instructions.txt
# Instructions to get properly working wrtbwmon from
# More info on:
# Remove previous package if present
root@OpenWrt:~# opkg remove wrtbwmon
root@OpenWrt:~# cd /tmp
# Download (search for latest ipk url on
root@OpenWrt:/tmp# wget
Connecting to (
Connecting to (
You can’t perform that action at this time.