This file contains 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
joe@faultline:~$ echo "require('sys').puts('lol');" | node | |
readline:44 | |
stdio.setRawMode(true); | |
^ | |
Error: ENOTTY, Inappropriate ioctl for device | |
at new Interface (readline:44:11) | |
at Object.createInterface (readline:19:10) | |
at new REPLServer (repl:53:27) | |
at Object.start (repl:147:10) |
This file contains 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
joe@faultline:~$ echo "require('sys').puts('lol');" | node | |
readline:44 | |
stdio.setRawMode(true); | |
^ | |
Error: ENOTTY, Inappropriate ioctl for device | |
at new Interface (readline:44:11) | |
at Object.createInterface (readline:19:10) | |
at new REPLServer (repl:53:27) | |
at Object.start (repl:147:10) |
This file contains 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
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/dir.h> | |
#include <dirent.h> | |
#include <unistd.h> | |
#include <string.h> | |
void find_dir(char *path, char *dir); | |
int main(int argc, char *argv[]) |
This file contains 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
source 'http://rubygems.org' | |
gem 'rails', '3.0.7' | |
gem 'pg' | |
gem 'acts_as_commentable', '>= 3.0.1' | |
# gem 'acts-as-taggable-on', '>= 2.0.6' | |
gem 'authlogic', :git => 'git://github.com/crossroads/authlogic.git', :branch => 'rails3' | |
gem 'haml', '>= 3.1.1' | |
gem 'sass', '>= 3.1.1' | |
gem 'is_paranoid', :git => 'git://github.com/crossroads/is_paranoid.git', :branch => 'rails3' |
This file contains 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
void daemonize() | |
{ | |
pid_t pid; | |
switch(fork()) | |
{ | |
case 0: | |
if ((pid = setsid()) == -1) | |
{ | |
perror("setsid"); | |
exit(1); |
This file contains 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
require 'net/http' | |
require 'uri' | |
require 'webrick' | |
require 'cgi' | |
require 'rack' | |
require 'base64' | |
require 'zlib' | |
url = URI.parse('http://pwn508.ddtek.biz:52719/') | |
req = Net::HTTP::Get.new(url.path) |
This file contains 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
joe@faultline:~/Dev/acts_as_audited(rails-3.1)$ bundle exec rspec specs | |
/Users/joe/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/rspec-core-2.4.0/lib/rspec/core/configuration.rb:387:in `load': no such file to load -- /Users/joe/Dev/acts_as_audited/specs (LoadError) | |
from /Users/joe/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/rspec-core-2.4.0/lib/rspec/core/configuration.rb:387:in `block in load_spec_files' | |
from /Users/joe/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/rspec-core-2.4.0/lib/rspec/core/configuration.rb:387:in `map' | |
from /Users/joe/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/rspec-core-2.4.0/lib/rspec/core/configuration.rb:387:in `load_spec_files' | |
from /Users/joe/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/rspec-core-2.4.0/lib/rspec/core/command_line.rb:18:in `run' | |
from /Users/joe/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/rspec-core-2.4.0/lib/rspec/core/runner.rb:55:in `run_in_process' | |
from /Users/joe/.rvm/gems/ruby-1.9.2-p290@rails-3.1/gems/rspec-core-2.4.0/lib/rspec/core/runner.rb:46:in `run' | |
from /Users/joe/ |
This file contains 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
joe@faultline:~$ rvm upgrade 1.9.2-p290 1.9.3-p0 | |
Are you sure you wish to upgrade from ruby-1.9.2-p290 to ruby-1.9.3-p0? (Y/n): y | |
Installing new ruby ruby-1.9.3-p0 | |
Installing Ruby from source to: /Users/joe/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)... | |
ruby-1.9.3-p0 - #fetching | |
ruby-1.9.3-p0 - #downloading ruby-1.9.3-p0, this may take a while depending on your connection... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 9330k 100 9330k 0 0 789k 0 0:00:11 0:00:11 --:--:-- 1474k |
This file contains 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
export PATH="/Users/joe/.rvm/gems/ruby-1.9.2-p290/bin:/Users/joe/.rvm/gems/ruby-1.9.2-p290@global/bin:/Users/joe/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/joe/.rvm/bin:$PATH" | |
rvm_env_string='ruby-1.9.2-p290' ; export rvm_env_string | |
rvm_path='/Users/joe/.rvm' ; export rvm_path | |
rvm_ruby_string='ruby-1.9.2-p290' ; export rvm_ruby_string | |
unset rvm_gemset_name | |
RUBY_VERSION='ruby-1.9.2-p290' ; export RUBY_VERSION | |
GEM_HOME='/Users/joe/.rvm/gems/ruby-1.9.2-p290' ; export GEM_HOME | |
GEM_PATH='/Users/joe/.rvm/gems/ruby-1.9.2-p290:/Users/joe/.rvm/gems/ruby-1.9.2-p290@global' ; export GEM_PATH | |
MY_RUBY_HOME='/Users/joe/.rvm/rubies/ruby-1.9.2-p290' ; export MY_RUBY_HOME | |
IRBRC='/Users/joe/.rvm/rubies/ruby-1.9.2-p290/.irbrc' ; export IRBRC |
This file contains 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
joe@faultline:~$ rvm install --trace 1.9.3-p0 | |
--trace 1.9.3-p0 | |
rvm 1.9.1 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/] | |
+ [[ -n '' ]] | |
+ export 'PS4=+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ /scripts/cli : __rvm_parse_args() 717 > [[ -z install ]] | |
+ /scripts/cli : __rvm_parse_args() 719 > [[ 0 -eq 1 ]] |