Skip to content

Instantly share code, notes, and snippets.

View bomberfish's full-sized avatar
:shipit:
ship now or die

Hariz S. bomberfish

:shipit:
ship now or die
View GitHub Profile
@bomberfish
bomberfish / edyt.user.css
Created September 19, 2025 01:27
OLED theme for YouTube.
/* ==UserStyle==
@name Even Darker YouTube
@namespace github.com/openstyles/stylus
@version 1.0.0
@description OLED theme for YouTube.
@author bomberfish
==/UserStyle== */
@-moz-document domain("youtube.com") {
html[darker-dark-theme][dark],
@bomberfish
bomberfish / x.user.css
Created September 19, 2025 01:25
An opinionated color scheme for X's "Lights out" theme.
/* ==UserStyle==
@name X Tinted
@namespace github.com/openstyles/stylus
@version 1.0.0
@description An opinionated color scheme for X's "Lights out" theme.
@author bomberfish
@var color accent "Tint Color" #ef9ce4
==/UserStyle== */
@-moz-document domain("x.com") {
@bomberfish
bomberfish / puter.user.css
Last active September 19, 2025 01:27
never let me in the kitchen again. press "raw" to install it into your userstyle loader extension
/* ==UserStyle==
@name liquid arse
@namespace github.com/openstyles/stylus
@version 1.0.0
@description one day i will atone for my sins
@author bomberfish
==/UserStyle== */
@-moz-document domain("puter.com") {
:root {
--glass: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><filter id="glass-distortion" x="0%" y="0%" width="100%" height="100%" filterUnits="objectBoundingBox"><feTurbulence type="fractalNoise" baseFrequency="0.01 0.01" numOctaves="1" seed="5" result="turbulence"/><feComponentTransfer in="turbulence" result="mapped"><feFuncR type="gamma" amplitude="1" exponent="10" offset="0.5"/><feFuncG type="gamma" amplitude="0" exponent="1" offset="0"/><feFuncB type="gamma" amplitude="0" exponent="1" offset="0.5"/></feComponentTransfer><feGaussianBlur in="turbulence" stdDeviation="3" result="softMap"/><feSpecularLighting in="softMap" surfaceScale="5" specularConstant="1" specularExponent="100" lighting-color="white" result="specLight"><fePointL
@bomberfish
bomberfish / DocumentPicker.swift
Last active May 8, 2025 14:34 — forked from scriptpapi/DocumentPicker.swift
Document Picker for SwiftUI
import SwiftUI
import UniformTypeIdentifiers
struct DocumentPicker: UIViewControllerRepresentable {
@Binding var filePath: URL?
var utTypes: [UTType]
func makeCoordinator() -> DocumentPicker.Coordinator {
return DocumentPicker.Coordinator(parent1: self)
@bomberfish
bomberfish / nextcloud-ctp.css
Created April 4, 2024 01:40
Catppuccin (Mocha Mauve) for Nextcloud Dashboard - Experimental!
:root {
--color-main-background: #11111b !important;
--color-main-background-rgb: 17, 17, 27 !important;
/* --color-main-background-translucent: rgba(
var(--color-main-background-rgb),
0.96
)!important;
--color-main-background-blur: rgba(var(--color-main-background-rgb), 0.8)!important;
--gradient-main-background: var(--color-main-background) 0%,
var(--color-main-background-translucent) 85%, transparent 100%!important; */
@bomberfish
bomberfish / BatteryInfo.swift
Last active March 13, 2024 14:53
Programmatically get advanced battery information on Apple devices
/// Rewrite of https://gist.github.com/leminlimez/ed3e3ee3a287c503c5b834acdc0dfcdc in Swift (the superior language)
/// NOTE: To use IOKit, you need to create a bridging header with the following contents: `#include <IOKit/IOKitLib.h>`
/// This requires you to have the (private) `systemgroup.com.apple.powerlog` entitlement.
func getBatteryInfo() throws -> [String:Any] {
var service: io_service_t? // Battery IOService
service = IOServiceGetMatchingService(kIOMainPortDefault, IOServiceMatching("AppleSmartBattery")) // iPhone 11+
if service == nil {
service = IOServiceGetMatchingService(kIOMainPortDefault, IOServiceMatching("IOPMPowerSource")) // Earlier iPhones
}
@bomberfish
bomberfish / find_xpc.sh
Created March 1, 2024 13:52
Find XPC Services vulnerable to CVE-2023-42942
#!/bin/bash
isMachO() {
if [[ $(file "$1") == *Mach-O* ]]; then
return 0
else
return 1
fi
}
@bomberfish
bomberfish / switch.css
Created August 26, 2023 19:01
nintendo switch ui in css (sorta)
/* bomberfish */
/* Basic Styling */
@import url('https://fonts.googleapis.com/css2?family=PT+Mono&display=swap');
html,
html.light {
--bg: #ebebeb;
--bg2: #fdfdfd;
--fg: #2e2e2e;
--mg: #c9c9c9;
--[[
PERLIN NOISE TERRAIN GENERATION
This script generates terrain using Roblox's built-in math.noise() function.
It creates small parts, which will act as terrain.
TO DO:
-Render around the player instead of rendering everything!
-Infinite worlds