Skip to content

Instantly share code, notes, and snippets.

View rjohnson-ucar's full-sized avatar

Richard Johnson rjohnson-ucar

  • UCAR
View GitHub Profile
@rjohnson-ucar
rjohnson-ucar / GigaVUE 2404 & Other Factory Reset Instructions.rtf
Created September 19, 2017 18:47
How to factory reset your GigaVUE 2404 and other models of similar vintage when you have lost your root and superuser passwords
GigaVue 2404 & Other Factory Reset Instructions
Do this when you have lost the root password and all superuser passwords for a GigaVUE 2404 or other models of similar vintage.
Summary
Get into RedBoot ROM environment on console serial port via Control-C at boot. Issue reset command to restore factory defaults. Log in using default root password and set a new root password. Then rebuild configurations.
Steps
@rjohnson-ucar
rjohnson-ucar / CWM-Tether-vs-OpenVPN.txt
Created May 28, 2016 15:44
Error loading /tmp/tun.kext in Clockworkmod's Tether.app -- I uninstalled OpenVPN to work around this
An "Error loading /tmp/tun.kext" in Clockworkmod's Tether.app for the Mac typically (often?) means that Tether.app failed to detect and unload an interfering tun/tap kext.
Tether.app thus gets an error from the OS when it tries to insert itself into an already occupied spot.
CWM Tether.pp does OK unloading the kexts for TunnelBlick (and probably Viscosity, though I don't have that). However, the OpenVPN kexts weren't found and turned down by Tether.app as of May 2016.
My solution was to uninstall OpenVPN completely. I only had OpenVPN present to see it fail for data center VLAN access, and had months ago switched to TunnelBlick for production use.
After I completely uninstalled OpenVPN, Tether.app can load its kext, and tethering works for me.
@rjohnson-ucar
rjohnson-ucar / PyV8 in Kali for peepdf.txt
Last active November 30, 2017 19:45
Installing PyV8 in Kali for use with peepdf
Installing PyV8 in Kali for use with peepdf
Kali 2016.1 rolling comes with peepdf 0.3, but it doesn't at present have PyV8 for javascript. peepdf may tell you this sad news. Here, we find out how to be happier.
First, we solve some dependencies. v8 relies upon boost. The dependencies aren't packaged up nicely, so builds will fail. You can fix that with an apt-get of dev packages
apt-get install libboost-python-dev
apt-get install libboost-thread-dev
Then we get v8 and PyV8 from old googlecode and put them in /usr/local/src
@rjohnson-ucar
rjohnson-ucar / Android Upgrade when OTA fails.txt
Last active November 30, 2017 19:43
Android Upgrade when OTA fails
2016-03-19
Here are a couple of options for getting to latest desired Android release when OTA fails on your Google Nexus.
Option 1 (manual OTA chain) may allow preservation of root access.
Option 2 (flashing new OS but not userdata) will require re-rooting if root access is needed.
Each of these options presumes you have installed and in your $PATH 'android', 'adb', 'fastboot', and other parts they need from the "Android SDK Tools" and "Android SDK Platform-tools" packages at http://developer.android.com/sdk/installing/index.html?pkg=tools and http://developer.android.com/sdk/index.html#Other
Also, you want to be relatively current on the release versions per http://tools.android.com/recent/updatingsdkfromcommand-line
$ android list sdk