Skip to content

Instantly share code, notes, and snippets.

View wvfitzgerald's full-sized avatar
💭
Bug Hunting!

Bill Fitzgerald wvfitzgerald

💭
Bug Hunting!
View GitHub Profile
@chranderson
chranderson / nvmCommands.js
Last active February 17, 2026 14:55
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@khoipro
khoipro / functions.php
Created April 13, 2016 09:09
Remove CSS & JS version from default WordPress setting
// remove css js version
function remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );
@nepsilon
nepsilon / how-to-git-patch-diff.md
Last active January 22, 2026 13:50
How to generate and apply patches with git? — First published in fullweb.io issue #33

How to generate and apply patches with git?

It sometimes happen you need change code on a machine from which you cannot push to the repo. You’re ready to copy/paste what diff outputs to your local working copy.

You think there must be a better way to proceed and you’re right. It’s a simple 2 steps process:

1. Generate the patch:

git diff > some-changes.patch
@gokulkrishh
gokulkrishh / media-query.css
Last active March 12, 2026 00:57
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@rlandas
rlandas / gulpinstall.sh
Created August 21, 2015 06:02
GULP : Uninstalling and Installing GULP global and local
npm uninstall -g gulp
npm install -g gulp
npm uninstall --save-dev gulp
npm install --save-dev gulp
@RafaelFunchal
RafaelFunchal / MailPoet: Redirect After Submit
Last active February 16, 2018 21:54
Redirects to a custom link after submits the subscription form
<script>
(function($){
$(document).ready(function(){
$( 'form.widget_wysija' ).submit(function(e){
e.preventDefault();
setTimeout(function() {
var msg = $( '.wysija-msg' );
if( msg.text() !== '' ){
window.location.replace( 'http://your_thank_you_page_url' );
}
@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active January 29, 2026 10:49
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@bartholomej
bartholomej / css-media-queries-cheat-sheet.css
Last active February 27, 2026 12:38
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@ericclemmons
ericclemmons / functions.php
Last active June 23, 2023 01:47
Auto-activate WordPress Plugins
<?php
// Add to: path/to/wp-content/wp-themes/your-theme/functions.php
/**
* Activate required plugins
*/
include_once ( ABSPATH . 'wp-admin/includes/plugin.php' );
@dev1ne
dev1ne / new_gist_file
Created August 2, 2013 19:39
Replace [AT] and [DOT] in mailto links in jQuery
/*********************************
MAIL LINKS
*********************************/
$('a[href^="mailto"]').each(function(){
var $link = $(this);
var href = $link.attr('href');
var text = $link.text();
href=href.replace('[AT]','@');
href=href.replace('[DOT]','.');
text=text.replace('[AT]','@');