All Projects → TheFox → Pastebin

TheFox / Pastebin

Just another Pastebin.com CLI script, but you can even login with your user account.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Pastebin

Gem Release
Release your ruby gems with ease.
Stars: ✭ 448 (+8860%)
Mutual labels:  ruby-gem
Jekyll Theme Basically Basic
Your new Jekyll default theme
Stars: ✭ 524 (+10380%)
Mutual labels:  ruby-gem
Forty Jekyll Theme
A Jekyll version of the "Forty" theme by HTML5 UP.
Stars: ✭ 695 (+13800%)
Mutual labels:  ruby-gem
Licensee
A Ruby Gem to detect under what license a project is distributed.
Stars: ✭ 476 (+9420%)
Mutual labels:  ruby-gem
React on rails
Integration of React + Webpack + Rails + rails/webpacker including server-side rendering of React, enabling a better developer experience and faster client performance.
Stars: ✭ 4,815 (+96200%)
Mutual labels:  ruby-gem
Pastel
Terminal output styling with intuitive and clean API.
Stars: ✭ 569 (+11280%)
Mutual labels:  ruby-gem
Pb
pb is a formerly-lightweight pastebin and url shortener
Stars: ✭ 448 (+8860%)
Mutual labels:  pastebin
Truemail
🚀 Configurable framework agnostic plain Ruby 📨 email validator/verifier. Verify email via Regex, DNS and SMTP. Be sure that email address valid and exists.
Stars: ✭ 717 (+14240%)
Mutual labels:  ruby-gem
Facebook data analyzer
Analyze facebook copy of your data with ruby language. Download zip file from facebook and get info about friends ranking by message, vocabulary, contacts, friends added statistics and more
Stars: ✭ 515 (+10200%)
Mutual labels:  ruby-gem
Emagnet
Automated hacking tool that will find leaked databases with 97.1% accurate to grab mail + password together from recent uploads from https://pastebin.com. Bruteforce support for spotify accounts, instagram accounts, ssh servers, microsoft rdp clients and gmail accounts
Stars: ✭ 688 (+13660%)
Mutual labels:  pastebin
Motion
Reactive frontend UI components for Rails in pure Ruby
Stars: ✭ 498 (+9860%)
Mutual labels:  ruby-gem
Termit
Translations with speech synthesis in your terminal as a ruby gem
Stars: ✭ 505 (+10000%)
Mutual labels:  ruby-gem
Mobility
Pluggable Ruby translation framework
Stars: ✭ 644 (+12780%)
Mutual labels:  ruby-gem
Matestack Ui Core
Matestack enables you to create sophisticated, reactive UIs in pure Ruby, without touching JavaScript and HTML. You end up writing 50% less code while increasing productivity, maintainability and developer happiness.
Stars: ✭ 469 (+9280%)
Mutual labels:  ruby-gem
Cowyo
A feature-rich wiki webserver for minimalists 🐮 💬
Stars: ✭ 711 (+14120%)
Mutual labels:  pastebin
Hydeout
A refreshed version of Hyde for Jekyll 3.x and 4.x
Stars: ✭ 448 (+8860%)
Mutual labels:  ruby-gem
Ransack
Object-based searching.
Stars: ✭ 5,020 (+100300%)
Mutual labels:  ruby-gem
Finite machine
A minimal finite state machine with a straightforward syntax.
Stars: ✭ 772 (+15340%)
Mutual labels:  ruby-gem
Psitransfer
Simple open source self-hosted file sharing solution.
Stars: ✭ 712 (+14140%)
Mutual labels:  pastebin
Nokogiri
Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
Stars: ✭ 5,748 (+114860%)
Mutual labels:  ruby-gem

Pastebin

Command line interface for Pastebin.com.

Just another Pastebin.com CLI script, but you can even login with your user account.

Project Outlines

The project outlines as described in my blog post about Open Source Software Collaboration.

  • The main purpose of this software is to provide a command-line interface to pastebin.com.
  • The features should not go beyond pastebin.com's features and functions. So the features of this software are limited to those of pastebin.com.
  • This list is open. Feel free to request features.

Installation

The preferred method of installation is via RubyGems.org:
https://rubygems.org/gems/thefox-pastebin

$ gem install thefox-pastebin

or via Gemfile:

gem 'thefox-pastebin', '~>1.2'

Use it in your sources:

require 'thefox-pastebin'

Usage

Unless you are using -f the default input is STDIN.

Help

$ pastebin -h

Skel example

$ pastebin --skel

The default settings file is under ~/.pastebinrc. You need to create it by yourself.

Create a settings file

$ pastebin --skel > ~/.pastebinrc

Print default settings

$ pastebin -D

Use a different settings file

$ pastebin -c ~/.pastebinrc_user2

Set a name for a paste

$ pastebin -n 'hello world'

Set an expiration date for a paste (10 minutes)

$ pastebin -e 10m

Set a format/language for a paste (PHP)

$ pastebin -l php

Paste a specific file

$ pastebin -f file.txt

Create an unlisted paste

$ pastebin -u

Create a private paste

$ pastebin -p

Get the raw contents of a paste

$ pastebin -r <ID>

Login

As a registered pastebin.com user you can login and let pastebin create pastes on behalf of you. You need to enter your username and password. The login credentials are not stored to any configuration file or anywhere else.

$ pastebin --login

After a successfull login you need to add the API_USER_KEY= line to your settings file (~/.pastebinrc). This user key is associated to your pastebin.com user.

You can also use your own Developer API Key. See pastebin.com API documentation for more details.

Examples

  • pastebin -n hello_world -e 10m -f hello_world.txt
  • pastebin -n 'PHP Script' -l php -f login.php
  • pastebin -u -e 1m -l php -f test.php
  • pastebin -n 'Collect Script' -p -e 10m -l awk -f collect.awk
  • pastebin -r UJwPUmKp
  • cat /tmp/hello_world.txt | pastebin

Project Links

License

Copyright (C) 2015 Christian Mayer https://fox21.at

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].