Coder Social home page Coder Social logo

filesdotharrydotcity's Introduction

FILESDOTHARRYDOTCITY

File sharing, built for IRC

Usage

  1. npm i
  2. Set password environment variable, e.g. export PASSWORD=x
  3. Set hostname environment variable for the returned links, e.g. export HOSTNAME=https://harry.city
  4. Set port environment variable, e.g. export PORT=3000
  5. node index.js

Code snippets

You can upload code snippets from the homepage, instead of storing the data in a DB it creates a HTML file on the fly which is then hosted in the static/ folder like any other upload. The code snippet request will return a URL to this HTML file instead of the raw snippet however the page contains a link to the raw snippet.

CLI upload tool

Move hdc.sh to /usr/local/bin/hdc and chmod +x /usr/local/bin/hdc.

Help output

FILESDOTHARRYDOTCITY upload tool v1.0 - upload temporary files to files.harry.city

usage: hdc [--version] [--help] [-p <password> | --password <password>] [-u <url> | --url <url>] [-x] [-c | --clip] <file path>

options:
  <file path> | clipboard
      If no file path is provided then the image in the clipboard will be used.

  --version
      Prints the tool version.

  --help
      Prints description and tool arguments.

  -p <password>, --password <password>
      Password for the server. Can also be provided at the top of the script.

  -u <url>, --url <url>
      Uses a different upload URL than the one embedded in the tool. Can be used for debugging purposes.

  -x
      Generates a URL using the 'x' id scheme.

  -c, --clip
      Upload an image clip (uses xclip and maim on Linux).

Wiping cron command

0 * * * * find $LOCATION/static -type f -mmin +1440 -delete

filesdotharrydotcity's People

Stargazers

 avatar

Watchers

 avatar

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.