ok-borg / borg Goto Github PK
View Code? Open in Web Editor NEWSearch and save shell snippets without leaving your terminal
License: Apache License 2.0
Search and save shell snippets without leaving your terminal
License: Apache License 2.0
Hey man, I might be missing something here. But it looks like you've committed .swp files along with others:
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:
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.
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
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
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.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
Hello,
The web site https://ok-b.org/ is not working, any search return nothing
Regards
ie.
borg "git delete branch"
Should be identical to
borg git delete branch
There are two major ways to do this:
I would say however, all in all the usefulness of Borg will be improved more by #11, but this is a lower hanging fruit.
Steps to replicate:
For example:
Can take login
implementation as inspiration. Maybe this should live under a config
or config set
vs config get
command and be made generic>
I cannot access https://ok-b.org (HTTP status code 000).
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.
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 !
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.
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.
Hi,
I want to deploy a personal borg server but I couldn't find any instructions in this repository.
This section in readme https://github.com/ok-borg/borg#how-does-borg-work asks to see daemon folder but couldn't find that in the repo.
Could you please outline the steps how to bring up a personal server or point to a wiki if already documented?
Thanks!
https://github.com/borgbackup/borg also uses the "borg" command, and is already present in several linux distributions including Arch, Debian, and Ubuntu. Given its popularity, I might suggest modifying the executable name somewhat to avoid conflict with it.
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.
Perhaps a -f
flag or answer number borg "query here" 12
or both.
borg --help isn't updated with all the available commands.
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…
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?
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
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.
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."
}
Could not run borg on osx
According to this: https://standards.freedesktop.org/basedir-spec/latest/ar01s03.html
"If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used."
In that case, borg is using $HOME/.borg instead, which makes it not comply with XDG.
borg -h
and you will see
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
How can I print full snippet that is not trimmed by ... ?
This still print trimmed result
borg -f "simple case"
Os: BigSur
borg --version
Borg version: (/)
Issue:
borg "create dir"
Malformed response from server
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
Josephs-MacBook-Pro:~ joe$ curl -I https://ok-b.org/
curl: (7) Failed to connect to ok-b.org port 443: Operation timed out
This was reported to Homebrew: Homebrew/homebrew-core#16942.
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?
brew install borg
display Error: No available formula with the name "borg"
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 ;)
http://ok-b.org/t/tkk2iJLRg/x
should redirect to http://ok-b.org/t/tkk2iJLRg/nginx-dockerfile-most-minimalist-possible
http://ok-b.org/t/tkk2iJLRg
does not load.A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.