Skip to content

Instantly share code, notes, and snippets.

Avatar
🇹🇼

Alexis Tyler OmgImAlexis

🇹🇼
View GitHub Profile
View set-border-radius.js
document.documentElement.style.setProperty('--border-radius', '10px');
@OmgImAlexis
OmgImAlexis / README.md
Created Mar 18, 2022 — 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.**
View README.md
View query.sql
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
@OmgImAlexis
OmgImAlexis / shutdown_notification.yaml
Last active May 21, 2021 — forked from gregoryduckworth/restart_notification.yaml
Home Assistant Shutdown Notification Blueprint
View shutdown_notification.yaml
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:
View docker_log_size
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
View gist:f63479fdf70ec58b9f92fe00e6028cb0
$(document).ready(function() {
$('a').on('click', function() {
this.href = 'http://google.com';
});
});
View gist:4337ed0b43b2cff930ace1888f14de10
<%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