Skip to content

Instantly share code, notes, and snippets.

View wenzowski's full-sized avatar

Alec Wenzowski wenzowski

View GitHub Profile
@wenzowski
wenzowski / Readme.md
Created April 23, 2018 23:31
drupalwxt/wxt

drupalwxt/wxt

Patches necessary to change install folder location from html/ to web/

@wenzowski
wenzowski / 1. ExampleProto.js
Last active August 29, 2015 14:10
module pattern with require
function construct(ctor) {
function P(args) { return ctor.apply(this, args) }
P.prototype = ctor.prototype
return function create(args) {
return new P(args)
}
}
module.exports = ExampleProto
function ExampleProto() {
@wenzowski
wenzowski / $ mocha
Created February 19, 2014 08:43
test suite for josephg/node-browserchannel
72 passing (5s)
1 pending
4 failing
1) server The server gives the client correctly formatted backchannel data if TYPE=html:
Uncaught AssertionError: "<html><body><script>try {parent.m(\"[[1,[\\\"hello\\\",\\\"there\\\",null,1000,{},[],[555]]]]\\n\")} catch(e) {}</script>\n7cca === "<html><body><script>try {parent.m(\"[[1,[\\\"hello\\\",\\\"there\\\",null,1000,{},[],[555]]]]\\n\")} catch(e) {}</script>\n7cca
+ expected - actual
<html><body><script>try {parent.m("[[1,[\"hello\",\"there\",null,1000,{},[],[555]]]]\n")} catch(e) {}</script>
@wenzowski
wenzowski / grunt
Created July 5, 2013 17:40
xolvio/rtd#27 working with karma@0.8.5
$ grunt
Downloading http://chromedriver.googlecode.com/files/chromedriver2_mac32_0.8.zip
.................................
Downloading http://selenium.googlecode.com/files/selenium-server-standalone-2.32.0.jar
................................................................................
................................................................................
.................
File "/Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/../../test/rtd/lib/bin/" created.
Launching Selenium-server on port 4444
$ ./rtd --debug
npm WARN package.json growl@1.7.0 No repository field.
npm WARN package.json dateformat@1.0.2-1.2.3 No repository field.
npm WARN package.json assert-plus@0.1.2 No repository field.
npm WARN package.json ctype@0.5.2 No repository field.
Running "bgShell:killAll" (bgShell) task
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/node_modules/grunt-bg-shell/tasks/bg-shell.coffee
Running "downloadAndOrStartSelenium" task
[D] Task source: /Volumes/Wenzowski-HD/Users/alex/code/github/real-time-development-with-meteor/test/rtd/Gruntfile.js
@wenzowski
wenzowski / zsh
Created July 4, 2013 02:32
RTD debug
$ nvm install 0.10.12
Now using node v0.10.12
$ npm i -g meteorite
meteorite@0.6.6 /Users/alex/.nvm/v0.10.12/lib/node_modules/meteorite
├── colors@0.6.0-1
├── wrench@1.5.1
├── underscore@1.4.4
├── optimist@0.6.0 (wordwrap@0.0.2, minimist@0.0.1)
├── fstream@0.1.22 (inherits@1.0.0, rimraf@2.2.0, graceful-fs@1.2.2, mkdirp@0.3.5)
@wenzowski
wenzowski / #1.1 TekSavvy DNS#1 IPv4
Created April 26, 2013 07:14
Alcatel Lucent "Cellpipe" 7130 breaks cURL
$ dig @206.248.154.22 A ent.io [ruby-1.9.3-p392]
; <<>> DiG 9.8.3-P1 <<>> @206.248.154.22 A ent.io
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20694
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 0
;; QUESTION SECTION:
$ /usr/local/opt/curl/bin/curl --version
curl 7.30.0 (x86_64-apple-darwin12.3.0) libcurl/7.30.0 OpenSSL/0.9.8r zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz
@wenzowski
wenzowski / osx 10.8 terminal
Created April 20, 2013 03:20
it shouldn't be failing...but it is
$ time curl -I http://rvm.io/binaries/ubuntu/12.04/i386/ruby-2.0.0-p0.tar.bz2 --trace-time --trace-ascii -
23:17:04.488093 == Info: About to connect() to rvm.io port 80 (#0)
23:17:04.488482 == Info: Trying 208.85.148.213...
23:17:04.568784 == Info: connected
23:17:04.568858 == Info: Connected to rvm.io (208.85.148.213) port 80 (#0)
23:17:04.568996 => Send header, 186 bytes (0xba)
0000: HEAD /binaries/ubuntu/12.04/i386/ruby-2.0.0-p0.tar.bz2 HTTP/1.1
0041: User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0
0081: OpenSSL/0.9.8r zlib/1.2.5
009d: Host: rvm.io
$ speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from TekSavvy Solutions (69.196.189.53)...
Selecting best server based on ping...
Hosted by Nexicom Inc. (Toronto, ON) [2.30 km]: 79.711 ms
Testing download speed........................................
Download: 16.02 Mbit/s
Testing upload speed..................................................
Upload: 6.73 Mbit/s