- First download
dbfpy: http://sourceforge.net/projects/dbfpy/files/latest/download?source=files - Then install:
sudo python setup.py install
To convert DBF file to CSV:
./dbf2csv database.dbf
dbfpy: http://sourceforge.net/projects/dbfpy/files/latest/download?source=filessudo python setup.py installTo convert DBF file to CSV:
./dbf2csv database.dbf
| {-# LANGUAGE BangPatterns, OverloadedStrings, ScopedTypeVariables #-} | |
| import Control.Applicative ((<$>)) | |
| import Control.Exception (catch, SomeException) | |
| import Control.Monad (mapM) | |
| import Data.Char (isDigit) | |
| import Data.List (sortBy) | |
| import qualified Data.Text as T | |
| import qualified Data.Text.IO as T | |
| import qualified Data.Text.Format as T | |
| import Data.Text.Lazy(toStrict) |
| import tornado | |
| class RequestContextHandler(tornado.web.RequestHandler): | |
| def _execute(self, transforms, *args, **kwargs): | |
| # following the example of: | |
| # https://github.com/bdarnell/tornado_tracing/blob/master/tornado_tracing/recording.py | |
| global_data = {} # add whatever here, e.g. self.request |
| #!/usr/bin/env python3 | |
| # | |
| # Dumb script to dump (some) of bcache status | |
| # Copyright 2013 Darrick J. Wong. All rights reserved. | |
| # | |
| # This file is part of Bcache. Bcache is free software: you can | |
| # redistribute it and/or modify it under the terms of the GNU General Public | |
| # License as published by the Free Software Foundation, version 2. | |
| # | |
| # This program is distributed in the hope that it will be useful, but WITHOUT |
| # HG changeset patch | |
| # Parent 76ef40f7a249190dc660329a65de22ad7a1326f7 | |
| diff -r 76ef40f7a249 src/ex_docmd.c | |
| --- a/src/ex_docmd.c Fri May 31 22:30:34 2013 +0900 | |
| +++ b/src/ex_docmd.c Fri May 31 23:03:49 2013 +0900 | |
| @@ -3249,6 +3249,9 @@ | |
| /* check for non-alpha command */ | |
| if (p == cmd && vim_strchr((char_u *)"@*!=><&~#", *p) != NULL) | |
| ++p; |
To implement Ratchet.io's Person Tracking feature, we have a MySQL table like this:
create table person (
id int unsigned not null,
project_id int unsigned not null
environment varchar(255) not null,
person_id varchar(40) not null,
username varchar(255),
email varchar(255),| #!/bin/bash | |
| # ssh-multi | |
| # D.Kovalov | |
| # Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html | |
| # a script to ssh multiple servers over multiple tmux panes | |
| starttmux() { | |
| if [ -z "$HOSTS" ]; then |
| If you want to access the source code of a Chrome extension, you need to get the .crx file. This bookmarklet downloads the .crx file for the Chrome extension you're viewing. You'll be prompted to install it; before dismissing the dialog, check in your Downloads directory. Then just unzip the .crx (it's a zip file). | |
| javascript:window.open('https://clients2.google.com/service/update2/crx?response=redirect&x=id%3D' + /webstore\/detail\/[^\/]+\/([^\/]+)/.exec(window.location.href)[1] + '%26uc') | |
| javascript:window.open('https://clients2.google.com/service/update2/crx?response=redirect&x=id%253D' + /webstore%5C/detail%5C/(?:%5Cw%7C-)+%5C/(%5B%5E%5C/%5D+)/.exec(window.location.href)%5B1%5D + '%2526uc') |
| #include <algorithm> | |
| #include <cmath> | |
| #include <functional> | |
| #include <numeric> | |
| #include <unordered_map> | |
| #include <vector> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| using namespace std; |
This bash script offers quick shortcuts to simulate slower network connections. It is useful when you need to simulate a wireless network on a Linux network server, especially when you are using a virtual machine guest on your local machine or in the cloud.
slow 3G # Slow network on default eth0 down to 3G wireless speeds
slow reset # Reset connection for default eth0 to normal
slow vsat --latency=500ms # Simulate satellite internet with a high latency
slow dsl -b 1mbps # Simulate DSL with a slower speed than the default
slow modem-56k -d eth0 # Simulate a 56k modem on the eth1 device. eth0 is unchanged.