mirror of
https://github.com/benapetr/stikkit.git
synced 2025-04-26 04:51:09 -05:00
Small changes
This commit is contained in:
parent
950094775c
commit
885c4f441c
10
README.md
10
README.md
@ -31,10 +31,10 @@ Checkout this repository
|
|||||||
cd stikkit
|
cd stikkit
|
||||||
cmake .
|
cmake .
|
||||||
make
|
make
|
||||||
make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
NOTE: you need to have libcurl-dev installed in your system
|
NOTE: you need to have `libcurl-dev` installed in your system
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
=====
|
=====
|
||||||
@ -53,9 +53,9 @@ The url parameter can be stored to configuration file (stikkit will ask you in c
|
|||||||
Configuration
|
Configuration
|
||||||
=====
|
=====
|
||||||
|
|
||||||
The default configuration pulls the URL from /etc/stikkit/url - however, the better approach is to create your own config directory. The stikkit software will look for ".stikkit" in your home directory.
|
The default configuration pulls the URL from `/etc/stikkit/url` - however, the better approach is to create your own config directory.
|
||||||
|
|
||||||
Within this directory, there are a few key files worth creating.
|
The stikkit software will look for `.stikkit` in your home directory. Within this directory, there are a few key files worth creating.
|
||||||
|
|
||||||
- *url* - Contains your base installation URL for stikked
|
- *url* - Contains your base installation URL for stikked
|
||||||
- *apikey* - If your stikked installation requires an API key, save it in here
|
- *apikey* - If your stikked installation requires an API key, save it in here
|
||||||
@ -68,4 +68,4 @@ Tips
|
|||||||
|
|
||||||
Do you have a server and want to setup default pastebin site for all users in system?
|
Do you have a server and want to setup default pastebin site for all users in system?
|
||||||
|
|
||||||
Create /etc/stikkit/url which contains the url of default pastebin site. Users will be able to override it, but by default everyone on system will use this
|
Create `/etc/stikkit/url` which contains the url of default pastebin site. Users will be able to override it, but by default everyone on system will use this
|
||||||
|
@ -134,7 +134,7 @@ int main(int argc, char *argv[])
|
|||||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, post.c_str());
|
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, post.c_str());
|
||||||
curl_easy_setopt(curl, CURLOPT_USERAGENT, "stikkit");
|
curl_easy_setopt(curl, CURLOPT_USERAGENT, "stikkit");
|
||||||
|
|
||||||
/* Perform the request, res will get the return code */
|
/* Perform the request, res will get the return HTTP code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
/* Check for errors */
|
/* Check for errors */
|
||||||
if(res != CURLE_OK)
|
if(res != CURLE_OK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user