Skip to content

Instantly share code, notes, and snippets.

View jameswhite's full-sized avatar
📁
copying files

James S White jameswhite

📁
copying files
View GitHub Profile
<!DOCTYPE html><html id="atomic" class="NoJs desktop" lang="en-US"><head><script>window.performance && window.performance.mark && window.performance.mark('PageStart');</script><meta http-equiv="content-type" content="text/html; charset=UTF-8"/><title>MLB on Yahoo! Sports - News, Scores, Standings, Rumors, Fantasy Games</title><meta name="keywords" content="MLB, Major League Baseball"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta http-equiv="x-dns-prefetch-control" content="on"/><link rel="dns-prefetch" href="https://s.yimg.com"/><link rel="dns-prefetch" href="//csc.beap.bc.yahoo.com"/><link rel="dns-prefetch" href="//geo.query.yahoo.com"/><link rel="dns-prefetch" href="//y.analytics.yahoo.com"/><link rel="dns-prefetch" href="//b.scorecardresearch.com"/><link rel="dns-prefetch" href="//l.yimg.com"/><link rel="dns-prefetch" href="//yrtas.btrll.com"/><link rel="dns-prefetch" href="//shim.btrll.com"/><link rel="preconnect" href="https://s.yimg.com"/><link rel="preconnect" href="//csc.beap.bc.yahoo.
$ curl -sk -D - http://sports.yahoo.com/mlb/standings
HTTP/1.1 301 Moved Permanently
Date: Tue, 11 Apr 2017 15:41:12 GMT
Via: http/1.1 media-router4.prod.media.bf1.yahoo.com (ApacheTrafficServer [c s f ]), http/1.1 r38.ycpi.bf1.yahoo.net (ApacheTrafficServer [cMsSf ])
Server: ATS
Cache-Control: no-store
Content-Type: text/html
Content-Language: en
Location: http://sports.yahoo.com/mlb/standings/
Content-Length: 8
#!/bin/bash
brew tap osx-cross/avr
brew install avr-libc
brew install dfu-programmer dfu-util
brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi
export KEYMAPNAME="${LOGNAME}"
homeassistant:
pip.installed:
- bin_env: '/usr/bin/pip3'
python3-pip:
pkg.installed
cython3:
pkg.installed
/usr/lib/ruby/2.1.0/net/http.rb:879:in `initialize': No route to host - connect(2) for "10.255.0.230" port 3480 (Errno::EHOSTUNREACH)
from /usr/lib/ruby/2.1.0/net/http.rb:879:in `open'
from /usr/lib/ruby/2.1.0/net/http.rb:879:in `block in connect'
from /usr/lib/ruby/2.1.0/timeout.rb:76:in `timeout'
from /usr/lib/ruby/2.1.0/net/http.rb:878:in `connect'
from /usr/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
from /usr/lib/ruby/2.1.0/net/http.rb:852:in `start'
from /usr/lib/ruby/2.1.0/net/http.rb:1369:in `request'
from /var/lib/gems/2.1.0/gems/httparty-0.14.0/lib/httparty/request.rb:118:in `perform'
from /var/lib/gems/2.1.0/gems/httparty-0.14.0/lib/httparty.rb:560:in `perform_request'
sudo apt-get install nginx
echo "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" | sudo tee /etc/apt/sources.list.d/resilio.list
wget -qO - https://linux-packages.resilio.com/resilio-sync/key.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install resilio-sync
cp /etc/resilio-sync/config.json /etc/resilio-sync/config.json.dist
rslsync --dump-sample-config | sed -e "s/MY_SECRET_1/$(rslsync --generate-secret)/" -e 's/\/home\/user\/bittorrent\/sync_test/\/usr\/share\/nginx\/html/' > /etc/resilio-sync/config.json
service resilio-sync restart
Feb 20 03:42:18 planck hubot[4636]: [Mon Feb 20 2017 03:42:18 GMT+0000 (UTC)] ERROR TypeError: Cannot read property 'length' of undefined
Feb 20 03:42:18 planck hubot[4636]: at /opt/hubot/node_modules/hubot-hockey/src/hubot-hockey.coffee:394:22, <js>:575:34
Feb 20 03:42:18 planck hubot[4636]: at Request._callback (/opt/hubot/node_modules/hubot-hockey/node_modules/seatgeek/lib/seatgeek.js:51:18)
Feb 20 03:42:18 planck hubot[4636]: at Request.self.callback (/opt/hubot/node_modules/hubot-hockey/node_modules/seatgeek/node_modules/request/request.js:199:22)
Feb 20 03:42:18 planck hubot[4636]: at Request.emit (events.js:110:17)
Feb 20 03:42:18 planck hubot[4636]: at Request.<anonymous> (/opt/hubot/node_modules/hubot-hockey/node_modules/seatgeek/node_modules/request/request.js:1036:10)
Feb 20 03:42:18 planck hubot[4636]: at Request.emit (events.js:129:20)
Feb 20 03:42:18 planck hubot[4636]: at IncomingMessage.<anonymous> (/opt/hubot/node_modules/hubot-hockey/node_modules/seatgeek/node_modules/request/request.js:963:
Feb 18 16:46:59 planck hubot[32107]: [Sat Feb 18 2017 16:46:59 GMT+0000 (UTC)] ERROR Stream error: { type: 'error' }
Feb 18 16:47:00 planck hubot[32107]: [Sat Feb 18 2017 16:47:00 GMT+0000 (UTC)] ERROR Stream error: { type: 'error' }
Feb 18 16:47:01 planck hubot[32107]: [Sat Feb 18 2017 16:47:01 GMT+0000 (UTC)] ERROR Stream error: { type: 'error' }
Feb 18 16:47:02 planck hubot[32107]: [Sat Feb 18 2017 16:47:02 GMT+0000 (UTC)] ERROR Stream error: { type: 'error' }
Feb 18 16:47:03 planck hubot[32107]: [Sat Feb 18 2017 16:47:03 GMT+0000 (UTC)] ERROR Stream error: { type: 'error' }
Feb 18 16:47:04 planck hubot[32107]: [Sat Feb 18 2017 16:47:04 GMT+0000 (UTC)] ERROR Stream error: { type: 'error' }
Feb 18 16:47:05 planck hubot[32107]: [Sat Feb 18 2017 16:47:05 GMT+0000 (UTC)] ERROR Stream error: { type: 'error' }
Feb 18 16:47:06 planck hubot[32107]: [Sat Feb 18 2017 16:47:06 GMT+0000 (UTC)] ERROR Stream error: { type: 'error' }
Feb 18 16:47:07 planck hubot[32107]: [Sat Feb 18 2017 16:47:07 GMT+0000 (UTC)] ERROR Fai
grep -q "bcm2835_wdt" /etc/modules || echo "bcm2835_wdt" | sudo tee -a /etc/modules
dpkg -l | grep -q "ii *watchdog" || sudo apt-get install -y watchdog
[ ! -f /etc/watchdog.conf.dist ] && sudo cp /etc/watchdog.conf /etc/watchdog.conf.dist
cat<<EOF | sudo tee /etc/watchdog.conf
max-load-1 = 24
watchdog-device = /dev/watchdog
realtime = yes
priority = 1
EOF
sudo update-rc.d watchdog defaults
20170116 185641.584 getaddrinfo failed for addr ssl://mqtt.hq.thebikeshed.io with rc -2
20170116 185641.584 ssl://mqtt.hq.thebikeshed.io is not a valid IP address
20170116 185641.587 getaddrinfo failed for addr ssl://mqtt.hq.thebikeshed.io with rc -2
20170116 185641.587 ssl://mqtt.hq.thebikeshed.io is not a valid IP address
20170116 185641.592 passed: test test2c. 2 tests run, 0 failures.
20170116 185641.592 Total tests run: 2
20170116 185641.592 verdict pass
root@debian:~# dig +short mqtt.hq.thebikeshed.io
10.255.12.55