Skip to content

Instantly share code, notes, and snippets.

View marioy47's full-sized avatar

Mario Yepes marioy47

View GitHub Profile
@kasparsd
kasparsd / wp-api-mirror-config.php
Last active October 1, 2024 13:26
Replace WP.org API calls with custom hostnames
<?php
/**
* Plugin Name: WP API Mirror Config
*
* Place this file in `wp-content/mu-plugins/wp-api-mirror.php`
* and it will be activated automatically.
*
* Note that most requests to api.wordpress.org contain dynamic payload
* such as list of activated plugins, themes and your site URLs. Some of
* them also use POST requests so be sure to configure heavy caching that
@aaronwaldon
aaronwaldon / 1) readme.md
Last active March 30, 2025 19:51
How to set up Gulp for Compass compilation and minification, JavaScript minification, livereloading, and use with ExpressionEngine.

How to set up Gulp with an ExpressionEngine project

I freaking love working with technologies like Grunt and Gulp, and wanted to share how to get my current EE front-end workflow set up. With a few tweaks, this can also be used with virtually any other sites (I've used it with Laravel, static sites, Craft, etc).

Install Node.js

  • If Node is not yet installed on the machine, it will need to be installed

Install Gulp (if needed)

@actionshrimp
actionshrimp / ToggleGStatus
Created September 9, 2013 09:49
A vim-fugitive status window toggle (mapped to F3). Seems to work nicely
function! ToggleGStatus()
if buflisted(bufname('.git/index'))
bd .git/index
else
Gstatus
endif
endfunction
command ToggleGStatus :call ToggleGStatus()
nmap <F3> :ToggleGStatus<CR>
@gregrickaby
gregrickaby / _golden-ratio.scss
Last active August 28, 2023 14:31
Golden Ratio Typography for Sass
//
// Golden Ratio Typography
// --------------------------------------------------
// Golden Ratio Math
//
// Let's do some math so we can build beautiful typography and vertical rhythm.
// For any magic to happen, set the $ContentWidth variable on _variables.scss
// to match your content box width (normally this is 640px, 740px, etc...).
@IanVaughan
IanVaughan / uninstall_gems.sh
Created June 9, 2012 20:37
Uninstall all rbenv gems
#!/usr/bin/env bash
uninstall() {
list=`gem list --no-versions`
for gem in $list; do
gem uninstall $gem -aIx
done
gem list
gem install bundler
}