• Stars
    star
    217
  • Rank 182,446 (Top 4 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 11 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📄 Read RFCs from the command-line

rfc

Build Status

rfc is a simple tool written in Bash to read RFCs from the command-line. It fetches RFCs and drafts from the Web and caches them locally.

Usage

Just type rfc followed by the RFC number or the draft name:

$ rfc <RFC num>

e.g.:

rfc 42 # Read the RFC 42
rfc 1234 # Read the RFC 1234
rfc draft-ietf-core-coap-18 # Read IETF draft core-coap version 18

Use rfc help to see all available subcommands.

Options

  • --version: same as the version subcommand
  • --help: same as the help subcommand

Exit codes

  • 0: normal execution
  • 1: the requested RFC or archive cannot be found
  • 2: unrecognized option/subcommand
  • 3: unable to connect to the network
  • 4: can't find curl nor wget

Install

Basic install

mkdir -p ~/bin
curl -sL https://raw.githubusercontent.com/bfontaine/rfc/v0.2.6/rfc > ~/bin/rfc
chmod u+x ~/bin/rfc

This creates the ~/bin directory if it doesn’t exist, and download rfc in it. If it’s not in your PATH, you have to add it:

echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc

You may also want to install the manpage, located in man/rfc.1.

Using Homebrew

If you use Homebrew or Linuxbrew you can install rfc with one command:

brew install bfontaine/utils/rfc

Archlinux

For archlinux users, you can use the AUR package rfc-read.

The command for use it is rfc.

openSUSE

The openSUSE package is called rfc-read and can be installed via zypper in rfc-read.

Requirements

  • curl or wget. It uses $CURL if it’s set, and fallback on curl and then wget.
  • less or another pager. It uses $PAGER if it’s set.

Customization

You can choose which directory rfc uses by setting the RFC_DIR environment variable. The directory is automatically created if it doesn’t exist.

The default directory is ~/.RFCs.

Troubleshooting

rfc version 0.2.5 and above has a special --debug flag that, if passed as the first argument, enables tracing of all the Bash commands in the script.

Credits

Baptiste Fontaine and contributors.

More Repositories

1

term2048

🎉 2048 in your terminal
Python
802
star
2

grape

🍇 Syntax-aware grep-like for Clojure
Clojure
150
star
3

freesms

📱 Send SMSes to yourself through the 'Free Mobile' SMS API
Python
55
star
4

httpdoc

📓 HTTP documentation right in your terminal.
Go
35
star
5

clygments

🎨 Code highlighting using Pygments in Clojure
Clojure
29
star
6

vanish

✨ Temporary files and directories made easy
Go
27
star
7

Katas

☕ 27 katas; each in a different language (not only CoffeeScript, GitHub!)
CoffeeScript
20
star
8

clj

🐨 (Clojure-like) Lazy iterators in Python
Python
19
star
9

Dotfiles

🍭 personal dotfiles
Vim Script
18
star
10

Brewfile.vim

Brewfile syntax for Vim
Vim Script
16
star
11

gzsize

Print the uncompressed size of a GZip file.
C
13
star
12

lein-fore-prob

A leiningen plugin to make a local copy of a problem from 4clojure
Clojure
12
star
13

badges2svg

Replace your README badges with resolution-independent SVG ones
Ruby
10
star
14

iwc

Interactive wc(1)
C
10
star
15

Historize

jQuery plugin which allows you to keep an history on an input and a tab-completion system, like in a shell.
JavaScript
9
star
16

drive

Google Drive client wrapper in Python
Python
9
star
17

jquery-djangocsrf

A lightweight jQuery plugin to automatically add Django CSRF token to your AJAX calls
JavaScript
9
star
18

ud

🤘 Urban Dictionary in your terminal.
Ruby
8
star
19

homebrew-tools

🔧 Some tools for contributing to Homebrew
Ruby
8
star
20

jsons

💼 Read & write .jsons files in Go
Go
7
star
21

mvb

⏪ mv. reversed.
Shell
6
star
22

ascii2svg

Draw SVG graphs from text files
JavaScript
6
star
23

homer

Daemonize all the things
C
6
star
24

homebrew-search

🔎 Unofficial Homebrew search engine
Ruby
6
star
25

wptranslate

Wikipedia-based command-line translator
Python
5
star
26

blabbr

Twitter bot
Python
5
star
27

zprint.vim

A Vim plugin that runs zprint when you save.
Vim Script
5
star
28

homebrew-utils

🚙 Homebrew tap for personal utilities
Ruby
5
star
29

pouf

play random sounds from your command-line
Ruby
5
star
30

RemindMe

Web app to create SMS reminders
Python
4
star
31

k0s

8 less than k8s.
4
star
32

flatkeys

flatten dict keys in Python
Python
4
star
33

Dazibao

school project
C
4
star
34

crosswords

Crosswords help in the terminal
Python
4
star
35

UP7Connect

Connection to Paris Diderot’s WiFi made easy.
Ruby
4
star
36

gsutil-extra

gsutil with extra features
Ruby
4
star
37

Graphs.rb

Some Ruby functions to manipulate graph files
Ruby
4
star
38

ctrie

Compact tries in Python
Python
4
star
39

simple-progress

Simple progress bar for your Clojure programs
Clojure
4
star
40

pipe2mattermost

Pipe text into Mattermost
Go
3
star
41

task.sh

Easy step-by-step Bash scripts output
Shell
3
star
42

Summarify

Python library to get a title & description for a URL
Python
3
star
43

p7magma-web

Web interface for p7magma
Python
3
star
44

omgrofl.vim

Vim syntax file for the Omgrofl language
Vim Script
3
star
45

expd

📎 Expand text snippets on the command-line
Ruby
3
star
46

p7magma

A Python interface to Magma (a website for CS students at Paris Diderot)
Python
3
star
47

which

the `which` you’re used to, written in Go.
Go
3
star
48

AjaxEdit

Lightweight jQuery plugin to edit HTML text without reloading the page.
JavaScript
3
star
49

k

Enums for Python
Python
3
star
50

gosh

Simple shell written in Go
Go
3
star
51

wheresmystuff

📦 Where’s that stuff I ordered on Amazon yesterday?
Go
3
star
52

eolas

Toy programming language
Python
3
star
53

toggle-text

Quick library to make togglable text
JavaScript
3
star
54

movielens-data-analysis

Some code to analyse MovieLens’ datasets
Python
3
star
55

up

one command to update all your package managers
Shell
3
star
56

ArrayDB

Use your arrays as DB tables, and make queries on them.
JavaScript
2
star
57

Advent-of-Code-2017

My solutions to the Advent of Code 2017
Go
2
star
58

ecqopcd

A Website that tells you if you can go out running in Paris tomorrow
Python
2
star
59

LazyScraper

The easy way to make lazy entity-oriented Web scrapers
Ruby
2
star
60

didelcli

DidEL in the command-line.
Python
2
star
61

Antroid

School project
Go
2
star
62

M1Algo

school project
Python
2
star
63

trigrams

Trigrams-based random text generation
Python
2
star
64

AC6

school project
OCaml
2
star
65

web-pp

📜 Web port of alfred-pp
Python
2
star
66

EulerSolutions

Solutions to the Project Euler problems in Python
Python
2
star
67

pykbg

Python wrapper around Kelbongoo’s website
Python
2
star
68

p7doi

🔗 Open a research paper in your browser from its DOI
Python
2
star
69

previewer

Generate link previews as an image
Python
2
star
70

etutriche

Automatically detect cheating students
Python
2
star
71

shortjs

Shorten numbers
JavaScript
2
star
72

Doto

Quick & easy builders in Java
Java
2
star
73

SocioNoel

Books mentioned in #SocioNoel on Twitter, 2015
Ruby
2
star
74

epp

(fast) EDN pretty-printer
Go
2
star
75

clython

Call Python from Clojure
Clojure
2
star
76

gostruct

populate Go structs from webpages using CSS selectors
Go
2
star
77

shutils

🔌 shell utilities
Go
2
star
78

Pheasant.js

Easy colors manipulations.
JavaScript
2
star
79

alfred-pp

⏩ Alfred workflow to open Paris Diderot CS teachers’ personal homepages
Python
2
star
80

classy

Inspect .class Java files from Go
Go
2
star
81

tweets2fortune

script to transform a user's tweets into a fortune file
Io
1
star
82

WhitePage

simple online scratch pad
JavaScript
1
star
83

PrettyInputs

Make your inputs look like Dropbox’ ones.
JavaScript
1
star
84

Teebr

🐱 Twitter accounts recommendation
Python
1
star
85

webassets-iife

webassets filter to wrap a JS bundle in an IIFE to avoid global leaks and improve minification
Python
1
star
86

Reversi

Reversi game for the C class (LC4)
C
1
star
87

solarized-quora

Solarized theme for Quora’s code blocks
CSS
1
star
88

heck

Hexadecimal calculator
Go
1
star
89

cryptopals-solutions

Python
1
star
90

sq

📄 Bulk PDFs downloader
Ruby
1
star
91

slg

🤘 Slengo.it in your terminal.
Ruby
1
star
92

advent-of-code

Advent of Code 2015-2021 solutions in various languages
Python
1
star
93

clr

clear temporary files
Shell
1
star
94

defcli

Utilities library for some CLI tools
Ruby
1
star
95

lines

Experimental tools for line-based file formats
Go
1
star
96

ghtasklist

✔️ Fast Github task list formatting
Go
1
star
97

E.vim

E vim syntax file
Vim Script
1
star
98

.github

🏥 Default community health files for the bfontaine user on GitHub.
1
star
99

FormulaJS

Basic formulas interpreter
JavaScript
1
star
100

neural-nets

Playing with Tensorflow
Python
1
star