Skip to content

Instantly share code, notes, and snippets.

View Venipa's full-sized avatar
🏠
Working from home

Venipa

🏠
Working from home
View GitHub Profile
@Venipa
Venipa / upload.php
Last active June 9, 2017 16:55
Simple File Upload
<?php
$target_dir = "uploads/".date("Y-m-d");
if(!file_exists($target_dir)) {
mkdir($target_dir);
}
$maxfilesize = 200; //MB
$filetype = ".".pathinfo($_FILES["files"]["name"], PATHINFO_EXTENSION);
$target_file = $target_dir . "/[" . date("h.m.s") . "]" . random_str(2) . "_" . $_FILES["files"]["name"];
$key = "Qvnpk7wVaYqHDEqkSCw31YWUd7bmNVaJbwsokX9aqzGDlhMb4a";
$postkey = isset($_POST["key"]) ? stripslashes(trim($_POST["key"])) : null;
package banknoten;
import java.util.Random;
import java.util.Scanner;
public class Helper {
public static String ReadLine() {
return ReadLine(new Scanner(System.in), 0);
}
public static String ReadLine(Scanner sc, int musthaveLength) {
package stringUebung;
import java.util.Random;
import java.util.Scanner;
public class Sbuilder {
public static void main(String[] args) {
new Sbuilder().start();
}

Keybase proof

I hereby claim:

  • I am venipa on github.
  • I am venipa (https://keybase.io/venipa) on keybase.
  • I have a public key ASDz8kBpGwrM4A2z4UIeJHyVgOOkOOlDh27lXQkb7n_qfwo

To claim this, I am signing this object:

import { Resolver, ResourceProxy, Lang, Message, Command, Util, Client, Logger } from "@yamdbf/core";
import { Collection, Emoji } from "discord.js";
const log = Logger.instance('EmojiResolver');
export class EmoteResolver extends Resolver {
public constructor(client: Client)
{
super(client, 'Emoji');
}
Copyright (c) 2016 Venipa
Simple you bought it you can use it.
No sharing of the product.
@Venipa
Venipa / yt2mp3.venipa.net-bookmark-convert
Created October 18, 2019 17:10
Add the Bookmark with this code as url
javascript:"use strict";!function(){const e=new URL(window.location.href);const t=/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i;if(!t.test(e.href))return;const o=t.exec(e.href)[1];var n,i;o&&(n=o,(i=document.createElement("a")).style="position: absolute; z-index: -1; width: 0; height: 0; opacity: 0",i.href="https://yt2mp3.venipa.net/video/"+n,i.target="_blank",i.click(),i.remove())}();
class Queue {
static queue = [];
static pendingPromise = false;
static enqueue(promise) {
return new Promise((resolve, reject) => {
this.queue.push({
promise,
resolve,
reject,
@Venipa
Venipa / timeghost-dark.user.css
Last active August 28, 2020 14:30
dark mode for timeghost
/* ==UserStyle==
@name timeghost - going dark
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A new userstyle
@author thiago@timeghost.io
==/UserStyle== */
@-moz-document domain("web.timeghost.io") {
:root {
--base-bg: #242424;
const COLOR_SCHEMES = {
Adjacency6: [
"#a9a57c",
"#9cbebd",
"#d2cb6c",
"#95a39d",
"#c89f5d",
"#b1a089",
],
Advantage6: [