Skip to content

Instantly share code, notes, and snippets.

View vegasgeek's full-sized avatar

John Hawkins vegasgeek

View GitHub Profile
@vegasgeek
vegasgeek / block.json
Created March 4, 2023 18:02
ACF block.json default
{
"name": "name",
"title": "Block Name",
"description": "Block Description",
"style": "file:style.css",
"script": "",
"category": "formatting",
"icon": "games",
"apiVersion": 2,
"keywords": [ "Keyword 1", "Keyword 2" ],
@vegasgeek
vegasgeek / Sync Script Bedrock
Created June 27, 2022 19:57
Sync Script Bedrock
#!/bin/bash
# Syncing Trellis & Bedrock-based WordPress environments with WP-CLI aliases
# Version 1.1.0
# Copyright (c) Ben Word
# Modifications by NeONBRAND
set -a
source ../.env
set +a
@vegasgeek
vegasgeek / makewpsuck.sh
Created June 27, 2022 19:18 — forked from kennyeliason/makewpsuck.sh
Make WP Suck Less or More
#!/bin/bash
# Make sites into bedrock or normal WordPress
# Version 1.0
# Copyright (c) NeONBRAND
set -a
source .env
set +a

Keybase proof

I hereby claim:

  • I am vegasgeek on github.
  • I am vegasgeek (https://keybase.io/vegasgeek) on keybase.
  • I have a public key ASDp_RT3Q64giYnNk9Ru-gZvWgnY6qrgc2-tJ0sEzQzvdwo

To claim this, I am signing this object:

@vegasgeek
vegasgeek / gist:764e1fa23be5657d4213793d3d6c8bce
Created March 9, 2017 04:49
AppPresser CSS tweak examples
CSS Examples
Customize the home page buttons
-------------------------------
.custom-page .dark-content {
background-color: #ffffff;
}
.custom-page .menu-card {
@vegasgeek
vegasgeek / 0_reuse_code.js
Created August 18, 2014 02:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@vegasgeek
vegasgeek / gist:8891196
Created February 8, 2014 22:19
Attendee export tool for Event Ticketing
<?php
/*
Plugin Name: Event Ticketing - Export Attendees
Description: Display a comma separated list of attendees
Version: 1
Author: 9seeds.com
Author URI: http://9seeds.com/
*/
add_action( 'admin_menu', 'wpet_export_admin' );
@vegasgeek
vegasgeek / gist:5701400
Created June 3, 2013 21:04
A custom search for @alfredapp to search Flickr for photos licensed under Creative Commons
alfred://customsearch/Flickr%20Creative%20Commons/flickr/utf8/plus/http://www.flickr.com/search/?q={query}&l=cc&ss=2&ct=0&mt=all&w=all&adv=1
@vegasgeek
vegasgeek / gist:5631599
Created May 22, 2013 22:55
A collection of Alfred custom searches
area code lookup
alfred://customsearch/Area%20Code/Area%20Code/utf8/plus/https://www.google.com/search?q=area+code+{query}
Is Up lookup
alfred://customsearch/Is%20Up%3F/isup/utf8/noplus/http://isup.me/{query}
studio press theme demo pages
alfred://customsearch/StudioPress%20theme/sp/ascii/noplus/http://demo.studiopress.com/{query}
Whois lookup
@vegasgeek
vegasgeek / gist:5631549
Created May 22, 2013 22:44
Tired of wondering where an area code is from? Here's an Alfred extension for quick lookups
alfred://customsearch/Area%20Code/Area%20Code/utf8/plus/https://www.google.com/search?q=area+code+{query}