Code Monkey home page Code Monkey logo

zer0bin's Introduction



Just a place to paste

Stargazers Wiki Releases License Issues


Features

  • โœจ Code highlighting and line numbers (default)
  • ๐Ÿ“– Markdown rendering (click the Markdown button)
  • ๐Ÿ”ฅ Single-view pastes (click the Fire button)
  • โ€๐Ÿง‘โ€๐Ÿ’ป CLI Client
  • ๐Ÿš€ Easily selfhostable
  • ๐Ÿ‘€ View counter
  • โŒจ๏ธ Keybinds
    • Ctrl + S: save paste
    • Ctrl + N: new paste
    • Ctrl + D: duplicate paste
    • Ctrl + M: toggle markdown mode
  • ๐Ÿ“ฑ Mobile-friendly UI
  • ๐Ÿงˆ Super smooth scrolling
  • ๐Ÿ–ผ๏ธ Badge generation for stats (seen below)

Public instances

Submit your public instance here!

URL Expiration Max paste size Total Pastes Version Country
paste.mint.lgbt 30 days 50,000 chars pastes version ๐Ÿ‡จ๐Ÿ‡ฑ Chile

Technologies used

Frontend:


Backend:

Misc:

(Sorta) made with Skill Icons

More info

Looking for API reference, self-hosting instructions, and/or benchmarks?

Stargazers

Contributing

See CONTRIBUTING.md

zer0bin's People

Contributors

auguwu avatar hatkidchan avatar idanoo avatar mellowmarshe avatar mvllow avatar thatonecalculator 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

Watchers

 avatar  avatar  avatar

zer0bin's Issues

โœจ Download/Raw button

Summary

Similar to PasteBin, it would be useful to have a "Raw" and a "Download" option. Since the "save" icon is greyed out on a paste that already exists, it could be replaced with a download button and icon with a "raw" option placed somewhere else.

๐Ÿ› Official instance API does not work

๐Ÿ’ก Summary

502 on saving any text

image

๐Ÿฅฐ Expected Behavior

Status 200, and text saved.

๐Ÿคฌ Actual Behavior

Status 502, and error message.

๐Ÿ“ Steps to Reproduce

  1. open https://zer0b.in
  2. type something
  3. Ctrl+S

๐Ÿ“Œ Environment

zer0bin version: master?
Your OS: Linux x64
Your browser: Firefox

๐Ÿ› API errors not handled

๐Ÿ’ก Summary

API errors aren't being shown in the message box

๐Ÿฅฐ Expected Behavior

Errors will be shown in the message box in the top right

๐Ÿคฌ Actual Behavior

API requests will silently fail with no notification to the user

๐Ÿ“ Steps to Reproduce

  1. Open zer0bin
  2. Try creating a paste that exceeds the zer0bin instances max character count

๐Ÿ™… Server won't start due to no config

๐Ÿ’ก Summary

zer0bin does not start

๐Ÿฅฐ Expected Behavior

/zer0bin/backend/target/release$ ./zer0bin-bin
thread 'main' panicked at 'Failed to load config: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/config.rs:45:33
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

๐Ÿคฌ Actual Behavior

๐Ÿ“ Steps to Reproduce

๐Ÿ“Œ Environment

zer0bin version: 1.02

Your OS: Debian Bullseye
Your browser: Firefox

I hope someone can help me with this Problem :)

โœจ CLI Client

Summary

Either in bash or rust, just to post and view pastes with flag to change instance

Proposed usage:

zer0bin "hello" # returns https://zer0b.in/~/foobar
zer0bin -f ./bar.txt # same as before but reads content from bar.txt
zer0bin "Over 40k letters" # returns error: paste too large
zer0bin -i stepbro.voring.me "hello" # returns https://stepbro.voring.me/~/foobar
curl https://rawtext.com/example | zer0bin # returns paste from piped content

๐Ÿš€

Details

  • Domain name: https://p.soopy.moe
  • What country is the server in: ๐Ÿ‡ญ๐Ÿ‡ฐ Hong Kong
  • What server hardware/provider is the server on: Personal infrastructure (old pc)
  • Are you using CloudFlare or any Google services (domain, DNS, etc): Cloudflare DNS, proxy disabled.
  • What version of zer0bin is it running: 1.1.1
  • Have you made any modifications to zer0bin? If so, what?: none
  • What are the ratelimits: 2 seconds between pastes, 5 pastes before getting 429'd
  • What is the expiration time of pastes: 365 days
  • What is the max paste size: 75k char limit

๐Ÿ‹ Docker

Docker should cover both frontend and backend before being publicly introduced

๐Ÿ› 3 Mobile Complications; Crash Prone

๐Ÿ’ก Summary

The site on a mobile interface serves many complications. These are some that I have collected throughout using zer0bin. All of these happen on their own with no real direct way of reproducing other than just using it. Most of my pastes are around 4000 characters, see Steps to Reproduce.

  • Text unselectable horizontal of context (top right) box.
  • Save button does not register for an amount of time.
  • Crashes browser often on page load/scroll and pre-confetti load.

๐Ÿฅฐ Expected Behavior

Selection on specified area with no issues.

Responsive save button.

No lag or site-wide/browser wide crashes.

๐Ÿคฌ Actual Behavior

Selecting text to the left side of the context box, matching the height, will become unselectable.

Save button pressed but does not register until a minute later, with element spam on UI creating lag along with confetti.

Often following said above, site becomes unresponsive for a moment before loading a lagful ammount of confetti.

๐Ÿ“ Steps to Reproduce

  1. Visit paste on mobile with about 4000 characters, what I used.
  2. Attempt basic usage on site: scrolling, selecting, interaction with buttons.
  3. 2 but browser.

๐Ÿ“Œ Environment

zer0bin version: Production as of right now; v1.1.1(?)
Your OS: Android 11
Your browser: Chrome

failed to load config from /root/zer0bin/frontend/vite.config.ts๐Ÿ›

๐Ÿ’ก Summary

yarn run build doesnt work

๐Ÿฅฐ Expected Behavior

yarn run build should work

๐Ÿคฌ Actual Behavior

`root@misc:~/zer0bin/frontend# yarn run build
yarn run v1.22.19
$ vite build
failed to load config from /root/zer0bin/frontend/vite.config.ts
error during build:
/root/zer0bin/frontend/vite.config.ts:58
api_url: JSON.stringify(env.ZEROBIN_API_URL ?? env.API_URL),
^

SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.require.extensions. [as .ts] (/root/zer0bin/frontend/node_modules/vite/dist/node/chunks/dep-689425f3.js:62006:20)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at loadConfigFromBundledFile (/root/zer0bin/frontend/node_modules/vite/dist/node/chunks/dep-689425f3.js:62014:17)
at loadConfigFromFile (/root/zer0bin/frontend/node_modules/vite/dist/node/chunks/dep-689425f3.js:61933:32)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
`

๐Ÿ“ Steps to Reproduce

1.Follow steps in the tutorial
2.configure everything
3.run yarn
4. run yarn run build
5. Boom

๐Ÿ“Œ Environment

zer0bin version: Newest
Your OS:Ubuntu 22.04 LXC container
Your browser: Firefox 107.0.1 (shouldn't matter in that report)

Keybinds don't work when using different keyboard layout ๐Ÿ›

๐Ÿ’ก Summary

When pressing, say, Ctrl+S when using locale different from English (say, russian), default browser behavior is triggered.

๐Ÿฅฐ Expected Behavior

They handled properly

๐Ÿคฌ Actual Behavior

It's not handled at all

๐Ÿ“ Steps to Reproduce

  1. Have a different layout
  2. Press Ctrl+S
  3. It doesn't work

๐Ÿ“Œ Environment

zer0bin version: The one that's on https://stepbro.voring.me
Your OS: Arch Linux
Your browser: Firefox

๐Ÿ““ Notes

In keydown even handler (or, more specifically, in KeyboardEvent), key property contains letter, corresponding to the current layout, which doesn't make any sense for keyboard shortcuts. In case of russian layout, pressing Ctrl+S would look like pressing Ctrl+ะซ, and since there's no shortcut for that, event is not being cancelled and browser handles it instead. Possible fix would be to replace event.key with event.code and replace corresponding checks (e.key == "s" -> e.code == "KeyS")

๐Ÿค” replace Cartograph CF with a free font

I realize there is already a note about this in the repository. However, it simply messes with those who host without realizing they are using a font without a proper license. The font could be added in locally.

๐Ÿš€

Details

  • Domain name: https://zbin.possums.xyz
  • What country is the server in: USA
  • What server hardware/provider is the server on: Local hardware (old laptop)
  • Are you using CloudFlare or any Google services (domain, DNS, etc): Cloudflare for domain + DNS
  • What version of zer0bin is it running: v1.1.1
  • Have you made any modifications to zer0bin? If so, what?: None
  • What are the ratelimits: 2 seconds between pastes, 5 pastes allowed before limiting
  • What is the expiration time of pastes: 180 days
  • What is the max paste size: 75000 chars

๐Ÿš€

Details

  • Domain name: paste.mint.lgbt
  • What country is the server in: Chile
  • What server hardware/provider is the server on: Dedicated
  • Are you using CloudFlare or any Google services (domain, DNS, etc): No
  • What version of zer0bin is it running: v1.1.1
  • Have you made any modifications to zer0bin? If so, what?: No
  • What are the ratelimits: 2 seconds in-between pastes, 5 allowed pastes before ratelimit
  • What is the expiration time of pastes: 30 days
  • What is the max paste size: 50000 characters

๐Ÿคฆ Duplicate issue, ignore

Summary

There should be a burn on read function, if the paste link is opened it will be automatically removed securely. Happy to help with the implementation :)

๐Ÿš€ Public Instance listing request

Details

What country is the server in: New Zealand

What server hardware/provider is the server on: Running inside a Proxmox LXC container with 2 vCPU and 1GB RAM for just the zer0bin server, DB is separate. Can scale out if required.

Are you using CloudFlare or any Google services (domain, DNS, etc): Nope

What version of zer0bin is it running: 0.7.1-rc (latest)

Have you made any modifications to zer0bin? If so, what?: Nope

What are the rate limits: Default. 2 seconds between pastes, 5 pastes before rate limit.

What is the expiration time of pastes: 28 days

What is the max paste size: 69420

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.