Skip to content

Instantly share code, notes, and snippets.

Avatar

Richard Johnson rdump

View GitHub Profile
@rdump
rdump / kubectl-multi-version-brews.md
Last active Nov 17, 2020
kubectl multi-version brews (kubernetes-cli formula)
View kubectl-multi-version-brews.md

kubectl multi-version brews

We need to run multiple versions of kubectl for compatibility with various kubernetes clusters.

It's a bit easier to get and use multiple versions of kubectl using Homebrew than it is using Macports.

With brew, it's simple to:

  • Install a bunch of versions of kubectl (in the kubernetes-cli Formula)
  • Switch between them as needed
@rdump
rdump / Technicolor C2100T DSL modem real DNS.md
Last active Jul 30, 2020
Configuring the Centurylink-sold Technicolor C2100T DSL modem to use real DNS
View Technicolor C2100T DSL modem real DNS.md

Configuring the Centurylink-sold Technicolor C2100T DSL modem to use real DNS

Here's how to get real DNS set up on a Technicolor C2100T modem. This works at minimum when you're doing PPPoE (the usual method) on a C2100T modem sold or rented to you by Centurylink.

Motivation

When you look up a nonexistent domain name, proper DNS service tells you it doesn't exist by returning Nonexistent Domain (NXDOMAIN).

In contrast, even on business lines, Centurylink's DNS service will snipe NXDOMAIN. Centurylink's servers (nameservers at 205.171.2.25 & 205.171.3.25 at least) return a Centurylink web server IP addresses when you should be getting NXDOMAIN.

@rdump
rdump / Android File Transfer on macOS.md
Last active Aug 8, 2020
Simple steps to get Android File Transfer to recognize your phones and tablets on macOS (including 10.13 High Sierra)
View Android File Transfer on macOS.md

Reports of Failures with macOS/Mac OS X and Android File Transfer.app

A quick search on DuckDuckGo or Google when you encounter the "No Android device found" dialog from the 2012 (latest) version of Google's Android File Transfer.app will tell you about multiple others seeing the same problem. Too few (none?) have the following solution.

Launch Order Matters

Do the following in order to have Android File Transfer.app show your Android phone or tablet's file contents.

  1. Connect your Android phone or tablet to your Mac (via USB-C, USB 2/micro-USB, or an adapter between the two, as necessary)
  2. Leave your device in "USB charging this device" mode
  3. Launch your Android File Transfer.app, and wait for "No Android device found"
  4. Switch your device to "Transfer files" mode
  5. You now have Android File Transfer.app displaying your device type along the top of its window, and your folders in the main pane of the window
  6. Transfer to your hearts content
View GigaVUE 2404 & Other Factory Reset Instructions.md

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

@rdump
rdump / PyV8 in Kali for peepdf.txt
Created Nov 30, 2017 — forked from rjohnson-ucar/PyV8 in Kali for peepdf.txt
Installing PyV8 in Kali for use with peepdf
View PyV8 in Kali for peepdf.txt
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
View Android Upgrade when OTA fails.txt
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
@rdump
rdump / CWM-Tether-vs-OpenVPN.md
Last active Nov 30, 2017 — forked from rjohnson-ucar/CWM-Tether-vs-OpenVPN.txt
Error loading /tmp/tun.kext in Clockworkmod's Tether.app on Mac OS X / macOS -- I uninstalled OpenVPN to work around this
View CWM-Tether-vs-OpenVPN.md

CWM Tether.app vs OpenVPN on Mac OS X / macOS

Error description

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 return from the OS when it tries to insert itself into an already occupied spot.

TunnelBlick client works

View keybase.md

Keybase proof

I hereby claim:

  • I am rdump on github.
  • I am tab2space (https://keybase.io/tab2space) on keybase.
  • I have a public key whose fingerprint is A632 B9CE DCF1 B931 65F3 072C D663 13F2 25EF D522

To claim this, I am signing this object:

You can’t perform that action at this time.