Skip to content

Instantly share code, notes, and snippets.

View cowgp's full-sized avatar

Scott Bates cowgp

  • Whistle Labs
  • Escondido, CA
View GitHub Profile
@cowgp
cowgp / badSSID.txt
Created April 2, 2019 20:20
testing bad SSID characters
config wifi-device 'mt7628'
option type 'mt7628'
option vendor 'ralink'
option band '2.4G'
option channel 'auto'
option autoch_skip '12;13;'
option wifimode '9'
option bw '1'
option country 'US'
option region '1'
@cowgp
cowgp / README.md
Last active September 7, 2018 10:57
GL-MT300N-V2 Wifi Toggle (IOT Testing)

GL-MT300N-V2 Automated Wifi Toggle for IOT Testing

Script setup

  1. Connect to your GL-MT300N router's Wifi network
  2. go to 192.168.8.1 and perform initial setup including setting a password for admin/ssh access
  3. under internet setup, add a "repeater" wifi to make the GL-MT300N bridge to a functional wifi network.
  4. ssh into router and use password setup above.
ssh root@192.168.8.1
@cowgp
cowgp / mapbox crash stacktrace
Created June 22, 2016 07:09
mapbox crash stacktrace for Fatal Exception: std::runtime_error: in get<T>()
Crashed: Map
0 WhistleApp 0x10058e52c CLSProcessRecordAllThreads + 152
1 WhistleApp 0x10058e52c CLSProcessRecordAllThreads + 152
2 WhistleApp 0x10058e94c CLSProcessRecordAllThreads + 1208
3 WhistleApp 0x10057f800 CLSHandler + 48
4 WhistleApp 0x10058ce50 __CLSExceptionRecord_block_invoke + 92
5 libdispatch.dylib 0x182d4d47c _dispatch_client_callout + 16
6 libdispatch.dylib 0x182d58728 _dispatch_barrier_sync_f_invoke + 100
7 WhistleApp 0x10058c8fc CLSExceptionRecord + 204
8 WhistleApp 0x10058c480 CLSTerminateHandler() + 568
@cowgp
cowgp / iOS changelog
Created October 22, 2015 22:46
changelog for whistle iOS
build 239:
bug fixes
——————————————
• set some default values when server responds with null
• removed attempt to resync dog data that might have been corrupting parameters used by map.
build 238:
@cowgp
cowgp / newsite.sh
Created February 24, 2015 19:03
Script for automating creation of subdomains on an EC2 instance. Assumes NGINX and Supervisord are driving the web/node.js sites.
#!/bin/bash
#
# launch script with: sudo ./newsite.sh
#
echo -e "What's a short name for your site? (ex. sbapi):"
read nickname
echo -e "What's the full domain for the site? (ex. sbapi.uncorkedstudios.com):"
read siteurl
@cowgp
cowgp / gist:b05458485e9b9cfac1fc
Created June 6, 2014 15:58
Raw email with headers
Delivered-To: scott.bates@22greystreet.com
Received: by 10.217.142.71 with SMTP id es49csp143332web;
Mon, 2 Jun 2014 22:46:12 -0700 (PDT)
X-Received: by 10.236.47.201 with SMTP id t49mr11288876yhb.123.1401774372447;
Mon, 02 Jun 2014 22:46:12 -0700 (PDT)
Return-Path: <SRS0+qt6O=3A=glorybee.com=Alan.Turanski@registrar-servers.com>
Received: from eforward3e.registrar-servers.com (eforward3e.registrar-servers.com. [38.101.213.201])
by mx.google.com with ESMTP id r4si589479yhg.205.2014.06.02.22.46.11
for <scott.bates@22greystreet.com>;
Mon, 02 Jun 2014 22:46:12 -0700 (PDT)
@cowgp
cowgp / ucVideo.js
Created January 5, 2012 19:36
Uncorked Javacript Video Playback
/*
This plugin is designed to ease creation of videos, whether they are provided
or Youtube links. The plugin requires the FancyBox extension be present.
First, the createVid() function needs to be called. It can be passed vars and events.
If you would rather pass these separately (in case you want to run createVid() on all
your videos but have them have different events/vars), this is possible by running
addVars(vars) after createVid() has been run.