Skip to content

Instantly share code, notes, and snippets.

View hut8's full-sized avatar
✍️
Writing code!

Liam hut8

✍️
Writing code!
  • Supervillain Software Group
  • Albany, NY, USA
  • 05:52 (UTC -04:00)
View GitHub Profile
2015-12-07T02:32:21.195Z I WRITE [conn9] insert contributions.contributions query: { _id: ObjectId('5664efb56488664744e2e49e'), type: "IssueCommentEvent", repo: "petrockblog/RetroPie-Setup", issue_number: 687, _event_id: "2607630517", action: "created", user: "joolswills", created_at: "2015-02-25T22:20:05+00:00", issue_url: "https://github.com/petrockblog/RetroPie-Setup/issues/687", comment_body: "thanks - yeh will be doing a loop to manage it (and likely will stick it in a function). Just need to sort out how to handle the settings.
", _user_lower: "joolswills", comment_id: 76073328, comment_url: "https://github.com/petrockblog/RetroPie-Setup/issues/687#issuecomment-76073328", _repo_lower: "petrockblog/retropie-setup" } ninserted:1 keyUpdates:0 writeConflicts:0 numYields:0 locks:{ Global: { acquireCount: { r: 1, w: 1 } }, Database: { acquireCount: { w: 1 } }, Collection: { acquireCount: { w: 1 } } } 183ms
2015-12-07T02:32:21.195Z I COMMAND [conn9] command contributions.$cmd command: insert { insert: "
@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
@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 / CSS CRT screen effect.markdown
Created November 9, 2015 06:47
CSS CRT screen effect
_
___ ___| |___ ___ __ _ _ __
/ __/ __| / __|/ __/ _` | '_ \
\__ \__ \ \__ \ (_| (_| | | | |
|___/___/_|___/\___\__,_|_| |_|
Version 1.8.2
http://www.titania.co.uk
Copyright Ian Ventura-Whiting 2009
@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"
@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:
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.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC352Wr0o3Aj59Apime+PcTlPBD+jEgvhc0HIEFZkVdqUE6UTTQhMpfsIcGOZjGtIUwSvz+uD4PPae5YQ0VKP4NTKSU3o0Pekr/4DfdsZOMNrpK/ZtcMtvosfq7XIljClzhEwgQCLmDnbf8OLGeRp/2d41jQ63gJgZcaKtbI9tt4DQFR7SgPalzyxjgSq0bvjbe9b/81+dZgGiIa7aHZQphzCowGkrENFjKIJ9DBLGSEIG5BN992bxlnQYKKXp8RGpB0zbzLMxn8A+JufanxugqHQxKAP6H+RQ7qUv839gw9EKftzDXhf7CpfSefgE0xYwUSo9PzNRcIpgQUytg25XP liam@bletchleypark
( 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