clone url: git://git.m455.casa/sp
README.md
Scheme paste, a paste tool written in Chicken Scheme.
Also, a rewrite of my fpaste project.
rsync
xclip
This Git repository comes with static binaries in the builds
directory. By
default, sp installs into ~/.local/bin
.
If you want to install sp into a custom directory, refer to the Installing sp into a custom directory section.
sha256sum
on a static binary in the builds
directory to
make sure the checksum of the static binary matches the value in the checksum
file associated with the static binary you choose to use.make install
.Note: If you don't have the ~/.local/bin
directory in your $PATH
, then
add the following line to ~/.profile
:
export PATH="$PATH:$HOME/.local/bin"
This allows you to run the sp
command from any directory on your system.
You can change the directory that sp installs into by defining a value for the
DIR_INSTALL
make variable.
For example, to install sp into your ~/bin
, follow the steps below:
builds
directory.make install DIR_INSTALL=~/bin
.sp uses rsync to synchronize files to a remote or local directory that you can access over the web.
This section teaches you how to configure nginx to serve the synchronized files, and how to change sp's configuration file so your files upload to your web directory.
example.com
with your domain name.systemctl ...
commands with your
init commands.As root, follow the steps below:
mkdir -p /var/www/paste
.chown -R your_username:your_username /var/www/paste
.chmod -R 755 /var/www/paste
.assets/paste.example.com
file to /etc/nginx/sites-available/paste.example.com
.ln -s /etc/nginx/sites-available/paste.example.com /etc/nginx/sites-enabled/
.nginx -t
to check your nginx configuration for errors.systemctl restart nginx
.You can find information about configuring sp in the configuration file at
~/.sp
. If this file doesn't exist, then run sp init
.
sp help
- Displays this help message.sp init
- Creates a config file at ~/.sp
sp <path/to/file>
- Uploads a file to your remote paste directory. You can change your remote paste directory by editing your ~/.sp
configuration file.sp rm <path/to/file>
- Deletes a file from your remote paste directory, where <path/to/file>
should be a file in the local-paste-directory
that is specified in your ~/.sp
configuration file.sp sync
A static binary is available in the builds
directory. By default, this is
where the Makefile will create static binaries.
To compile a static binary from source, follow the steps below:
gcc
installed.make