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
2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications | |
100% passed | |
7.91 tests/s, 7.91 assertions/s | |
mariash@mariash-mac:~/workspace/test_httpclient $ ruby main.rb -v | |
Loaded suite main | |
Started | |
TestHTTPClient: | |
test_get_chunked_file: [2014-07-29 22:11:37] INFO WEBrick 1.3.1 | |
[2014-07-29 22:11:37] INFO ruby 2.1.2 (2014-05-08) [x86_64-darwin13.0] |
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
(gdb) call (void) close(1) | |
(gdb) call (void) close(2) | |
(gdb) shell tty | |
/dev/pts/1 | |
(gdb) call (int) open("/dev/pts/1", 2, 0) | |
(gdb) call (int) open("/dev/pts/1", 2, 0) | |
(gdb) call (void)rb_backtrace() |
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
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url | |
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation | |
{ | |
if (url != nil && [url isFileURL]) { | |
NSError *error; | |
[[MYFileManager sharedInstance] importAttachment:url.path error:&error]; | |
if (error != nil) { | |
[[MYAlertDisplayer sharedInstance] | |
displayAlert:@"Error" withMessage:@"Failed to import file"]; |
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
[Rack::Lineprof] ===============================================================[0m | |
vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.7.1.180/lib/new_relic/agent/transaction.rb | |
[90m | 32 # Return the currently active transaction, or nil. | |
[0m[90m | 33 def self.current | |
[0m[37m 333.3ms 32234 | 34 self.stack.last | |
[0m[90m | 35 end | |
[0m[90m | 36 | |
[0m[90m .......[0m | |
[90m | 53 |
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
#!/bin/bash | |
# NPM_0_6_12=~/.nvm/v0.6.12/bin/npm NPM_0_6_8=~/.nvm/v0.6.8/bin/npm ./npm-install-problem.sh | |
# Install module with npm from node v0.6.12 and then use npm from node v0.6.8 to rebuild it and see it fail | |
# + exit code is 0 with the force option even on failure | |
# Npm saves install information in package.json so next time npm build is run on package with different configuration it may fail | |
$NPM_0_6_12 install [email protected] | |
cd ./node_modules/bcrypt | |
# package.json was updated with scripts -> install that looks like "node-gyp rebuild" |
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
# copy with preserve updates metadata of file and if file that symlink points to has not been copied yet it fails | |
require "fileutils" | |
`mkdir ./src` | |
`touch ./src/foo` | |
# Important that symlink name goes before source name in alphabetical order (bar points to foo) | |
`ln -s ./src/foo bar` |
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
open('/tmp/f','w'){|f| f << 'sekrit'} | |
f = open('/tmp/f') | |
exec("ruby -e 'p IO.open(#{f.fileno}).read'") | |
# Prints 'sekrit' |
NewerOlder