I hereby claim:
- I am Okashiodayakana on github.
- I am okashi (https://keybase.io/okashi) on keybase.
- I have a public key whose fingerprint is 1BEA 85B5 D85A A71D FB88 CDE3 E436 BF4A 4349 FE69
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #include <stdio.h> | |
| #include <curl/curl.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| int shorten(int argc, char *argv[]) | |
| { | |
| if (argc != 4) { | |
| printf("Invalid number of arguments. Please specify arguments in the order key, url.\n"); | |
| exit(1); | |
| } |
The URL Shortener / File Uploader by @OkashiOdayakana, @Jakeoid, and @Aurieh
Go to https://owo.codes/whats-this/owo.sh and follow the instructions there.
| gzip on; | |
| gzip_disable "msie6"; | |
| gzip_vary on; | |
| gzip_proxied any; | |
| gzip_comp_level 6; | |
| gzip_buffers 16 8k; | |
| gzip_http_version 1.1; | |
| gzip_types *; |
| #!/bin/bash | |
| if [ -z "$key" ] | |
| then | |
| echo "Please enter your key" | |
| read key | |
| fi | |
| echo "Please enter the URL you wish to shorten" | |
| read url | |
| result=$(curl "https://api.whats-th.is/shorten/polr?action=shorten&key=$key&url=$url") | |
| echo $result | xclip -i -sel c -f |xclip -i -sel p |
| #!/bin/bash | |
| if [ -z "$key" ] | |
| then | |
| echo "Please enter your key" | |
| read key | |
| fi | |
| echo "Please enter the file you want to upload." | |
| read entry | |
| mimetype=$(file -b --mime-type $entry) | |
| curl -F "files[]=@"$entry"; type=$mimetype" https://api.whats-th.is/upload/pomf?key="$key" |
| #!/bin/bash | |
| if [ -z "$key" ]; then | |
| notify-send owoshorten "Please enter your key." | |
| echo "Please enter your key." | |
| read key | |
| fi | |
| notify-send owoshorten "Please enter the URL you wish to shorten." | |
| echo "Please enter the URL you wish to shorten." |