Skip to content

Instantly share code, notes, and snippets.

View dwilkins's full-sized avatar

David H. Wilkins dwilkins

View GitHub Profile
@dwilkins
dwilkins / Pantechisthere.txt
Last active January 1, 2016 23:18
Device is there
# ifconfig
ath0 Link encap:Ethernet HWaddr 90:03:B7:C8:68:9C
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7404 errors:0 dropped:0 overruns:0 frame:0
TX packets:46308 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2084809 (1.9 MiB) TX bytes:4060579 (3.8 MiB)
eth0 Link encap:Ethernet HWaddr D0:57:85:7B:7F:DE
@dwilkins
dwilkins / route.txt
Last active January 1, 2016 23:19
Route output of Ar.Drone with Pantech
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.32.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 ath0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
224.0.0.0 * 240.0.0.0 U 0 0 0 ath0
----------- With default route ---------------
# route add default eth0
@dwilkins
dwilkins / gpsinfo.xml
Created January 3, 2014 15:02
UML295 GPS Information
<picaso version="1.0.0">
<p-question>
<uri>http://192.168.32.2:80/gps</uri>
<id>unknown</id>
</p-question>
<p-answer>
<time>2014-01-03T14:59:48.862Z</time>
<id>UML295_1bd60462-1961-4677-a064-f51a45a515a8</id>
<component>wireless</component>
<subcomponent>cdma</subcomponent>
@dwilkins
dwilkins / openvpnerrors.txt
Created January 5, 2014 03:51
OpenVPN stuff
Sun Jan 5 03:50:02 2014 OpenVPN 2.3.2 arm-none-linux-gnueabi [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Jan 2 2014
Sun Jan 5 03:50:02 2014 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Sun Jan 5 03:50:02 2014 WARNING: file '/data/video/openvpn/openvpn/keys/ardrone.key' is group or others accessible
Sun Jan 5 03:50:02 2014 Socket Buffers: R=[110592->131072] S=[110592->131072]
Sun Jan 5 03:50:02 2014 UDPv4 link local: [undef]
Sun Jan 5 03:50:02 2014 UDPv4 link remote: [AF_INET]162.243.25.139:1194
Sun Jan 5 03:50:02 2014 TLS: Initial packet from [AF_INET]162.243.25.139:1194, sid=0286fa62 d1c3f994
Sun Jan 5 03:50:02 2014 VERIFY OK: depth=1, C=US, ST=AL, L=Pelham, O=Conecuh, OU=conecuh, CN=turn, name=David Wilkins, emailAddress=dwilkins@conecuh.com
Sun Jan 5 03:50:02 2014 VERIFY OK: depth=0, C=US, ST=AL, L=Pelham, O=Conecuh, OU=conecuh, CN=turn, name=wilkins, emailAddress=dwilkins@conecuh.com
Sun Jan
@dwilkins
dwilkins / ardrone.txt
Created January 5, 2014 04:31
Almost there - logged into the ardrone from the cloud
[root@turn openvpn]# uname -a
Linux turn 3.9.8-300.fc19.i686.PAE #1 SMP Thu Jun 27 19:29:30 UTC 2013 i686 i686 i386 GNU/Linux
#^^^^^^^^^^^^^^^^^^^ cloud server ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[root@turn openvpn]# telnet 192.168.2.1
Trying 192.168.2.1...
Connected to 192.168.2.1.
Escape character is '^]'.
@dwilkins
dwilkins / routes.txt
Created January 5, 2014 05:00
routes
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.101 * 255.255.255.255 UH 0 0 0 tun0
192.168.1.200 192.168.1.101 255.255.255.255 UGH 0 0 0 tun0
192.168.3.0 * 255.255.255.0 U 0 0 0 ath0
192.168.32.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
224.0.0.0 * 240.0.0.0 U 0 0 0 ath0
default 192.168.32.2 0.0.0.0 UG 0 0 0 eth0
@dwilkins
dwilkins / pantech.txt
Created January 5, 2014 19:31
Pantech info from lsusb -v -d 10a9:6064
Bus 002 Device 016: ID 10a9:6064 SK Teletech Co., Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
@dwilkins
dwilkins / rfcomm_wont_upload.patch
Created January 12, 2014 05:22
Patch for avrdude to make rfcomm devices work again
Index: ser_posix.c
===================================================================
--- ser_posix.c (revision 1255)
+++ ser_posix.c (working copy)
@@ -315,6 +315,7 @@
static int ser_send(union filedescriptor *fd, unsigned char * buf, size_t buflen)
{
int rc;
+ int retries = 10;
unsigned char * p = buf;
@dwilkins
dwilkins / rfcomm.conf
Created January 12, 2014 08:57
rfcomm.conf example
rfcomm0 {
bind yes;
# Replace the device address with the address of your bluetooth serial device
device 20:13:10:25:40:43;
# channel 1 is VERY IMPORTANT
channel 1;
comment "Bluetooth Serial";
}
<% ['production', 'development', 'test','import'].each do |env| %>
<%= env %>:
database: <%= "#{Rails.root.basename.to_s.underscore}_development" %>
adapter: postgresql
encoding: unicode
pool: 5
username:
password:
min_messages: warning
host: localhost