Skip to content

Instantly share code, notes, and snippets.

View OkashiOdayakana's full-sized avatar

Okashi Odayakana OkashiOdayakana

View GitHub Profile

Keybase proof

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:

@OkashiOdayakana
OkashiOdayakana / keybase.md
Created April 19, 2018 23:36
Keybase proof

Keybase proof

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 D0DB A1F8 71C4 1932 0902 5DFD 4E38 389A D117 2616

To claim this, I am signing this object:

Keybase proof

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 EC28 AFF9 162F 6F09 2D92 EB09 1071 539A 8733 89CA

To claim this, I am signing this object:

@OkashiOdayakana
OkashiOdayakana / owotest.c
Last active July 13, 2017 20:10
some shitty owo thing made in C
#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);
}
@OkashiOdayakana
OkashiOdayakana / getting-started-sh.md
Last active March 1, 2019 22:35
OwO.sh Getting Started Guide

Getting Started with OwO.sh

The URL Shortener / File Uploader by @OkashiOdayakana, @Jakeoid, and @Aurieh

Installation

Go to https://owo.codes/whats-this/owo.sh and follow the instructions there.

@OkashiOdayakana
OkashiOdayakana / getting-started.md
Created May 18, 2017 01:45
OwO.sh Getting-Started

Getting Started with OwO.sh

The URL Shortener / File Uploader by @OkashiOdayakana and @Jakeoid

Debian/Ubuntu

  • Go to your terminal and run
sudo add-apt-repository "deb https://fourchin.net/repo trusty main"

to add the owo.sh repository to your sources.list

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."