Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# rx script
NIC="wlan0"
CHANNEL="6"
echo "updating wifi ($NIC, $CHANNEL)"
sudo ifconfig $NIC down; sudo iwconfig $NIC mode monitor
sleep 1
Sep 13 20:44:20 pptpd[1374]: CTRL: Client 192.168.1.14 control connection started
Sep 13 20:44:20 pptpd[1374]: CTRL: Starting call (launching pppd, opening GRE)
Sep 13 20:44:20 pptp[1375]: Plugin pptp.so loaded.
Sep 13 20:44:20 pptp[1375]: PPTP plugin version 0.8.5 compiled for pppd-2.4.5, linux-2.6.22.19
Sep 13 20:44:20 pptp[1375]: pppd 2.4.5 started by admin, uid 0
Sep 13 20:44:20 pptp[1375]: Using interface ppp10
Sep 13 20:44:20 pptp[1375]: Connect: ppp10 <--> pptp (192.168.1.14)
Sep 13 20:44:20 miniupnpd[493]: unsupported NAT-PMP version : 2
Sep 13 20:44:20 miniupnpd[493]: unsupported NAT-PMP version : 2
Sep 13 20:44:50 pptpd[1374]: CTRL: EOF or bad error reading ctrl packet length.
Fri Sep 12 22:43:37 2014 : publish_entry SCDSet() failed: Success!
Fri Sep 12 22:43:37 2014 : publish_entry SCDSet() failed: Success!
Fri Sep 12 22:43:37 2014 : PPTP connecting to server 'nicegraham.synology.me' (109.255.134.40)...
Fri Sep 12 22:43:37 2014 : PPTP connection established.
Fri Sep 12 22:43:37 2014 : PPTP set port-mapping for en0, interface: 4, protocol: 0, privatePort: 0
Fri Sep 12 22:43:37 2014 : using link 0
Fri Sep 12 22:43:37 2014 : Using interface ppp0
Fri Sep 12 22:43:37 2014 : Connect: ppp0 <--> socket[34:17]
Fri Sep 12 22:43:37 2014 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1886a573> <pcomp> <accomp>]
Fri Sep 12 22:43:37 2014 : PPTP port-mapping for en0, interfaceIndex: 0, Protocol: None, Private Port: 0, Public Address: 6dff8628, Public Port: 0, TTL: 0.
Tracking Result
JOBNO: 85211379783
Origin Destination Connote DATE PCS
SCS HONG KONG UNITED KINGDOM 2014/4/17 1
DATE TIME LOCATION STATUS
2014/4/17 1841 SCS-HKG CHECK IN BY SCS SCS-HKG-BAR CODE COLLECTOR
2014/4/17 2052 SCS-HKG BAG IN BY STAFF CODE 90010-SCS-HKG
2014/4/19 1245 SCS-HKG EXPORT TO EUROPEAN HUB STATION
2014/4/21 0800 SCS-EU HUB CUSTOMS CLEARANCE DELAY
WARNING: Ignored XML validation warning
org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 119; schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:99)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:433)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:347)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4166)
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:4157)
at com.sun.org.apache.xerces.inter
@nicegraham
nicegraham / gist:8727932
Created January 31, 2014 07:33
authorize instruments
# give access to instruments & co.
sudo security authorizationdb write system.privilege.taskport /var/tmp/system.privilege.taskport.plist
sudo security authorizationdb write com.apple.dt.instruments.process.analysis /var/tmp/com.apple.dt.instruments.process.analysis.plist
sudo security authorizationdb write com.apple.dt.instruments.process.kill /var/tmp/com.apple.dt.instruments.process.kill.plist
@nicegraham
nicegraham / gist:8676431
Created January 28, 2014 21:01
diffusion exception
2014-01-28 20:57:41.233|INFO|Diffusion: BackgroundThreadPool Thread_1|PUSH-000397|Deploying publishers in dar file '/Users/gabell/diffusion/Diffusion4.6.5_01/bin/../deploy/realtime.dar'.|com.pushtechnology.diffusion.publisher.PublisherManagerInstance
2014-01-28 20:57:41.234|INFO|Diffusion: BackgroundThreadPool Thread_1|PUSH-000256|Deploying publishers compiled for Diffusion version '4.5.0'.|com.pushtechnology.diffusion.publisher.PublisherManagerInstance
2014-01-28 20:57:41.420|WARN|Diffusion: BackgroundThreadPool Thread_1|PUSH-000382|Unable to load Publisher config file ../deploy/diffusion-publisher/etc/Publishers.xml.|com.pushtechnology.diffusion.xmlproperties.load.XmlPublishersConfigLoader
com.pushtechnology.diffusion.DiffusionRuntimeException: Failure loading XML Properties 'Publishers.xml'
at com.pushtechnology.diffusion.xmlproperties.XmlBaseProperties.loadProperties(XmlBaseProperties.java:229)
at com.pushtechnology.diffusion.xmlproperties.XmlBaseProperties.<init>(XmlBaseProperties.java:98)
at com.push
14:41:36 <nirvdrum_> asavchuk: You broke the grid.
14:41:38 <Dave_B_> using hub 2.35 throughout.... with node on 2.34 it works fine
14:41:40 → cgoldberg joined (~cgoldberg@c-174-63-110-226.hsd1.ma.comcast.net)
14:41:42 <Dave_B_> with node on 2.35 it doesn't
14:41:58 <nirvdrum_> This game is growing pretty tiresome.
14:42:21 <asavchuk> nirvdrum_: how ?
14:42:21 <Dave_B_> the changelog shows 'Updated operadriver to 1.4.' .... anyone know if that means I need to change how i tell it where to look?
14:42:27 <Dave_B_> I'm still using OPERA_PATH
14:42:36 <nirvdrum_> By changing the isAlive check for status call that older nodes don't support.
14:42:47 <nirvdrum_> It's completely taken my cluster of ios-drivers offline.
@nicegraham
nicegraham / gist:6185779
Created August 8, 2013 15:45
ios-driver capabilites
https://github.com/ios-driver/ios-driver/blob/dev/common/src/main/java/org/uiautomation/ios/IOSCapabilities.java
{ "variation" => "Regular", "simulator" => true, "device" => "iphone", "language" => "en", "locale" => "en_GB", "CFBundleName" => "InternationalMountains", "CFBundleVersion" => "1.1" }
https://travis-ci.org/ios-driver/ios-driver/builds/9625276
$ grep -A 10 system.privilege.taskport /etc/authorization
<key>system.privilege.taskport</key>
<dict>
<key>allow-root</key>
<true/>
<key>class</key>
<string>user</string>
<key>comment</key>