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 / 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
@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 / 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 / rebuild-vagrant-machine-index.php
Created June 23, 2017 11:01
Traverse a directory and add all 'unknown' virtual machines to vagrants index.
<?php
/**
* Traverse through folder and rebuild vagrant machine index
*
* @author Alexander Goller <hello@alpipego.com>
* @license MIT
*/
// setup
@alpipego
alpipego / yay-update-ignore-errors
Created January 18, 2020 08:34 — forked from norcalli/yay-update-ignore-errors
A wrapper script to run yay and incrementally build a list of packages to ignore if they error out.
#!/bin/sh
# Wrapper script around yay to try to ignore errors
# Copyright © 2019 Ashkan Kiani
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
<?php
/**
* Created by PhpStorm.
* User: alpipego
* Date: 03.05.18
* Time: 18:01
*/
//return;
@alpipego
alpipego / Install-php7.md
Last active August 31, 2018 08:24 — forked from hollodotme/Install-php7.md
Server Setup

Install packages

sudo apt-get -y install nginx curl libcurl3 libcurl3-dev git redis-server

Install php7.2

Ubuntu

Title
Test Title
<title>Title Tag</title>
@alpipego
alpipego / formvalidation.js
Last active October 11, 2017 08:08
jQuery Formvalidation Script
/**
* Created by alpipego on 04.12.2016.
*/
jQuery(document).ready(function ($) {
var data = {
isValid: false,
errors: []
};
window.formDataIsValid = false;