Skip to content

Instantly share code, notes, and snippets.

View rainyskye's full-sized avatar
💭
screaming (neutral)

skye rainyskye

💭
screaming (neutral)
View GitHub Profile
/**
* @name midnight
* @description A darkened discord theme.
* @author refact0r
* @version 1.6.2
* @source https://github.com/refact0r/midnight-discord
* @authorId 508863359777505290
*/
/* IMPORTANT: make sure to enable dark mode in discord settings for the theme to apply properly!!! */
/**
* @name Slate
* @author Gibbu#1211 & Tropical#8908
* @version 1.1
* @invite TeRQEPb
* @description An optimized, consistent, and functional theme for Discord based on GitHub's design language.
* @source https://github.com/DiscordStyles/Slate/
* @website https://discordstyles.github.io/slate-theme/
*/
@rainyskye
rainyskye / 404.html
Created July 25, 2023 03:01
Minimal 404 Page Template
<div id="main">
<style>
*{
transition: all 0.6s;
}
html {
height: 100%;
}
@rainyskye
rainyskye / example.swift
Created June 4, 2023 13:32
Opening native app Settings/Preferences with SwiftUI
func openSettings() {
if #available(macOS 13, *) {
NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil)
} else {
NSApp.sendAction(Selector(("showPreferencesWindow:")), to: nil, from: nil)
}
}
@rainyskye
rainyskye / trustlocal.bat
Last active February 19, 2023 14:32
Trust Local Network in Windows
:sid
set sid=""
FOR /F "tokens=*" %%a in ('wmic useraccount where name^='%username%' get sid') do (
set b=%%a
if not "!b!" == "" (
set skip=false
(echo %%a | findstr /c:"SID" >nul) && set skip=true
if !skip! == false (
if !sid! == "" (
set sid=%%a
@rainyskye
rainyskye / docker-compose.yml
Last active January 15, 2023 04:21
*arr, jellyfin, jellyseerr, etc.
version: "2.1"
services:
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
environment:
- PUID=1000
- PGID=1000
- TZ=Canada/Pacific
volumes: