Skip to content

Instantly share code, notes, and snippets.

View alpipego's full-sized avatar
😴
So very tired.

Alex Goller alpipego

😴
So very tired.
View GitHub Profile
@alpipego
alpipego / ar-quick-look.php
Created June 24, 2021 07:13
Upload USDZ/Reality files for AR Quick Look to WordPress
<?php
/**
* Plugin Name: Upload AR Quick Look files
* Description: Upload AR Quick Look files (usdz or reality) to your WordPress media library.
* Author: Alexander Goller
* Author URI: https://alexandergoller.com
*/
$arMimes = [
@alpipego
alpipego / input.scss
Created July 5, 2021 14:42
Generated by SassMeister.com.
[data-key="\\"] {
color: red;
}
[data-key=\\] {
color: red;
}
[data-key="test"] {
color: red;
@alpipego
alpipego / input.scss
Created February 15, 2022 16:46
Generated by SassMeister.com.
.thing {
padding: 10px;
padding-right: 20px;
}
.other-thing {
padding: {
top: 30px;
right: 20px;
bottom: 50px;
@alpipego
alpipego / brew-search-info-install
Last active December 13, 2023 05:10
Streamline Homebrew search-info-install
#!/bin/bash
# Function to prompt for package installation
prompt_install() {
local pkg=$1
brew info "$pkg"
read -p "Do you want to install $pkg? [Y/n] " answer
if [[ "$answer" == "Y" ]] || [[ "$answer" == "y" ]] || [[ -z "$answer" ]]; then
brew install "$pkg"
else