-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from SparkedHost/redesign
✨ Redesign ✨
- Loading branch information
Showing
15 changed files
with
221 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License | ||
|
||
Copyright © 2011-2012 John Crepezzi | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the ‘Software’), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
# Haste | ||
# Sparked Paste | ||
|
||
Haste is an open-source pastebin software written in node.js, which is easily | ||
installable in any network. It can be backed by either redis or filesystem, | ||
and has a very easy adapter interface for other stores. A publicly available | ||
version can be found at [hastebin.com](http://hastebin.com) | ||
Sparked Paste is a fork of the open-source project haste-server, modified to | ||
match the Sparked Host brand and with a couple different patches and improvements. | ||
|
||
Major design objectives: | ||
|
||
|
@@ -20,22 +18,19 @@ to do things like: | |
which will output a URL to share containing the contents of `cat something`'s | ||
STDOUT. Check the README there for more details and usages. | ||
|
||
## Tested Browsers | ||
|
||
* Firefox 8 | ||
* Chrome 17 | ||
* Safari 5.3 | ||
|
||
## Installation | ||
|
||
1. Download the package, and expand it | ||
2. Explore the settings inside of config.json, but the defaults should be good | ||
3. `npm install` | ||
4. `npm start` (you may specify an optional `<config-path>` as well) | ||
1. Clone the repository: `git clone https://github.com/SparkedHost/Sparked-Paste` | ||
2. Explore the settings inside of config.js, but the defaults should be good. | ||
3. Run `npm install` to install all the required npm packages. | ||
4. Create the `hastes` directory: `mkdir hastes` | ||
5. `npm start` (you may specify an optional `<config-path>` as well) | ||
|
||
Read the wiki for a more in-depth installation guide. | ||
|
||
## Settings | ||
|
||
* `host` - the host the server runs on (default localhost) | ||
* `host` - the host the server runs on (default 127.0.0.1) | ||
* `port` - the port the server runs on (default 7777) | ||
* `keyLength` - the length of the keys to user (default 10) | ||
* `maxLength` - maximum length of a paste (default 400000) | ||
|
@@ -52,7 +47,7 @@ STDOUT. Check the README there for more details and usages. | |
|
||
When present, the `rateLimits` option enables built-in rate limiting courtesy | ||
of `connect-ratelimit`. Any of the options supported by that library can be | ||
used and set in `config.json`. | ||
used and set in `config.js`. | ||
|
||
See the README for [connect-ratelimit](https://github.com/dharmafly/connect-ratelimit) | ||
for more information! | ||
|
@@ -87,12 +82,12 @@ for the key. | |
|
||
### File | ||
|
||
To use file storage (the default) change the storage section in `config.json` to | ||
To use file storage (the default) change the storage section in `config.js` to | ||
something like: | ||
|
||
``` json | ||
{ | ||
"path": "./data", | ||
"path": "./hastes", | ||
"type": "file" | ||
} | ||
``` | ||
|
@@ -357,30 +352,7 @@ Here is a list of all the environment variables | |
## Author | ||
|
||
John Crepezzi <[email protected]> | ||
|
||
## License | ||
|
||
(The MIT License) | ||
|
||
Copyright © 2011-2012 John Crepezzi | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the ‘Software’), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE | ||
Raúl Molina <[email protected]> | ||
|
||
### Other components: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ | |
|
||
"documents": { | ||
"about": "./about.md", | ||
"howtouse": "howtouse.md" | ||
"howtouse": "./howtouse.md" | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# How to use the Sparked Paste service | ||
# Getting Started with [Sparked Paste](https://paste.sparked.host) | ||
|
||
1. First navigate to the main page @ https://paste.sparked.host | ||
## What is Sparked Paste? | ||
|
||
2. You will be greeted by a dark gray page where you can type text. | ||
Sparked Paste is a service, originally made by [toptal](https://github.com/toptal/haste-server), but has been forked by the [Sparked Host LLC DevOps Team](https://sparkedhost.com/about-us) to include a better looking theme and more features. This website provides the ability for clients to send server logs and configuration files easily with our Support Team and our Community. | ||
|
||
3. Paste code, text, log snippets, etc. on that page | ||
## How do I use Sparked Paste? | ||
|
||
4. Once you're done, you will see a save button on the top right corner of the page, click on that to save it, or use Control + S. | ||
|
||
5. The URL on your browser will update, and syntax highlighting will be applied to your paste. Copy that new URL and send it wherever you want. | ||
1) First, navigate to the main page [here](https://paste.sparked.host). | ||
2) You will be greeted by a dark gray page where you can type (or paste) text, code, or configurations. | ||
3) Once you're done, you will see a save button on the top right corner of the page, click on that to save it, or use Control + S. | ||
4) The URL on your browser will update, and syntax highlighting will be applied to your paste. Copy that new URL and send it wherever you want. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.