Skip to content

Instantly share code, notes, and snippets.

View OmgImAlexis's full-sized avatar
🇹🇼

Alexis Tyler OmgImAlexis

🇹🇼
View GitHub Profile
@OmgImAlexis
OmgImAlexis / set-border-radius.js
Last active April 2, 2022 02:56
set-border-radius
document.documentElement.style.setProperty('--border-radius', '10px');
@OmgImAlexis
OmgImAlexis / README.md
Created March 18, 2022 20:36 — forked from BrandonMiller97528/README.md
A deleted commit from the node-ipc repository. You can find the original commit here: https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js **WARNING: THIS IS LIVE MALWARE. RUN IT AT YOUR OWN RISK.**
SELECT views, case WHEN (hour(now()) + x) >= 24 THEN (hour(now()) + x) - 24 ELSE hour(now()) + x END AS part FROM long_sequence(24),
JOIN (SELECT count() as views, hour(timestamp) as part FROM hits WHERE timestamp > dateadd('d', -1, now()) GROUP BY part) as b
ON part = b.part
test
@OmgImAlexis
OmgImAlexis / shutdown_notification.yaml
Last active May 21, 2021 06:38 — forked from gregoryduckworth/restart_notification.yaml
Home Assistant Shutdown Notification Blueprint
blueprint:
name: Home Assistant Shutdown Notification
description: Notify a user that Home Assistant starts shutting down
domain: automation
input:
notification_title:
name: Notification title (Optional)
description: 'Default: "Home Assistant"'
default: Home Assistant
notification_message:
OmgImAlexis
co=$(docker inspect --format='{{.Name}}' $(docker ps -aq --no-trunc) | sed 's/^.\(.*\)/\1/' | sort); for c_name in $co; do c_size=$(docker inspect --format={{.ID}} $c_name | xargs -I @ sh -c 'ls -hl /var/lib/docker/containers/@/@-json.log' | awk '{print $5 }'); YE='\033[1;33m'; NC='\033[0m'; PI='\033[1;35m'; RE='\033[1;31m'; case "$c_size" in *"K"*) c_size=${YE}$c_size${NC};; *"M"*) p=${c_size%.*}; q=${p%M*}; r=${#q}; if [[ $r -lt 3 ]]; then c_size=${PI}$c_size${NC}; else c_size=${RE}$c_size${NC}; fi ;; esac; echo -e "$c_name $c_size"; done
$(document).ready(function() {
$('a').on('click', function() {
this.href = 'http://google.com';
});
});
OmgImAlexis
PyMedusa
Agenda
radioactive-squirrels
<%inherit file="/layouts/main.mako"/>
<%!
from medusa import app
from medusa.helpers import anon_url
from medusa.indexers.indexer_api import indexerApi
from medusa.indexers.utils import indexer_id_to_name, mappings
from medusa import sbdatetime
from random import choice
import datetime
import time