Tag Archives: Config

Twitter Follow Back Script

517 sudo gem update –system 518 sudo gem install rubygems-update 519 sudo update_rubygems 520 sudo gem install twitter #!/usr/bin/env ruby require ‘rubygems’ require ‘twitter’ config = YAML::load(open(“.twitter”)) httpauth = Twitter::HTTPAuth.new(config['email'], config['password']) base = Twitter::Base.new(httpauth) base.followers.each do |follower| if !follower.following begin … Continue reading

[Twitter] Follow กลับ คนที่มา Follow เรา

​Script Follow กลับ ด้าวยภาษา ruby ก่อนอื่นต้องลง twitter gem ด้วยคำสั่ง sudo gem install twitter (อย่าลืมอัพเดต ก่อนด้วยนะ) ไฟล์ config มีหน้าตาเป็นแบบนี้นะ FILE (.twitter) email: my_twitter_email password: my_twitter_password #!/usr/bin/env ruby require ‘rubygems’ require ‘twitter’ config = YAML::load(open(“.twitter”)) httpauth = Twitter::HTTPAuth.new(config['email'], config['password']) base = Twitter::Base.new(httpauth) … Continue reading

วิธีติดตั้ง Webserver บน Mandriva Linux

วิธีติดตั้ง Webserver บน Mandriva Linux ขั้นแรกพิมพ์ urpmi apache เพื่อติดตั้ง apache service httpd start เพื่อสั่ง start apache daemon chkconfig httpd on เพื่อสั่งให้รัน service นี้ทุกครั้งที่เปิดเครื่อง ส่วน config ต่างๆน่าจะอยู่ที่ httpd.conf set Document Root ได้ที่นี่แหละ เช่น DocumentRoot /var/www/html

Unix Network Programming [Installation-Command]

  command ตอนที่จะ config lib เดี๋ยวกลับมาเขียนต่อ    950  mkdir OS2   951  cd OS2   952  wget http://ftp.icm.edu.pl/packages/books/stevens.unpv12e/unpv12e.tar.gz   953  gunzip -c unpv12e.tar.gz | tar -xvf –   954   cd unpv12e   956  ./configure   957  cd lib   … Continue reading