Skip to content

Instantly share code, notes, and snippets.

Avatar

braian87b

View GitHub Profile
@koczaj
koczaj / Iomega_ez_debian_5.2.9
Last active May 28, 2020
Iomega_ez_debian_5.2.9
View Iomega_ez_debian_5.2.9
##based on braian87b/pure_debian_on_iomega_ez.sh https://gist.github.com/braian87b/b5a4c5f20d1112473c470b096df766a3#file-pure_debian_on_iomega_ez-sh-L114
#download rootfs
root@osmc:/home/osmc/529# wget https://www.dropbox.com/s/pa2cbg93qgcnp8w/Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
root@osmc:/home/osmc/529# mkdir Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi
root@osmc:/home/osmc/529# tar -jxvf Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 -C Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi
# These are the files:
root@osmc:/home/osmc/529# ls -lht ./Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi
View provision-wifi.sh
#!/bin/sh
################################################################
# Individual channel setting per distinct AP
case `uci get system.@system[0].hostname` in
"ap1")
CHANNELS="36 1"
;;
"ap2")
View human_log.py
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
View openwrt.md

OpenWRT

Initial

Access router

ssh root@192.168.1.1

Install gui

@nmcv
nmcv / sqlite_shell.py
Created Jun 9, 2014
Minimal SQLite shell from Python docs
View sqlite_shell.py
# A minimal SQLite shell for experiments
import sqlite3
con = sqlite3.connect(":memory:")
con.isolation_level = None
cur = con.cursor()
buffer = ""
@vbajpai
vbajpai / opkgclean.sh
Last active Jan 31, 2020
If opkg runs out of space, it will not remove the files it was installing. Run this custom script in order recover the space by removing these files and the installed dependencies.
View opkgclean.sh
#!/bin/sh
#takes one argument/parameter: the name of the package which didn't install correctly and should be removed along with its dependencies
#do opkg update first
#example: ./opkgremovepartlyinstalledpackage.sh pulseaudio-daemon
#get list of all packages that would be installed along with package x
opkg update
PACKAGES=`opkg --force-space --noaction install $1 | grep http | cut -f 2 -d ' ' | sed 's/.$//'`
for i in $PACKAGES
do
You can’t perform that action at this time.