Skip to content

Instantly share code, notes, and snippets.

View ssh_config_include_1.3_homebrew_backport.patch
--- bash_completion
+++ bash_completion
@@ -1205,6 +1205,39 @@
_known_hosts_real $options "$(_get_cword :)"
} # _known_hosts()
+# Helper function to locate ssh included files in configs
+# This function look for the "Include" keyword in ssh config files and include
+# them recursively adding each result to the config variable
+_included_ssh_config_files()
View out.log
🐟 sw_vers; rvm --version; ruby -v; gem list; bundle install
ProductName: Mac OS X
ProductVersion: 10.12
BuildVersion: 16A323
rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-darwin16.0]
artifactory (2.5.0)
bigdecimal (1.2.4)
builder (3.2.2)
bundle (0.0.1)
View out.log
ProductName: Mac OS X
ProductVersion: 10.12
BuildVersion: 16A323
rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-darwin16.0]
artifactory (2.5.0)
bigdecimal (1.2.4)
builder (3.2.2)
bundle (0.0.1)
bundler (1.12.5)
View with-timeout.log
🐢 lein try org.clojure/core.async
nREPL server started on port 59425 on host 127.0.0.1 - nrepl://127.0.0.1:59425
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_31-b13
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
View a.rb
https://gist.github.com/timvisher/e647654de44e6959a4302998f21e3b67
View source.log
🐗 bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.
🐊 echo $foo
🐚 source <(echo foo=bar)
🐂 echo $foo
View bundle-id
#!/usr/bin/env bash
set -eu
set -x
path="${1:-}"
path="$(basename "$path")"
View stack_trace.txt
vagrant@vagrant-ubuntu-trusty-64:~/tls-test$ java -Dhttps.protocols=TLSv1.1 -cp /home/vagrant/tls-test/target/tls-test-0.1.0-SNAPSHOT-standalone.jar tls_test.core
Exception in thread "main" java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(InputRecord.java:482)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:946)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1344)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1371)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1355)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:543)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:409)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
View nh4.diff
diff --git a/libnethack/src/hack.c b/libnethack/src/hack.c
index 2b9858b..0022186 100644
--- a/libnethack/src/hack.c
+++ b/libnethack/src/hack.c
@@ -206,7 +206,12 @@ resolve_uim(enum u_interaction_mode uim, boolean weird_attack, xchar x, xchar y)
case the correct reaction is to bump into it, but sobj_at will return
true). Note that mem_obj has an offset of 1. */
if (l->mem_obj == BOULDER + 1) {
- return uia_pushboulder;
+ if (!travelling()) {