Update DynDNS hostname
curl -v -k -u jakobm "https://members.dyndns.org/nic/update?hostname=jakobm.dyndns.org&myip=217.80.116.128&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG"
12379 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
curl -v -k -u jakobm "https://members.dyndns.org/nic/update?hostname=jakobm.dyndns.org&myip=217.80.116.128&wildcard=NOCHG&mx=NOCHG&backmx=NOCHG"
curl -s checkip.dyndns.org
curl -s checkip.dyndns.org|cut -d ":" -f2|cut -d "<" -f1
sudo apt-get install curl
sudo gedit /usr/bin/jaitwit
curl http://rorbuilder.info/api/projectx.cgi?xml_project=%3Cproject%20name=%22micro_blog%22%3E%3Cmethods%3E%3Cmethod%20name=%22post2jaiku%22%3E%3Cparams%3E%3Cparam%20var=%22user%22%20val=%22YourUsername%22/%3E%3Cparam%20var=%22msg%22%20val=%22`echo $@|tr ' ' '+'`%22/%3E%3Cparam%20var=%22location%22%20val=%22YourCity%22/%3E%3Cparam%20var=%22apikey%22%20val=%22YourAccessKey%22/%3E%3C/params%3E%3C/method%3E%3Cmethod%20name=%22post2twitter%22%3E%3Cparams%3E%3Cparam%20var=%22user%22%20val=%22YourUsername%22/%3E%3Cparam%20var=%22msg%22%20val=%22`echo $@|tr ' ' '+'`%22/%3E%3Cparam%20var=%22password%22%20val=%22YourPassword%22/%3E%3C/params%3E%3C/method%3E%3C/methods%3E%3C/project%3E -o /dev/null echo Message Sent!
chmod +x /usr/bin/jaitwit
jaitwit "message here without the quotes"
`curl -k --ftp-ssl -3 -T#{path} -u#{FTP_USER}:#{FTP_PASS} #{FTP_HOST}`
curl -d url=TRACKBACK_URL -d title=TRACKBACK_TITLE -d blog_name=TRACKBACK_BLOG_NAME -d excerpt=TRACKBACK_EXCERPT URL
<?xml version="1.0" encoding="utf-8"?> <response> <error>0</error> </response>
#! /bin/sh #Goto here here=/home/guillaume/Personal cd $here #BBC Lisbon weather id id=0048 #BBC weather RSS feed address feed="http://feeds.bbc.co.uk/weather/feeds/rss/5day/world/${id}.xml" #City city=lisbon #temporary file file="weather${city}" #Weather twitter bot twitbot=weatherlisbon:******* #Timestamp the log file echo .>> $file.log date >> $file.log #Read the RSS feed and filter it curl $feed | grep 'title' | tail -n 1 | perl -wlne'm/title>(.*)<\/title/i && print $1' | sed -e "s/°//g" > $file.txt #Read the forecast into a weather variable read weather < $file.txt #Twit the weather variable away curl --basic --user $twitbot --data status="$weather" http://twitter.com/statuses/update.xml >> $file.log
function curl_download($remote, $local) { $cp = curl_init($remote); $fp = fopen($local, "w"); curl_setopt($cp, CURLOPT_FILE, $fp); curl_setopt($cp, CURLOPT_HEADER, 0); curl_exec($cp); curl_close($cp); fclose($fp); }
#!/bin/bash AUTH="user:password" BASE="http://localhost:3000" METHOD=$1 DEST="$BASE$2" XML=$3 # make sure args were passed if [ $# -eq 0 ]; then echo "usage: ./`basename $0` HTTP-METHOD DESTINATION_URI [XML]" echo "example: ./`basename $0` POST "/accounts" \"<account><name>ed</name><email>ed@ed.com</email></account>\"" exit 1 fi # execute CURL call curl -H 'Accept: application/xml' -H 'Content-Type: application/xml' -w '\nHTTP STATUS: %{http_code}\nTIME: %{time_total}\n' \ -X $METHOD \ -d "$XML" \ -u "$AUTH" \ "$DEST" exit 0
sudo port install curl
cd src
curl -O http://rubyforge.iasi.roedu.net/files/curb/curb-0.1.0.tar.gz
tar -zxvf curb-0.1.0.tar.gz
cd curb-0.1.0.tar.gz
ruby extconf.rb --with-curl-lib=/opt/local/lib/ --with-curl-include=/opt/local/include/
ruby tests/alltests.rb
sudo make install
import pycurl def nullFunc(args): pass try: curl = pycurl.Curl() curl.setopt(pycurl.WRITEFUNCTION, nullFunc) curl.setopt(pycurl.URL, 'http://www.google.it') curl.perform() print "Server SU" except Exception, error: print "Server GIU'"