Skip to content

Instantly share code, notes, and snippets.

@sneilan
sneilan / gist:7bf0e67db7540cb51f0b
Created Mar 15, 2016
Chrome error with latest version of browsermob-proxy
View gist:7bf0e67db7540cb51f0b
(env) vagrant@vagrant-ubuntu-trusty-64:~/Mobile-Checker$ node app.js
listening on *:3000
{ url: 'http://seanneilan.com/', status: true, report: [] }
/home/vagrant/Mobile-Checker/node_modules/selenium-webdriver/lib/promise.js:654
throw error;
^
WebDriverError: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
@sneilan
sneilan / gist:392846946e4dc0e918b3
Created Mar 15, 2016
Mobile Checker Web Driver Erro
View gist:392846946e4dc0e918b3
(env) vagrant@vagrant-ubuntu-trusty-64:~/Mobile-Checker$ node app.js
listening on *:3000
{ url: 'http://seanneilan.com/', status: true, report: [] }
{ [WebDriverError: chrome not reachable
(Session info: chrome=49.0.2623.87)
(Driver info: chromedriver=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a),platform=Linux 3.13.0-65-generic x86_64)] name: 'WebDriverError' }
@sneilan
sneilan / gist:12ead62c04bf72d09a46
Created Jul 21, 2014
forward port 9000 to port 80 on my mac
View gist:12ead62c04bf72d09a46
sudo ipfw add 100 fwd 127.0.0.1,9000 tcp from any to any 80 in
View gist:3f154636f62151641a74
--
-- xmonad example config file for xmonad-0.9
--
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
-- NOTE: Those updating from earlier xmonad versions, who use
-- EwmhDesktops, safeSpawn, WindowGo, or the simple-status-bar
@sneilan
sneilan / gist:3218201
Created Jul 31, 2012 — forked from swannodette/gist:3217582
sudoku_compact.clj
View gist:3218201
(ns sudoku
(:refer-clojure :exclude [==])
(:use clojure.core.logic))
(defn get-square [grid x y]
(for [x (range x (+ x 3))
y (range y (+ y 3))]
(get-in grid [x y])))
(defn init [grid [pos value]]
View gist:2424481
a = 1 # 1000^0
i = 0 # represents the largest power of 1000 we found
# find the largest power of 1000 that fits into n
while a <= n:
#print a,n,i
if a*1000 <= n:
a *= 1000
i += 1
else:
You can’t perform that action at this time.