This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Are you suffering from this cryptic error? | |
| Are you somewhat familiar with docker but flailing around lost with what could be causing this issue? | |
| Are you trying to export an image somewhere on docker, and import on another machine, and it seems straightforward enough? | |
| Then what you probably did on machine was: | |
| docker save randomimage > foo.tar | |
| and then on the other machine | |
| docker import foo.tar foo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # example to stub out IO::WaitReadable. Spent forever figuring this stupid one out. | |
| class MyError < StandardError | |
| # function to test | |
| def start_ssl_server | |
| begin | |
| @server.accept | |
| rescue IO::WaitReadable | |
| rs,ws,es = Kernel.select([@server], [@server], [@server],10) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| quick hack to extract bitcoin address (OS X): | |
| strings -n 34 FILENAME | grep -E '^.{34}$' | |
| better hacky shell script: | |
| strings FILE | grep -E '^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$' | |
| Hash: ed01ebfbc9eb5bbea545af4d01bf5f1071661840480439c6e5babe8e080e41aa | |
| 115p7UMMngoj1pMvkpHijcRdfJNXj6LrLn | |
| 12t9YDPgwueZ9NyMgw519p7AA8isjr6SMw | |
| 13AM4VW2dhxYgXeQepoHkHSQuy6NgaEb94 |