Skip to content

Instantly share code, notes, and snippets.

View NetOpWibby's full-sized avatar
🔮
M A G I C

netop://wibby NetOpWibby

🔮
M A G I C
View GitHub Profile
@NetOpWibby
NetOpWibby / mulberry32.c
Created October 18, 2024 16:59 — forked from tommyettinger/mulberry32.c
Mulberry32 PRNG
/* Written in 2017 by Tommy Ettinger ([email protected])
To the extent possible under law, the author has dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
See <http://creativecommons.org/publicdomain/zero/1.0/>. */
#include <stdint.h>
@NetOpWibby
NetOpWibby / main.rs
Created July 24, 2024 03:28 — forked from samuelint/main.rs
Tauri Sidecar Lifecycle & Forward stderr
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
pub mod sidecar_lifecycle_service;
use std::sync::Mutex;
use tauri_plugin_log::LogTarget;
use tauri::{Manager, State, WindowEvent};
use sidecar_lifecycle_service::SidecarLifeCycleService;
@NetOpWibby
NetOpWibby / potential-bad-domains.txt
Created July 11, 2024 19:03 — forked from 0xngmi/potential-bad-domains.txt
List f domains associated with squarespace at risk of being hacked
List of domains that are registered with squarespace and thus could be vulnerable:
celer.network
pendle.finance
karak.network
compound.finance
hyperliquid.xyz
dydx.exchange
thorchain.com
threshold.network
@NetOpWibby
NetOpWibby / typescript-png-pixel-art-generator.ts
Created June 21, 2024 23:16 — forked from dgca/typescript-png-pixel-art-generator.ts
Zero dependency function to generate an image in PNG format and return it as a base64-encoded string
/**
* Generates an image in PNG format and returns it as a base64-encoded string.
*
* @param colors - An array of color values
* @param pixels - An array of pixel values
* @param width - The width of the image
* @param height - The height of the image
* @param scale - The scale factor to apply to the image (default: 1, uses nearest-neighbor interpolation)
* @returns The base64-encoded string representation of the generated image
*/
@NetOpWibby
NetOpWibby / DNSSEC-Signing.md
Created March 23, 2024 18:15 — forked from sandeeprenjith/DNSSEC-Signing.md
DNSSEC Keys and Signing Process Simplified

cyber-security-2296269_1920

DNSSEC Keys and Signing Process Simplified

This article describes what happens when a zone is signed with DNSSEC. This document helps to understand the concept of zone signing and does not detail the actual steps for signing a zone.

@NetOpWibby
NetOpWibby / openssl.sh
Created February 29, 2024 03:35 — forked from NULLx76/openssl.sh
OpenSSL generate ed25519 and RSA
# Generate ed25519 privkey
openssl genpkey -algorithm ed25519 -out privkey.pem
# export its pubkey
openssl pkey -in privkey.pem -pubout -out pubkey.pem
# Generate RSA privkey
openssl genrsa -des3 -out private.pem 2048
# export its pubkey
openssl rsa -in private.pem -outform PEM -pubout -out public.pem
@NetOpWibby
NetOpWibby / obsidian-web-clipper.js
Created February 20, 2024 03:13 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@NetOpWibby
NetOpWibby / full-match.js
Created June 25, 2023 02:34 — forked from sethlopezme/full-match.js
Regex for matching any hex, rgb(a), or hsl(a) value. Assumes that you've lowercased the string and removed spaces.
/^(#?([a-f\d]{3,4}|[a-f\d]{6}|[a-f\d]{8})|rgb\((0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d),(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d),(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d)\)|rgba\((0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d),(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d),(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d),(0|0?\.\d|1(\.0)?)\)|hsl\((0|360|35\d|3[0-4]\d|[12]\d\d|0?\d?\d),(0|100|\d{1,2})%,(0|100|\d{1,2})%\)|hsla\((0|360|35\d|3[0-4]\d|[12]\d\d|0?\d?\d),(0|100|\d{1,2})%,(0|100|\d{1,2})%,(0?\.\d|1(\.0)?)\))$/
import * as React from "react";
import { useMousePosition } from "~/hooks/useMousePosition";
/** Component to cover the area between the mouse cursor and the sub-menu, to allow moving cursor to lower parts of sub-menu without the sub-menu disappearing. */
export function MouseSafeArea(props: { parentRef: React.RefObject<HTMLDivElement> }) {
const { x = 0, y = 0, height: h = 0, width: w = 0 } = props.parentRef.current?.getBoundingClientRect() || {};
const [mouseX, mouseY] = useMousePosition();
const positions = { x, y, h, w, mouseX, mouseY };
return (
<div
// USAGE: hsd --log-console=false --plugins=/path/to/this/file/expiring-plug.js
'use strict';
const {
Namestate,
Network
} = require('hsd');
const plugin = exports;