webpaste.el
webpaste.el copied to clipboard
Add support for privatebin
Do you think there would be a way to add support for https://github.com/PrivateBin/PrivateBin/wiki/API? Thanks
I'm pretty sure that would be possible, the tricky part is probably the encryption since no other provider currently in place have anything like it. Otherwise it should be simple enough.
I won't have the time to look at it soon though, mostly because I've migrated to NixOS and haven't got cask to work correctly when it comes to installing deps. It's really weird and I'm quite busy at the moment. But contributions are welcome :)
Elis Hirwing [email protected] writes:
I won't have the time to look at it soon though, mostly because I've migrated to NixOS
NixOS is awesome. Keep going!
and haven't got cask to work correctly when it comes to installing deps.
are you talking about installing your .emacs.d dependencies or installing package's dependencies? For the first use case, I suggest either going the Nix way with something like https://github.com/DamienCassou/emacs.d/blob/598be8ddabe068a48b33a2dda6ff2f3669282894/default.nix as I used to do or use https://emacsmirror.net/manual/borg/.
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill
Damien Cassou [email protected] writes:
Elis Hirwing [email protected] writes:
I won't have the time to look at it soon though, mostly because I've migrated to NixOS
NixOS is awesome. Keep going!
and haven't got cask to work correctly when it comes to installing deps.
are you talking about installing your .emacs.d dependencies or installing package's dependencies? For the first use case, I suggest either going the Nix way with something like https://github.com/DamienCassou/emacs.d/blob/598be8ddabe068a48b33a2dda6ff2f3669282894/default.nix
Well, for the installation for my usage, that I've already done: https://github.com/etu/nixconfig/blob/master/home-etu-nixpkgs/home.nix#L47-L92
That works great.
But for mode development for emacs I've used to specify deps with Cask
(like this https://github.com/etu/webpaste.el/blob/master/Cask) and
then stand in the directory and run cask install
which installed all
the needed deps into .cask
in that directary. After that I could run
tests and such like this:
https://github.com/etu/webpaste.el/blob/master/Makefile#L15-L16
Which was fine. Until I switched to NixOS where the cask I've managed to get my hands of from nixpkgs doesn't install all my deps and then doesn't run because deps are missing.
The way I tried to get cask the last time was like this: nix-shell -p emacsPackages.cask
Which gave me a bash-shell with cask, and it seemed fine but it didn't install all the deps, just some of the deps. Which I can't explain because I haven't looked into why. But it might be something to do with the rest if my environment I assume since I have emacs packages installed systemwide through nix, or something. This is just pure speculation from my point of view.
So, I have found my problems with cask and NixOS. It wasn't a problem in cask. It was in the shebang of the shellscript in buttercup. I have submitted a PR to fix it upstream https://github.com/jorgenschaefer/emacs-buttercup/pull/117 . It's also easy to edit the file and change the shebang and then it just works on NixOS.
I will probably resume development some week, to begin with I need to change how the integration tests works because they fail every Saturday every week. They need to be done differently.
I've just found this library. Don't know if I trust it though since it's crypto 😄
https://melpa.org/#/aes
But it seems decent enough?
Elis Hirwing [email protected] writes:
But it seems decent enough?
I have no clue :-).
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill
Here is what I've found while trying to manually decode a paste from privatebin v1.4 in elisp:
- for the cryptography part GnuTLS should suffice as it support AES-256-GCM
- we are missing a
base58-decode-string
function to get the key from the URL (http://paste.example.com/?pastid#key) - we are missing JSON-LD support in Emacs
Unfortunately I won't be able to write those two missing package.