Skip to content

Instantly share code, notes, and snippets.

View xfoxawy's full-sized avatar

Mohammed Kamal xfoxawy

View GitHub Profile
// Generated by go_embed_data for //proto/freight/services/loadboard:loadboardpb_swagger_go_embed. DO NOT EDIT.
package loadboardpb
var (
Data_0 = []byte("{\n \"swagger\": \"2.0\",\n \"info\": {\n \"title\": \"Freight MarketPlace API\",\n \"description\": \"The Freight MarketPlace API allows external Freight Partners to interact with the KeepTruckin Freight Marketplace. Some notes that apply to this API on the whole:\\u003cbr/\\u003e - All units follow the imperial system (miles, feet, degrees fahrenheit, etc.), you do not need to specify units in any value you pass to us.\\u003cbr/\\u003e - Unless a field is explicitly marked as required, it is optional.\",\n \"version\": \"1.0\",\n \"contact\": {\n \"name\": \"KeepTruckin API support\",\n \"url\": \"https://keeptruckin.com\",\n \"email\": \"apisupport@keeptruckin.com\"\n }\n },\n \"schemes\": [\n \"https\"\n ],\n \"consumes\": [\n \"application/json\"\n ],\n \"produces\": [\n \"application/json\"\n ],\n \"

Keybase proof

I hereby claim:

  • I am xfoxawy on github.
  • I am mokamal (https://keybase.io/mokamal) on keybase.
  • I have a public key whose fingerprint is 4972 9D0C 1DC9 2BA6 2CAE B748 D6E7 0FC2 7300 B8C2

To claim this, I am signing this object:

#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite