Giter Club home page Giter Club logo

borg's People

Contributors

anas10 avatar code-inflation avatar crufter avatar fabric-8 avatar gummiboll avatar jeremyletang avatar juhofriman avatar klausvii avatar owcz avatar zchee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

borg's Issues

Remove unneeded .swp files

Hey man, I might be missing something here. But it looks like you've committed .swp files along with others:

  • .main.go.swp
  • .swp

Remove brog from homebrew

Hi,

I'm filing this issue to communicate that borg is about to get removed from homebrew. I filed a pull request there to remove the borg formula:

Homebrew/homebrew-core#47808

The borg formula blocks upgrading the go formula and is holding back important security fixes.

The underlying reason for this seems to be that the borg formula is outdated and the tests fail permanently because of ok-borg.org being down. Also the formula uses deprecated fields which makes it hard to fix for non-borg developers.

borg hasn't been published to the ubuntu store

Hello!

A while ago in pr #49 we made the packaging to put borg in the snaps store, but it hasn't been published there yet.

Now I come with some very good news because we have https://build.snapcraft.io/ in beta. It is a service for building and continuous delivery, with a couple of clicks you should be all set and ready. It would be nice if you give it a try and let us know what do you think.

pura vida

Borg segv if the api is unreachable

here is the stack trace:

➜  borg git:(master) ✗ ./borg search yolo
Error while making request: Get http://ok-b.org:9992/v1/query?l=5&p=false&q=search: dial tcp 127.0.0.1:9992: getsockopt: connection refused
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x7db66]

goroutine 1 [running]:
panic(0x30cee0, 0xc4200140d0)
    /usr/local/go/src/runtime/panic.go:500 +0x1a1
github.com/ok-borg/borg/commands.Query(0x7fff5fbffa7f, 0x6, 0x0, 0x0)
    /Users/jeremy/work/go/src/github.com/ok-borg/borg/commands/query.go:29 +0x2d6
main.main()
    /Users/jeremy/work/go/src/github.com/ok-borg/borg/main.go:19 +0x14f

Hello from Borg One, First Offce and Fa, ACen, Earth

As I am rather new, and so very old, I'd love your best cheats and workarounds for transport, finance (cryptocurrency), and more information on travel given I spend a fair amount of time on a Cube and a Personal Shuttle.

Please disregard NASA &c given the awkwardness of their time war and my more free use of time.

Fabio Ames, 3rd of 5, Or One, (Boer/Borg)

Version 0.0.2 does not work on OSX

Version 0.0.1 runs fine but when I download and try version 0.0.2 on my Mac running El Capitan, I get the following:
panic: user: Current not implemented on darwin/amd64

goroutine 1 [running]:
github.com/crufter/borg/conf.init.1()
/Users/crufter/go/src/github.com/crufter/borg/conf/conf.go:36 +0x62
github.com/crufter/borg/conf.init()
/Users/crufter/go/src/github.com/crufter/borg/conf/conf.go:72 +0x1e8
github.com/crufter/borg/commands.init()
/Users/crufter/go/src/github.com/crufter/borg/commands/worked.go:80 +0x4a
main.init()
/Users/crufter/go/src/github.com/crufter/borg/main.go:39 +0x40

Improve query result relevancy

There are two major ways to do this:

  1. Tweak Elastic Search settings
  2. Tweak the fill script which imports bash questions from SO/other sources.

I would say however, all in all the usefulness of Borg will be improved more by #11, but this is a lower hanging fruit.

Add more configs for terminal client

For example:

  • ability to set number of results to be returned

Can take login implementation as inspiration. Maybe this should live under a config or config set vs config get command and be made generic>

Add a safe way to add/update entries

This one is big, but is worth recording here.
Auth mech should be OAuth most likely.
For v1 logged in users should be able to add public entries.
For v2 of this feature it would be nice to be able to save private entries or shared across github organisation.

Also think about rating solutions.

Error while making request

Hello :)
When I use borg "get ip", for example, the command return 1, with the following output :
Error while making request: Get http://borg.crufter.com:9992/v1/query?l=5&p=false&q=get+ip: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Then, I try to ping borg.crufter.com and the website seems be down... Is there a solution ? :)

Thanks, and big up for your idea, she's very very very nice !

Add a way to add and search private and org private entries

Terminal interface ideas:

borg my "query" - queries personal private entries
borg our "query" - queries org private entries if the user only belongs to one organization
borg uber "query" - queries org private entries for Uber if the user belongs to that org. It is a regexp of *uber* so...

If a user is member of UberIceCream and UberEats organization to not be ambivalent he has to specify

borg eats "query" or borg cream "query" etc to match exactly, otherwise borg throws an error.

cc @jeremyletang

For now we should keep every org in separate indexes on the backend. This prevents us from searching across multiple orgs but that's fine for now.

Add support for nano editor

It would be nice to add support for editors other than vim. Perhaps an optional config var in the new command:

borg new --editor nano

OR

borg new -e nano

Many thanks.

Homebrew formula

Hi there! I started to create a brew formula for borg, since it's easier for many to keep the package up to date. See Homebrew/homebrew-core#5432

Problem is I don't know how to build go packages, and what are the Homebrew calls to do it properly. Anyway, I was hoping you could give a little help in the necessary steps…

HTTPS Support

Before voicing my feature request, I'd like to thank you for this amazing program. I administer a system that does not allow HTTP for security reasons. I'd like to install borg for my users, but our firewall prevents borg from working as it only allows HTTPS connections. Could ok-borg obtain an SSL cert to provide answers via a HTTPS connection?

Remove committed binaries in favour for releases

Since the binaries are clogging up the repository and adding to the size over time, you should really consider removing them, before making any change.

This article lists the most important reason why: https://robinwinslow.uk/2013/06/11/dont-ever-commit-binary-files-to-git/

TLDR; All binaries that have ever been committed must all be fully downloaded when the repo is cloned.

I mean I could go on for long here :P https://twitter.com/tims/status/383118946909818880

But meh ;) Just use tags and Github releases

have all the outputs be piped to less and have colour output

Thank you for writing this tool, it is really incredible.

One thing I like though is to have all the outputs be shown in less but I don't want to pipe every single query I make with borg to less manually myself, can I make it as default output somehow?

Also it would be nice to have some colour in these outputs.

Thank you for any help.

handle api deprecation

In a near future we may need to deprecate some version of the api.
We have to decide of an http response to notify the borg user of a future deprecation of the api and possibly an api which is non available anymore.
This may required updating api response with something like:
valid response

{
    "status": "OK",
    "data": {/* data response */}
}

valid response with deprecation warning

{
    "warning": "this api version is deprecated and stop working the 31 december 2016, please update borg",
    "status": "OK",
    "data": {/* data response */}
}

error response for an api not available anymore

{
    "status": "ERROR",
    "error": "you tried to use a version of the api wich is not anymore available, please update borg."
}

[FreeBSD] all commands fail

Systeminfo:
uname: FreeBSD heap.of.shit.<DOMAIN> 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64

go version go1.8 freebsd/amd64

No matter what command I try to run I am presented with the following:

panic: user: Current not implemented on freebsd/amd64

goroutine 1 [running]:
github.com/crufter/borg/conf.init.1()
	/Users/crufter/go/src/github.com/crufter/borg/conf/conf.go:36 +0x62
github.com/crufter/borg/conf.init()
	/Users/crufter/go/src/github.com/crufter/borg/conf/conf.go:72 +0x1e8
github.com/crufter/borg/commands.init()
	/Users/crufter/go/src/github.com/crufter/borg/commands/worked.go:80 +0x4a
main.init()
	/Users/crufter/go/src/github.com/crufter/borg/main.go:39 +0x40
heap ~/Downloads » borg worked 12                                                            2 ↵
panic: user: Current not implemented on freebsd/amd64

goroutine 1 [running]:
github.com/crufter/borg/conf.init.1()
	/Users/crufter/go/src/github.com/crufter/borg/conf/conf.go:36 +0x62
github.com/crufter/borg/conf.init()
	/Users/crufter/go/src/github.com/crufter/borg/conf/conf.go:72 +0x1e8
github.com/crufter/borg/commands.init()
	/Users/crufter/go/src/github.com/crufter/borg/commands/worked.go:80 +0x4a
main.init()
	/Users/crufter/go/src/github.com/crufter/borg/main.go:39 +0x40

My installation was;

wget https://github.com/ok-borg/borg/releases/download/v0.0.2/borg_freebsd_amd64 -O /usr/local/bin/borg
chmod 755 /usr/local/bin/borg

Print full snippet

How can I print full snippet that is not trimmed by ... ?

This still print trimmed result

borg -f "simple case"

cannot execute binary file: exec format error

So i've been trying to intall borg on my mint, and despite my different tries on different releases it never works ^^ always the same message. If any one has a way to fix I'd be very thankfull

Pick an unique name

The name "borg" is already used by a more significant free software project.1

Is it really that hard to type your name idea to a search engine to see if it has already been used by someone else?

Error while making request

When I run: $ borg list files I get the response:

Error while making request: Get http://borg.crufter.com:9992/v1/query?l=5&p=false&q=list: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x6f276]

goroutine 1 [running]:
panic(0x30ba80, 0xc4200160b0)
	/usr/local/Cellar/go/1.7.3/libexec/src/runtime/panic.go:500 +0x1a1
github.com/crufter/borg/commands.Query(0x7fff5fbff79d, 0x4, 0x0, 0x0)
	/private/tmp/borg-20161029-46542-1hguymm/borg-0.0.2/src/github.com/crufter/borg/commands/query.go:29 +0x2d6
main.main()
	/private/tmp/borg-20161029-46542-1hguymm/borg-0.0.2/src/github.com/crufter/borg/main.go:29 +0x9e

Possibly this is due the port being blocked by the corporate firewall. Any idea how can I fix that?

In the other hand it should not fail. with SIGSEGV ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.