Archive for the 'shell' Category
December 2nd, 2011
Needed to convert a client Microsoft SQLSERVER database to our PostgreSQL database server.
Lots of tables, severall Gigabytes of data.
In Windows:
open the SQL Server administration console for the databae and do a DIR > tables.txt to get a file with all the table names;
remove all the tables you will not be needing from the file;
now to […]
posted by pedro mg at 1:31 am
& filed under linux, shell, windows, unix, postgres, postgresql, database | No Comments »
April 10th, 2008
… after severall exchanged emails between me and Andrei Thorp about the Vim blogging ruby script, we made some changes. So instead of the initial test for Vim compiled with +ruby message s:ErrMsg, we now have an echo.
Andrei’s git (yep, they are git fans too, git rocks!) commit was calling another Vim from his machine. […]
posted by pedro mg at 3:22 pm
& filed under linux, ruby, shell, code, vi, vim | 2 Comments »
September 28th, 2007
Passphrases, when used the good way, present a higher level of security over passwords, but what if you are editing scripts on a remote server using a local Vim ? For every open, write, explore, you are asked for it. After a certain amount of times, it starts making no sense, and you’ll end up […]
posted by pedro mg at 12:42 am
& filed under , tech, web, linux, os, file, shell, code, vi, vim, gvim, ssh | 1 Comment »
May 11th, 2007
… i finally set up the page for the download of the vimblog.vim vim-ruby script. It will allow you to manage your blog posts from *the* editor VIM, very easilly. Learn one single command and, at maximum, seven simple parameters. So go ahead and blog with vim.
posted by pedro mg at 1:27 am
& filed under tech, web, linux, life, digital-life, ruby, shell, code, api, vi, vim, gvim, blog, open source, mac osx | No Comments »
March 16th, 2007
Well, a post about Windows… who’d say about that…
The thing is: is have a HP desktop that after a good BIOS update, got its motherboard dead. Good BIOS update. Pretty much dead motherboard. Not only happened to me. There are foruns about these HP BIOS updates for this motherboard series that gave lot’s of problems. […]
posted by pedro mg at 10:01 am
& filed under tech, linux, os, ubuntu, shell, xp | 1 Comment »
February 21st, 2007
… well the name reminds Brad Choate’s Textmate blogging bundle Brad is an excellent developer and like me, was once a Delphi (Borland great product) developer. I based this on his Textmate work. I’m coding a Vi / ViM / GViM script for a plugin that has some nice results already, exclusively for […]
posted by pedro mg at 12:50 am
& filed under tech, web, linux, ubuntu, gnome, digital-life, ruby, shell, code, textmate, api, Flickr, vi, Wordpress, xmlrpc, vim, gvim, blog, screenshot, iccf, open source, GPL | 4 Comments »
February 18th, 2007
… when coding switter, using lot’s of command line, vim, bash, i felt the need to blog from vim. Some readings (quite a few availlable, actually) later, i was testing Wordpress xmlrpc using MovableType (Six Apart) calls to it. Vim allows ruby scripts (when compiled with that directive) use to create new commands, just like […]
posted by pedro mg at 11:09 pm
& filed under tech, web, linux, ubuntu, gnome, ruby, php, shell, code, api, vi, MovableType, Wordpress, xmlrpc, vim | No Comments »
February 12th, 2007
…now, switter was accepted on rubyforge.org. I’ll try to put source and some docs there (rdoc does wonders) soon. Meanwhile, and with threahds now working for continuous message post/get, it just needs some tickles on the readline method.
switter on a maximized shell window receiving public timelines
switter on a normal sized shell window receiving public timelines
posted by pedro mg at 12:20 am
& filed under tech, web, linux, ubuntu, ruby, shell, code, api, Flickr, switter, twitter, vi, rubyforge | No Comments »
February 8th, 2007
Had a new idea for the switter (twitter shell client) client.
What if you had a switch that enabled you to secretly send commands to the shell via twitter service ? Now, that can be (is) dangerous. But what if you defined an hash with predefined actions, and “secret” (remember, unsafe connection) codes ?
./switter -u test […]
posted by pedro mg at 5:12 pm
& filed under tech, web, jabber, linux, ruby, shell, code, api, Flickr, switter, twitter, vi, rubyforge | No Comments »
February 8th, 2007
ENV is the hash that contains environment variables:
ENV.collect { |key, val| puts “#{key} ==> #{val}” }
ENV.each_pair { |key, val| puts “#{key} ==> #{val}” }
Need to know $HOME of the current user (needed for config files, say)?
puts ENV[’HOME’] if ENV.has_key?(’HOME’)
puts ENV[’HOME’] if ENV.key?(’HOME’)
puts ENV[’HOME’] if ENV.include?(’HOME’)
puts ENV[’HOME’] if ENV.member?(’HOME’)
posted by pedro mg at 12:16 am
& filed under tech, linux, ubuntu, ruby, shell, code, vi | No Comments »
February 5th, 2007
been having some fun coding a twitter client for the *nix shell in (pure) ruby.
Soon will post source file for anyone to play with it.
Cool libraries used, include:
require ‘net/http’
require ‘rexml/document’
require ‘optparse’
require ‘yaml’
Configuration file created for user defs;
Command line switches prioritized over config. file;
Timeline options;
Working now on a minimal (shell) UI, message posting […]
posted by pedro mg at 11:40 pm
& filed under tech, linux, ruby, shell, code, api, Flickr, switter, twitter, rubyforge | 3 Comments »
January 27th, 2007
Tattle is a little reporting script used for collecting system information from the Ruby community. The purpose is to help implementors of Ruby and its libraries to better understand the install footprint of the community at large.
Project Admins: Chad Fowler / Bruce Williams / Jim Weirich
me@system:~/workspace/ruby$ gem install -r tattle
me@system:~/workspace/ruby$ tattle
posted by pedro mg at 5:37 pm
& filed under web, ruby, shell, code | No Comments »
September 29th, 2006
pedro@dapper:~$ history|awk ‘{print $2}’|awk ‘BEGIN {FS=”|”} {print $1}’|sort|uniq -c|sort -rn|head -10
based on Gunnar Wolf geeky script. See your shell trends…
posted by pedro mg at 11:30 pm
& filed under linux, shell | 5 Comments »