Skip to content

Instantly share code, notes, and snippets.

@rebane2001
rebane2001 / glass.html
Created June 10, 2025 15:08
glass effect test css/svg thing (messy)
<div style="position:absolute;top:-999px;left:-999px">
<svg
width="200"
height="200"
viewBox="0 0 220 220"
xmlns="http://www.w3.org/2000/svg">
<filter id="displacementFilter4">
<feImage xlink:href="data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='50' y='50' width='100' height='100' rx='25' fill='%230001' /%3E%3Crect x='50' y='50' width='100' height='100' rx='25' fill='%23FFF' style='filter:blur(5px)' /%3E%3C/svg%3E" x="0%" y="0%" width="100%" height="100%" result="thing9" />
@emkay
emkay / build-grub-osx.sh
Last active June 10, 2025 18:49
Build Grub on OSX
#!/bin/sh
set -e
# First we are going to make sure that you understand this is sort of experimental and we will be compiling stuff.
# by default CONTINUE will be false
CONTINUE=false
echo ""
echo "You are about to download, compile, and install stuff on your computer."
@braunglasrakete
braunglasrakete / Instagram Like Activity Deleter
Last active June 10, 2025 18:49 — forked from therealsarahw/instagram-like-activity-deleter.js
Instagram Like Activity Deleter: Automate the deletion of all your Instagram Likes from the 'Your Activity' section. Perfect for quick digital clean-up. For comments, see my other gist.
/**
* Instagram Like Removal Script – Enhanced Timing (2025)
* based on the comment activity deleter by sbolel, fixed and modified to work for likes as well
* important: UI language must be set to English for the script to work
*
* WARNING: This function directly manipulates the DOM and depends on the current HTML
* structure of Instagram's website to work. If Instagram implements changes to the
* activity page layout, structure, or functionality, this script may break or cause
* unexpected behavior. Use at your own risk and always review code before running it.
*
@papunmohanty
papunmohanty / docker-compose.yaml
Created May 20, 2024 20:50
Run Ollama & Open Web UI Locally using Docker & Docker Compose
version: '3.8'
services:
ollama:
image: ollama/ollama
container_name: ollama
volumes:
- ollama:/root/.ollama
networks:
- ollama_docker
aahed
aalii
aapas
aargh
aarti
abaca
abaci
aback
abacs
abaft
@AydinHassan
AydinHassan / test.php
Created June 10, 2025 14:44
Symfony Messenger w/o fw
<?php
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\Messenger\Event\WorkerMessageRetriedEvent;
use Symfony\Component\Messenger\EventListener\SendFailedMessageForRetryListener;
use Symfony\Component\Messenger\Handler\HandlersLocator;
use Symfony\Component\Messenger\MessageBus;
use Symfony\Component\Messenger\Middleware\HandleMessageMiddleware;
use Symfony\Component\Messenger\Middleware\SendMessageMiddleware;
use Symfony\Component\Messenger\Retry\MultiplierRetryStrategy;
@atao
atao / lock_input.ps1
Last active June 10, 2025 18:47
⌨️ Lock keyboard and mouse during n seconds.
#Run As Administrator
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
$code = @"
[DllImport("user32.dll")]
public static extern bool BlockInput(bool fBlockIt);
"@
$userInput = Add-Type -MemberDefinition $code -Name UserInput -Namespace UserInput -PassThru
@darcyparker
darcyparker / vimModeStateDiagram.svg
Last active June 10, 2025 18:46
Vim Modes Transition Diagram in SVG https://rawgithub.com/darcyparker/1886716/raw/eab57dfe784f016085251771d65a75a471ca22d4/vimModeStateDiagram.svg Note, most of the nodes in this graph have clickable hyperlinks to documentation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function OutputStatus($message){
try {
[Console]::SetCursorPosition(0,0)
Write-Host $message.PadRight([Console]::BufferWidth)
}
catch [System.IO.IOException] {
## IO Exception when unable to set position
}
}
$messages = @()
@talkingmoose
talkingmoose / Tahoe-compatible Macs (regex)
Last active June 10, 2025 18:46
Regex looks for all Mac models compatible with macOS 26 Tahoe. May not be up-to-date with newly released models.
https://www.apple.com/os/macos/
Published Date: June 9, 2025
Verification: https://regex101.com/r/ouFDlr/4
1) Exact regex — Matches major model identifier numbers based on Apple's knowledge base article (more accurate):
^(Mac(1[3-6]|BookPro1[6-8]|BookAir10|mini9|Pro7)|iMac2[01]),\d+$
2) Current or higher regex — Matches model identifiers based on Apple's knowledge base article and may match higher versions before this regex is updated (more future-proof).