- 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
| REPLICAS_COUNT=$(kubectl -s $K8S_CLUSTER --token=$K8S_TOKEN -n $NAMESPACE get pods -l app=$YOUR_APP | grep -i running | wc -l | grep -oE "[0-9]+") | |
| if [ $REPLICAS_COUNT -eq 0 ]; then | |
| REPLICAS_COUNT=2 | |
| fi | |
| REPLICAS_COUNT=$REPLICAS_COUNT envsubst < deploy/your-deployment.yaml.template > your-deployment.yaml |
| package main | |
| import( | |
| "log" | |
| "net/url" | |
| "net/http" | |
| "net/http/httputil" | |
| ) | |
| func main() { |
| image: docker:latest | |
| # When using dind, it's wise to use the overlayfs driver for | |
| # improved performance. | |
| variables: | |
| DOCKER_DRIVER: overlay | |
| GCP_PROJECT_ID: CHANGE-TO-GCP-PROJECT-ID | |
| IMAGE_NAME: image_id | |
| services: |
| # Node | |
| class Node | |
| attr_accessor :value, | |
| :height, | |
| :left, | |
| :right | |
| def initialize(value = nil, height = 0) | |
| @value = value | |
| @height = height |
| #!/usr/bin/python | |
| import csv | |
| import random | |
| records=9000000 | |
| print("Making %d records\n" % records) | |
| fieldnames=['id','name','age','city'] | |
| writer = csv.DictWriter(open("people.csv", "w"), fieldnames=fieldnames) |
dbfpy: http://sourceforge.net/projects/dbfpy/files/latest/download?source=filessudo python setup.py installTo convert DBF file to CSV:
./dbf2csv database.dbf
| 1. Build GraphQL server using `express-graphql` package. | |
| 2. Configure `schema.js` file. | |
| 3. Query for data. |
| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "log" | |
| "net" | |
| "net/http" | |
| "strings" | |
| ) |