Tag: Config’
Twitter Follow Back Script
- by NAzT
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 base.friendship_create(follower.id, true) rescue puts "An error occurred: #{$!}" end puts "Created friendship with #{follower.screen_name}" end end
แล้วใน .twitter ก็จะเก็บ .twitter
email: traffy password: -mac
Related Blogs
- Puppet type for HTTP Authentication
- Opera Finds Flash Unappetizing For Web Video [Blockquote] | Gadget …
- mmamixer.com » Genki Sudo – Es Muy Loco!
- Config-Model related project for GSoC 2010 « Ddumont's Blog
- Opera Finds Flash Unappetizing For Web Video [Blockquote]
- Saturday Notebook: The End of the Elbow, Pierce's Struggles …
- Matthew Yglesias » Trouble With the “End User” Exemption
- Japan to decide on U.S. base plan Monday: report | todayshotnews.net
- Opera Finds Flash Unappetizing For Web Video [Blockquote …
- SLAM ONLINE | » Jackson, Artest Put Twitter Beef To Bed
- Michael Jackson's Kids to End up in Care? | Showbiz Spy …
- What is Twitter? It's Social News Networking | SEOptimise
- HTTP authentication from PHP
- Palin: Founders meant to base law on Bible and Ten Commandments …
- "Really!" Weekend Update | Amy Poehler – Seth Meyers – Tina Fey …
- In the Fedora 12 install Google applications – Desktop …
- Travel to Macedonia, the hidden gem of Balkans – Sep '09 | Where …
- Car bomb targets military base in Dagestan
- » Chavez Launches Twitter Account, Has 200 Aides Working on it …
- THE END OF MOVIE THEATERS? FCC Will Allow Studios To Send First …
[Pre] GitHub Command (Blog From Terminal)
- by NAzT
nazts-macbook:~ NAzT$history | grep git 68 grails create-app gitdemo 69 cd gitdemo/ 79 cd gitdemo/ 80 git init 81 git add . 82 git commit -m “initial checkin” Read this article »
[Twitter] Follow กลับ คนที่มา Follow เรา
- by NAzT
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)
base.followers.each do |follower| if !follower.following begin base.friendship_create(follower.id, true) rescue puts "An error occurred: #{$!}" end puts "Created friendship with #{follower.screen_name}" end end ได้มาจาก http://travisonrails.com/2009/04/22/Twitter-Gem-Examples
Related Blogs
- Puppet type for HTTP Authentication
- Specops software upgrades password management products …
- Building a More Efficient Ruby Interpreter | My Efficient Planet
- Config-Model related project for GSoC 2010 « Ddumont's Blog
- Matthew Yglesias » Trouble With the “End User” Exemption
- 4 Email Marketing Strategies – Improve Your Sales or Traffic via …
- How do I get started developing Ruby Web applications …
- SLAM ONLINE | » Jackson, Artest Put Twitter Beef To Bed
- Michael Jackson's Kids to End up in Care? | Showbiz Spy …
- What is Twitter? It's Social News Networking | SEOptimise
- HTTP authentication from PHP
- Palin: Founders meant to base law on Bible and Ten Commandments …
- Reach More Customers With An Email Marketing List « Shopping-Mall.net
- Base camp, friends, waiting… « Jordan Romero
- Letitbit Password Generator v1.2 [UPDATED] By HIPER Rapidshare …
- Travel to Macedonia, the hidden gem of Balkans – Sep '09 | Where …
- Citibank Presale Password John Mayer in Bethel, NY …
- Free Presale Password for Rush in San Antonio, TX | Going2theshow.com
- Free Presale Password for John Mayer in First Midwest Bank …
- Email @gmail.com Is No longer Verified By Google
วิธีติดตั้ง Webserver บน Mandriva Linux
- by NAzT
วิธีติดตั้ง 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]
- by NAzT
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
958 make
959 cd ..
960 ls
961 ./configure
962 cd ..
963 cd lib
964 make