Skip to content

Instantly share code, notes, and snippets.

@frozenpandaman
frozenpandaman / widevine-decryption.md
Last active January 28, 2026 19:33
download videos protected with widevine DRM
@richaber
richaber / tribe_get_venue_object.md
Created June 28, 2022 16:50
tribe_get_venue_object() example var dump
@nicolaskopp
nicolaskopp / ios-fixed-scrolling-fix.css
Last active September 11, 2025 02:45
Fix scrolling bug on iOS Safari with fixed elements and bottom bar
/* Fix scrolling bug on iOS Safari with fixed elements and bottom bar */
body.noscroll {
height: 100%;
overflow: hidden; /* make sure iOS does not try to scroll the body first */
}
/* your wrapper, most likely mobile menu */
.fixed-wrapper {
width: 100%;
@brucebentley
brucebentley / iOS Shortcuts Catalog.md
Last active January 28, 2026 10:16
This is a public resource designed to help people get started with Siri Shortcuts & the Shortcuts app. It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Bruce's iOS Shortcut Catalog

Hello and welcome to my Shortcuts Catalog!

This is a public resource designed to help people get started with Siri Shortcuts and the Shortcuts app.

It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.

Enjoy!

@mrwweb
mrwweb / readme.md
Last active September 27, 2024 22:29
The Events Calendar v2 Template Reset & Customizations - Now on Github
@itsmikita
itsmikita / KILL-LARAVEL-VALET-MAC.md
Last active January 6, 2026 17:37
Uninstall Laravel/Valet from MacOS completely

Do the below and never try this again!

valet uninstall
composer global remove laravel/valet
sudo rm -rfv /usr/local/bin/valet
sudo rm -rfv ~/.valet
brew rm -rfv nginx [email protected] [email protected] dnsmasq
sudo rm -rfv /usr/local/Cellar/dnsmasq
sudo rm -rfv /usr/local/Cellar/nginx
@tarecord
tarecord / get_primary_taxonomy_term.php
Last active July 2, 2025 12:47
Returns the primary term for the chosen taxonomy set by Yoast SEO or the first term selected.
<?php
/**
* Returns the primary term for the chosen taxonomy set by Yoast SEO
* or the first term selected.
*
* @link https://www.tannerrecord.com/how-to-get-yoasts-primary-category/
* @param integer $post The post id.
* @param string $taxonomy The taxonomy to query. Defaults to category.
* @return array The term with keys of 'title', 'slug', and 'url'.
*/
@normanlolx
normanlolx / gulpfile.js
Last active December 7, 2022 10:57
Gulp 4 Sass BrowserSync Kickstart Example
// Requires Gulp v4.
// $ npm uninstall --global gulp gulp-cli
// $ rm /usr/local/share/man/man1/gulp.1
// $ npm install --global gulp-cli
// $ npm install
const { src, dest, watch, series, parallel } = require('gulp');
const browsersync = require('browser-sync').create();
const sass = require('gulp-sass');
const autoprefixer = require('gulp-autoprefixer');
const sourcemaps = require('gulp-sourcemaps');
@vovadocent
vovadocent / image_bg_color_nav_menu_item_ACF.php
Created September 20, 2018 14:27
Add background-image or background-color to nav menu item using ACF
<?php
//add background-image or background-color to nav menu item using ACF
add_filter('wp_nav_menu_items', 'new_nav_menu_items', 10, 2);
function new_nav_menu_items($items, $args) {
preg_match_all('/menu-item-([0-9]{1,10})"/ ', $items, $matches);
if (isset($matches[0]) && isset($matches[1])) {
foreach ($matches[0] as $k => $repl) {
$post_id = $matches[1][$k];