Skip to content

Instantly share code, notes, and snippets.

View daisyUniverse's full-sized avatar
💭
🌟 ✨ 💖 💫 🌟

Daisy Universe daisyUniverse

💭
🌟 ✨ 💖 💫 🌟
View GitHub Profile
@daisyUniverse
daisyUniverse / powerwatch.ps1
Created May 10, 2024 14:45
Powershell script that automatically uploads fresh minecraft screenshots to discord using webhooks
# PowerWatch
# Monitor a directory for changes and upload the file to a filehost, then include a link to that file in a webhook.
# Daisy Universe [D]
# 05 . 08 . 24
$filehost_url = "https://basedbin.fly.dev"
# You should point this to a trusted filehost. this script is set up to use https://github.com/wantguns/bin
$watch_path = "C:\Users\robins\Documents\PowerWatch"
# Pont this to your screenshots folder
@daisyUniverse
daisyUniverse / watch.sh
Created May 8, 2024 01:41
Bash script that automatically uploads fresh minecraft screenshots to discord using webhooks
#!/bin/bash
# REQUIRES: inotify-tools, bash, curl
# Automatic Image Webhook Poster
# Detects when an image is created in a specific folder, uploads it to a filehost, and then posts the link in an Embed to a Discord webhook
# Essentially made just to allow for automatic minecraft screenshot uploads as soon as I press F2
# Daisy Universe [D]
# 05 . 07 . 24
@daisyUniverse
daisyUniverse / whoami.py
Last active April 24, 2024 19:54
whoami - simple Flask server that returns who in a PluralKit system is fronting
# who am i ?
# Simple flask server that checks the current fronter of a system and returns their name
# Daisy Universe [Tr]
# 04 . 24 . 24
from pluralkit import Client
from flask import Flask
from flask_cors import CORS, cross_origin
from threading import Thread, current_thread
import asyncio
@daisyUniverse
daisyUniverse / clipDL
Created July 17, 2023 04:42
ClipDL: Script to automatically download / edit content from any URL in your clipboard
#!/bin/sh
clipboard=`xclip -o` # Grab the contents of the clipboard
DLDIR="$1" # Takes whatever dir was passed to it and sets it to the downloads dir
OPEN="$2" # Is there a second arg? if there is, set OPEN to whatever it is
NAME="${clipboard##*/}" # Get everything past the last /
EXT="${NAME##*.}" # Grab the file extension by itself
NAME="${NAME%.*}" # Remove the file extension from the filename
NAME="${NAME////}" # Remove any possible remaining / chars
#!/bin/bash
# Mousebutton action script made by Daisy Universe
# TODO: Write good code
normalScrot(){
echo "Taking a normal screenshot and pasting it to your clipboard"
sleep 0.2
scrot /tmp/clip.png -z --overwrite -s --freeze -e 'xclip -selection clipboard -target image/png -i $f'
cp /tmp/clip.png $HOME/Pictures/screenshots/`date +"%m-%d-%Y(%H:%M:%S)"`.png
@daisyUniverse
daisyUniverse / Animate-Job.psm1
Created February 23, 2023 17:13
Animate-Job Powershell Module
# Animate Job
# Show a ticker animation on any long winded jobs to it's not just a blank screen
# Pass args to this as $ArgumentList and access them in the job via $args[]
# Robin Universe [X]
# 02 . 23 . 23
# ANIMATIONS
Function anim { # Run one animation cycle
@daisyUniverse
daisyUniverse / pretty.ps1
Created February 22, 2023 20:09
Multi-Colored Powershell Prints
# Pretty Printer
# Robin Univere [R]
# 02 . 22 . 23
function pretty{param($msg,$col)$i=0;foreach($pt in $msg){Write-Host "$pt" -NoNewline -ForegroundColor $col[$i]; $i++}Write-Host}
# Example Usage
$front = "Robin"
pretty " >>> ", "Creating registry entry signifying ", $front, " as current fronter" "Magenta", "Green", "White", "Green"
@daisyUniverse
daisyUniverse / switch
Last active October 7, 2022 20:04
A command line tool to show your twitter / mastodon followers who is fronting from bash in your bio
#!/usr/bin/env python3
# Licensed under the WTFNOPL
# Written by the Multiverse System, mostly Theta.
# Requires Tweepy & Mastodon.py modules
from mastodon import Mastodon
import tweepy
import os
import argparse
import discord
import random
import subprocess
import asyncio
import aiohttp
import logging
import json
import time
import sys
import os
@daisyUniverse
daisyUniverse / fx.md
Last active February 18, 2022 10:47
The FX Standard Outline

FX Standard

A basic outline of my proposal for the FX Standard

0. FX Sites fix embeds from one platform to one or more platforms

This can be seen with my other projects, fxdeviantart, and fxtwitter they try to, as simply as possible, fix or try to greatly improve the quality of embeds from one site (DeviantArt and Twitter) to Discord clients, along with any other platform I can extend that support to.