Skip to content

Instantly share code, notes, and snippets.

@ongkiii
ongkiii / IPA-Sources.md
Last active December 8, 2025 11:53
REPOS/TELEGRAM CHANNELS LIST BY u/angkitbharadwaj
#!/bin/bash
#
# Chrome Profile Lister
# Lists all Google Chrome profiles with email addresses only
# Format designed for easy selection and extraction in Keyboard Maestro
#
# Process command-line options
SHOW_HEADER=true
FORMAT="default"
@Mariusthvdb
Mariusthvdb / pre-2025.5-sidebar-config.yaml
Last active September 26, 2025 17:22
Configuration file for custom-sidebar
##########################################################################################
# Global settings Custom sidebar https://github.com/elchininet/custom-sidebar
# version https://github.com/elchininet/custom-sidebar/releases/tag/v7.0.0
# @mariusthvdb 25-11-24
# https://community.home-assistant.io/u/mariusthvdb/summary
#
# still in card_mod theme: conditional animations and the notification badge on collapsed menu icon
##########################################################################################
# keep colors even when selected (and not change to the default HA styling in that case)
#popclip
name: Iconify
identifier: com.pilotmoon.popclip.extension.iconify
description: Search icons on Iconify
popclip version: 4151
icon: iconify:simple-icons:iconify
app: { name: Iconify, link: https://icon-sets.iconify.design/ }
url: https://icon-sets.iconify.design/?query=***
@pjaudiomv
pjaudiomv / docker-compose.yml
Created June 23, 2024 00:24
WordPress with SMTP using mailpit for local dev
services:
wordpress:
depends_on:
- db
- mailpit
image: wordpress:6.5.3-php8.3-apache
restart: always
ports:
- 8080:80
- 7443:443
@felds
felds / palette.scss
Created August 20, 2023 20:52
Sass Palette generator
@use "sass:color";
@use "sass:list";
@use "sass:math";
@use "sass:meta";
// Create a list of numbers
@function range($from, $to, $step: 1) {
// validation
@if meta.type-of($from) != "number" {
@error "$from must be a number.";
@mfehrenbach
mfehrenbach / chrome-device-dimensions.md
Last active November 28, 2025 18:14
Modern device dimensions for Chrome DevTools.

Modern Device Dimensions for Chrome DevTools

These are modern “Emulated Devices” (a.k.a. responsive dimensions) for Chrome DevTools’ Mobile Device Viewport Mode.

They are specifically Apple devices, subtracting for recent Safari UI (as in window.innerWidth/Height), and cleverly sorted with some dark-arts unicode shenanigans. (This glitchy, unloved portion of the tools sorts lexicographically, because of course it would.) Ergonomics!

 

Note

Updated June 2025 with some notes from folks below! TL;DR: use Vibranium!

@seocam
seocam / swap-displays.sh
Last active July 15, 2025 05:08
Script to swap display positions on OS X
#!/bin/bash
# Usage: ./swap-displays.sh 0 1
# Swaps display 0 (laptop display) position with the display 1 position.
# Also works for more displays, for example:
# ./swap-displays.sh 1 2
# Must install displayplacer before using:
# https://github.com/jakehilborn/displayplacer
@codeadamca
codeadamca / mamp-php-versions.md
Last active December 4, 2025 20:59
How to add new PHP versions to MAMP on a Mac

Adding Versions of PHP to MAMP on a Mac

If you're working on a project that requires a version of PHP higher than the versions that MAMP comes with, you can easily add additional verions.

My version of MAMP came installed with PHP 7.4.21 and 8.0.8. I'm attempting to use MAMP to host a Laravel application which requires at least PHP 8.1.

The version of PHP MAMP uses is often different than the version you have installed. I have installed PHP using Brew. I'm currently running PHP 8.1.8. If you want to check your installed version of PHP, use the terminal and run the following command:

php --version

Chrome Flags Backup

goto chrome://flags/ the press f12 and paste code then run backup() or restore()

function saveFile(filename, data) {
  return new Promise(resolve => {
    const blob = new Blob([data], { type: 'octet/stream' });
    const url = window.URL.createObjectURL(blob);
    const dom = document.createElement('a');