{"id":241,"date":"2006-01-20T03:55:02","date_gmt":"2006-01-20T10:55:02","guid":{"rendered":"http:\/\/www.gubatron.com\/blog\/?p=241"},"modified":"2006-01-20T03:55:02","modified_gmt":"2006-01-20T10:55:02","slug":"flirting-with-python-a-pastebincom-plugin-for-xchat","status":"publish","type":"post","link":"https:\/\/www.gubatron.com\/blog\/flirting-with-python-a-pastebincom-plugin-for-xchat\/","title":{"rendered":"Flirting with Python &#8211; A pastebin.com plugin for xchat"},"content":{"rendered":"<p>Here&#8217;s the first version of an <a href=\"http:\/\/www.xchat.org\/\">xchat<\/a> plugin some friends from Venezuela and I  wrote.<\/p>\n<p>This is one of our first attempts to code something useful in python that&#8217;ll we hope gets to be used by someone on the opensource community who often uses <a href=\"http:\/\/www.pastebin.com\">pastebin.com<\/a> to show their code and collaborate when they need help.<\/p>\n<p>The idea is to issue <strong>\/pastebin &lt;filepath&gt;<\/strong> and the plugin posts the file automatically in pastebin.com, adding your current nickname and autoselecting the programming language based on the extension of the file. Once published, it sends a message to the channel saying you just posted something, and places a link for everyone to check your code in http:\/\/pastebin.com\/<strong>post_id<\/strong><\/p>\n<p><a title=\"xchat plugin to post files in pastebin directly from the channel\" href=\"http:\/\/www.limewire.org\/blog\/wp-content\/pastebin.py\">Download xchat pastebin.com plugin <\/a><\/p>\n<p>Licensed under the GPL.<\/p>\n<p>Instructions:<br \/>\nSave the file to your <strong>~\/.xchat2\/<\/strong> folder and next time you open xchat the plugin will be loaded automatically, then at any time just type <strong>\/pastebin {path_to_file} <\/strong>and the file will be uploaded to pastebin.com and it will tell the URL where others can see your post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s the first version of an xchat plugin some friends from Venezuela and I wrote. This is one of our first attempts to code something useful in python that&#8217;ll we hope gets to be used by someone on the opensource community who often uses pastebin.com to show their code and collaborate when they need help. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[33],"tags":[],"class_list":["post-241","post","type-post","status-publish","format-standard","hentry","category-gubatron"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5Unzf-3T","jetpack-related-posts":[{"id":481,"url":"https:\/\/www.gubatron.com\/blog\/svn-cant-create-tunnel-the-system-cannot-find-the-file-specified\/","url_meta":{"origin":241,"position":0},"title":"svn: Can&#8217;t create tunnel: The system cannot find the file specified.","author":"gubatron","date":"March 15, 2007","format":false,"excerpt":"I was trying to checkout a project from a subversion repository using Eclipse's Subversive, and I was having problems with a subversion url that starts with \"svn+ssh:\/\/\" This means all the transport has to be done using a \"ssh\" agent. Eclipse's Subclipse plugin was giving me the error: svn: Can't\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":572,"url":"https:\/\/www.gubatron.com\/blog\/list-dir-by-gubatron-list-your-directories-on-a-text-file-with-a-right-click\/","url_meta":{"origin":241,"position":1},"title":"List Dir by Gubatron &#8211; List your directories on a text file with a right click","author":"gubatron","date":"August 12, 2007","format":false,"excerpt":"Last week my wife told me if I knew an easy way (without using the cmd.exe) on Windows to list the contents of a directory, she basically wanted to give her users a one click solution to list the contents of a folder and have them on notepad. So, I\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3699,"url":"https:\/\/www.gubatron.com\/blog\/how-to-run-your-kotlin-gradle-built-app-from-the-command-line\/","url_meta":{"origin":241,"position":2},"title":"How to run your Kotlin gradle built app from the command line","author":"gubatron","date":"July 20, 2017","format":false,"excerpt":"So you build your Kotlin app, you went through the trouble of creating a build.gradle script that you build with gradle assemble this outputs a a \"build\/libs\/kotlin.jar\" .jar file, but you have no clue how to run your Kotlin code from the command line. Doing it by hand with \"java\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":532,"url":"https:\/\/www.gubatron.com\/blog\/how-to-update-file-timestamps-in-python\/","url_meta":{"origin":241,"position":3},"title":"How to update file timestamps in Python","author":"gubatron","date":"May 29, 2007","format":false,"excerpt":"Sometimes you can be real picky like me about timestamps of files, for example, during my wedding we had a few digital cameras, and one of the cameras had its internal clock 4 hours behind. So what better way for a lazy guy like you to change timestamps than writing\u2026","rel":"","context":"In &quot;Code&quot;","block_context":{"text":"Code","link":"https:\/\/www.gubatron.com\/blog\/category\/code\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1059,"url":"https:\/\/www.gubatron.com\/blog\/geek-t-shirt-collection-7-mybloopcom\/","url_meta":{"origin":241,"position":4},"title":"Geek T-Shirt Collection #7 &#8211; MyBloop.com","author":"gubatron","date":"December 19, 2008","format":false,"excerpt":"There's only 2 copies of this shirt, I made them on spreadshirt.com, the other one belongs to Fitim the original founder of MyBloop.com. I believe I'm the 3rd or 4th person to join the project, I did so around 2006, and it wasn't until spring 2008 that we had the\u2026","rel":"","context":"In &quot;Geeklife&quot;","block_context":{"text":"Geeklife","link":"https:\/\/www.gubatron.com\/blog\/category\/geeklife\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":273,"url":"https:\/\/www.gubatron.com\/blog\/snowrss\/","url_meta":{"origin":241,"position":5},"title":"SnowRSS","author":"gubatron","date":"March 18, 2006","format":false,"excerpt":"SnowRSS SnowRSS is an RSS Aggregator engine I wrote in python (Licensed under the GPL). Currently it's been under use in wedoit4you.com and its stable. It can read RSS and ATOM feeds. It uses the feedparser python module, and the MySQLdb python module to do the job. DOWNLOAD You can\u2026","rel":"","context":"In &quot;Gubatron&quot;","block_context":{"text":"Gubatron","link":"https:\/\/www.gubatron.com\/blog\/category\/gubatron\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":0,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/posts\/241\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/categories?post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gubatron.com\/blog\/wp-json\/wp\/v2\/tags?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}