Skip to content

Instantly share code, notes, and snippets.

@tbutts
tbutts / tmux-migrate-options.py
Last active May 7, 2025 15:12
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
#!/usr/bin/env python
# vim: set fileencoding=utf-8
#
# USAGE:
# Back up your tmux old config, run the script and redirect stdout to your conf
# file. Example:
#
# $ cp ~/.tmux.conf ~/.tmux.conf.orig
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf
#
@diggeddy
diggeddy / GP Mobile Heading Sizes
Created March 18, 2019 22:06
Adjust headings font size for mobile
/* GP mobile heading sizes */
@media (max-width: 768px) {
h3 {
font-size: 28px;
}
h4 {
font-size: 24px;
}
@pawamoy
pawamoy / .bugwarriorrc
Last active April 26, 2023 04:11
conky porn post
[general]
targets = github_pawamoy
shorten = True
inline_links = False
annotation_links = True
annotation_comments = False
legacy_matching = False
@generatepress
generatepress / gist:9fe556128433b11114b489406fc8dee4
Created February 14, 2019 22:36
Disable the Header Element if there isn't a featured image.
add_filter( 'generate_header_element_display', function( $display ) {
if ( ! has_post_thumbnail() ) {
return false;
}
return $display;
} );
@bradtraversy
bradtraversy / pipenv_cheat_sheet.md
Last active June 30, 2025 02:39
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell
@spivurno
spivurno / gp-nested-forms-display-child-entries-table-format.php
Last active April 16, 2021 01:22
Gravity Perks // GP Nested Forms // Display Table Format for All Fields
<?php
/**
* WARNING! THIS SNIPPET MAY BE OUTDATED.
* The latest version of this snippet can be found in the Gravity Wiz Snippet Library:
* https://github.com/gravitywiz/snippet-library/blob/master/gp-nested-forms/gpnf-display-child-entries-table-format.php
*/
/**
* Gravity Perks // GP Nested Forms // Display Table Format for All Fields
* http://gravitywiz.com/documentation/gravity-forms-nested-forms/
*
<script type="text/javascript">
jQuery(document).bind('gform_post_render', function(e, formId, currentFormPage) {
var $form = jQuery('#gform_' + formId);
if ($form.data('configurator-init') === true) {
return;
}
$form.on('click', '.config-layer.image-choices-field .ginput_container_radio input', function (e) {
/* Global for both forms on page */
ul.gfield_radio li:not(:last-child), ul.gfield_checkbox li:not(:last-child),
.image-choices-field .image-choices-choice,
.image-choices-field .image-choices-choice .image-choices-choice-selected {
margin-right:0px!important;
border:none!important;
}
.gfield:not(:last-child) {
margin-bottom:0px!important;
}
@nathaningram
nathaningram / gist:fd93507506887646f3e6bbba634f932e
Last active March 29, 2019 19:43
Custom Functions Plugin
<?php
/*
Plugin Name: Custom Functions Plugin
Plugin URI: https://wpnathan.com
Description: A set of custom functions for client websites.
Version: 1.0
Author: Nathan Ingram
Author URI: https://wpnathan.com
License: GPL2
*/

Frontend Masters: AWS for Frontend Engineers

You should have the following completed on your computer before the workshop:

  • Install the AWS CLI.
  • Have Node.js installed on your system. (Recommended: Use nvm.)
    • Install yarn with brew install yarn.
  • Create an AWS account. (This will require a valid credit card.)
  • Create a Travis CI account. (This should be as simple as logging in via GitHub).