Skip to content

Instantly share code, notes, and snippets.

View enzious's full-sized avatar

enzious enzious

View GitHub Profile
@enzious
enzious / hose_automation.yaml
Created July 13, 2024 19:36
Hose Automation
blueprint:
name: Hoe Automation
description: Control hose schedule
domain: automation
input:
hoses:
@enzious
enzious / logging.rs
Created June 13, 2023 23:01
Logging with slog
use std::collections::HashSet;
use std::sync::{Arc, Mutex};
use file_rotate::compression::Compression;
use file_rotate::suffix::{AppendTimestamp, DateFrom, FileLimit};
use file_rotate::{ContentLimit, FileRotate};
use lazy_static::lazy_static;
use slog::Drain;
use crate::config::LoggingConfig;
@enzious
enzious / CHANNEL.css
Created December 13, 2018 02:33
v4c script
/* Switch comments around on DDoS. */
@import 'https://static.v4c.wtf/v4c-script/release/v4c-script.css?5dec18';
@import 'https://fonts.googleapis.com/css?family=Lato';
@import 'https://use.fontawesome.com/releases/v5.2.0/css/all.css';
#lights{
background-image: url('https://cdn.discordapp.com/attachments/471165110493380618/521373086855987216/aYRR7ZI.png');
height:33px;
width:100%;
background-repeat:repeat-x;
@enzious
enzious / PlayRust.user.js
Last active March 18, 2017 06:58
PlayRust.user.js
// ==UserScript==
// @name PlayRust+
// @namespace fuzo.us
// @include http://playrust.io/map/*
// @version 1
// @grant none
// ==/UserScript==
(function() {
// ==UserScript==
// @name AyySync.latest
// @namespace http://fuzo.us/
// @version 1.2
// @description try to take over the world!
// @author enzi
// @match http://cytu.be/r/*
// @match https://cytu.be/r/*
// @grant none
// ==/UserScript==
@enzious
enzious / ayysync.user.js
Last active January 30, 2017 05:50
ayysync.user.js v1
// ==UserScript==
// @name AyySync
// @namespace http://fuzo.us/
// @version 1.34
// @description try to take over the world!
// @author enzi
// @match http://cytu.be/r/*
// @match https://cytu.be/r/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name AyySync
// @namespace http://fuzo.us/
// @version 0.2
// @description try to take over the world!
// @author enzi
// @match http://cytu.be/r/*
// @match https://cytu.be/r/*
// @grant none
// ==/UserScript==
local SERVICE = {}
SERVICE.Name = "CyTube"
SERVICE.IsTimed = false
SERVICE.ValidExtensions = { '', 'html', 'htm', 'xhtml', 'dhtml', 'php', 'asp', 'aspx' }
local UrlPattern = "http://cytu.be/r/%s"
function SERVICE:Match( url )
@enzious
enzious / jquery.class.js
Created October 4, 2016 02:57
A jQuery implementation of Mootools Class
(function($) {
var initjQuery = jQuery.fn.init;
$.fn.init = function(s, c, r) {
if ($.type(s) === "object" && "toElement" in s) {
return s.toElement();
} else {
return new initjQuery(s,c,r);
}
};