Skip to content

Instantly share code, notes, and snippets.

View DerEnderKeks's full-sized avatar

DerEnderKeks DerEnderKeks

View GitHub Profile
@DerEnderKeks
DerEnderKeks / yanius.service
Created April 5, 2017 15:44
Yanius 2.x Systemd unit file
[Unit]
Description=Yanius
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStart=/usr/local/bin/docker-compose -f /opt/Yanius/docker-compose.yml up
ExecStop=/usr/local/bin/docker-compose -f /opt/Yanius/docker-compose.yml stop
@DerEnderKeks
DerEnderKeks / Dockerfile
Created April 5, 2017 15:43
Yanius 2.x Dockerfile
FROM node:6.7
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
@DerEnderKeks
DerEnderKeks / docker-compose.yml
Created April 5, 2017 15:42
Yanius 2.x docker-compose.yml
version: '3'
services:
web:
build: .
ports:
- "56792:56792"
volumes:
- ./upload:/usr/src/app/upload
- ./config:/usr/src/app/config
db:
{
"Name": "Yanius",
"RequestType": "POST",
"RequestURL": "http(s)://your.domain/api/upload",
"FileFormName": "file",
"Arguments": {
"apikey": "<your api key>"
},
"ResponseType": "Text",
"URL": "$json:url$"
@DerEnderKeks
DerEnderKeks / upload.sh
Last active October 20, 2018 17:39
Linux file upload script for Yanius (https://github.com/DerEnderKeks/Yanius)
#!/bin/bash
# LICENSE
# The MIT License (MIT)
# Copyright (c) 2017 DerEnderKeks
# 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

Keybase proof

I hereby claim:

  • I am DerEnderKeks on github.
  • I am derenderkeks (https://keybase.io/derenderkeks) on keybase.
  • I have a public key whose fingerprint is F90B B31F 042C EC81 480C 2A38 059C 8498 1DEE BA18

To claim this, I am signing this object: