Skip to content

Instantly share code, notes, and snippets.

View hut8's full-sized avatar
👋

Liam hut8

👋
  • Supervillain Software Group
  • Albany, NY, USA
View GitHub Profile
rvm --trace --version
/home/lbowen/.rvm/scripts/functions/rvmrc:1: parse error near `\n'
+__rvm_parse_args:658> [[ -n 4.3.6 ]]
+__rvm_parse_args:693> [[ -z '' && -n '' ]]
+__rvm_parse_args:696> [[ error == '' || 0 -eq 1 || -n '' ]]
+__rvm_parse_args:16> [[ -n --version ]]
+__rvm_parse_args:18> rvm_token=--version
+__rvm_parse_args:20> (( 0 > 0 ))
+__rvm_parse_args:25> next_token=''
+__rvm_parse_args:28> case --version ([[:alnum:]]*|@*)
( export PS4="+ \${BASH_SOURCE##\${rvm_path:-}} : \${FUNCNAME[0]:+\${FUNCNAME[0]}()} \${LINENO} > " ; set -x ; rvm --version )
+ : 4 > rvm --version
+ : 3 > __rvm_has_opt posix
+ : 3 > [[ -n 4.3.6 ]]
+ : 3 > setopt
+ : 3 > grep '^posix$'
+ : 6 > [[ -n '' ]]
+ : 8 > return 1
+ : 9 > typeset result current_result
+ : 10 > export -a rvm_ruby_args
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC352Wr0o3Aj59Apime+PcTlPBD+jEgvhc0HIEFZkVdqUE6UTTQhMpfsIcGOZjGtIUwSvz+uD4PPae5YQ0VKP4NTKSU3o0Pekr/4DfdsZOMNrpK/ZtcMtvosfq7XIljClzhEwgQCLmDnbf8OLGeRp/2d41jQ63gJgZcaKtbI9tt4DQFR7SgPalzyxjgSq0bvjbe9b/81+dZgGiIa7aHZQphzCowGkrENFjKIJ9DBLGSEIG5BN992bxlnQYKKXp8RGpB0zbzLMxn8A+JufanxugqHQxKAP6H+RQ7qUv839gw9EKftzDXhf7CpfSefgE0xYwUSo9PzNRcIpgQUytg25XP liam@bletchleypark
Installing debugger-ruby_core_source 1.3.4
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/liam/.rvm/rubies/ruby-2.2.0/bin/ruby -r ./siteconf20150408-14997-bomt4h.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
@hut8
hut8 / sshd.go
Last active August 29, 2015 14:20 — forked from jpillora/sshd.go
// A small SSH daemon providing bash sessions
//
// Server:
// cd my/new/dir/
// #generate server keypair
// ssh-keygen -t rsa
// go get -v .
// go run sshd.go
//
// Client:
@hut8
hut8 / sshd.go
Last active August 29, 2015 14:20 — forked from nictuku/sshd.go
package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"code.google.com/p/go.crypto/ssh"
"code.google.com/p/go.crypto/ssh/terminal"
_
___ ___| |___ ___ __ _ _ __
/ __/ __| / __|/ __/ _` | '_ \
\__ \__ \ \__ \ (_| (_| | | | |
|___/___/_|___/\___\__,_|_| |_|
Version 1.8.2
http://www.titania.co.uk
Copyright Ian Ventura-Whiting 2009
@hut8
hut8 / CSS CRT screen effect.markdown
Created November 9, 2015 06:47
CSS CRT screen effect
@hut8
hut8 / this_american_life.py
Created November 24, 2015 00:35
Download this american life
import requests
import os
DEST_PATH = os.path.join(
os.path.expanduser('~'), 'TAM')
os.makedirs(DEST_PATH, exist_ok=True)
print("enter episode number:")
episode = int(input())
@hut8
hut8 / gist:50e961214d2b01a922e3
Created December 7, 2015 18:35
pymongo-issue
2015-12-06 22:35:45.499:processor[DESKTOP-DCPAVOP]:ERROR:unhandled fatal error: localhost:27017: [WinError 10053] An established connection was aborted by the software in your host machine
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\pymongo\pool.py", line 231, in receive_message
return receive_message(self.sock, operation, request_id)
File "C:\Anaconda3\lib\site-packages\pymongo\network.py", line 114, in receive_message
header = _receive_data_on_socket(sock, 16)
File "C:\Anaconda3\lib\site-packages\pymongo\network.py", line 136, in _receive_data_on_socket
chunk = sock.recv(length)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine