Skip to content

Instantly share code, notes, and snippets.

View zulaica's full-sized avatar
👨‍💻

David Zulaica zulaica

👨‍💻
View GitHub Profile
@april
april / arena-macos-fixes.sh
Last active May 7, 2024 16:23
Fixes Magic Arena's broken full screen implementation on macOS
# this forces Arena into full screen mode on startup, set back to 3 to reset
# note that if you go into the Arena "Graphics" preference panel, it will reset all of these
# and you will need to run these commands again
defaults write com.wizards.mtga "Screenmanager Fullscreen mode" -integer 0
defaults write com.wizards.mtga "Screenmanager Resolution Use Native" -integer 0
# you can also replace the long complicated integer bit with any other scaled 16:9
# resolution your system supports.
# to find the scaled resolutions, go to System Preferences --> Display and then
# divide the width by 16 and multiple by 9. on my personal system this ends up
<?php
function remove_divi_shortcodes( $content ) {
$content = preg_replace('/\[\/?et_pb.*?\]/', '', $content);
return $content;
}
@zulaica
zulaica / super_prompt.bash
Last active May 8, 2020 11:22
Super Prompt
###
# Super Prompt
#
# Output:
# 📂 WORKING_DIRECTORY : 🌱 GIT_BRANCH
# 💎 RUBY_VERSION-pPATCH@GEMSET : 🛤 RAILS_VERSION : 🐹 EMBER_VERSION : ☑️️ TYPESCRIPT_VERSION : 💠 NODE_VERSION
# 💰
#
# WTF:
# 1. WORKING_DIRECTORY displays in the default color.
@zulaica
zulaica / super_spinner.bash
Last active August 17, 2022 08:59
Super Spinner: An Emoji-based spinner for bash
###
# Super Spinner
# An emoji-based spinner — because ASCII is boring.
#
# Usage:
# $ COMMAND & superSpinner $! "Message"
#
# Example:
# $ sleep 5 & superSpinner $! "Sleeping for 5 seconds"
#
@zulaica
zulaica / handy_ember_nombom.bash
Last active June 24, 2016 09:59
Handy Ember NomBom
###
# Handy Ember NomBom
# N.B. Meant to be used with Super Spinner
# https://gist.github.com/zulaica/9e971cc5b6dbd156abcd13745beff262
#
# Usage:
# $ nombom
#
# WTF:
# 1. Delete node_modules, bower_components, dist, and tmp directories
@runspired
runspired / .bash_profile
Last active February 6, 2023 14:56
Make Alfred / Spotlight ignore node_modules and bower_components
alias nom='npm cache clean && rm -rf node_modules && mkdir node_modules && touch node_modules/.metadata_never_index && npm install'
alias bom='bower cache clean && rm -rf bower_components && mkdir bower_components && touch bower_components/.metadata_never_index && bower install'