Skip to content

Instantly share code, notes, and snippets.

@lopadz
lopadz / SYNC_GIST_README.md
Last active March 31, 2021 03:46
Sync WP Code & DB Makefile Recipe

Sync WP code/database Makefile

This gist has been upgraded to a full repo! You can find an improved version here: https://github.com/lopadz/wp-sync.

See you there! 😉

Keybase proof

I hereby claim:

  • I am lopadz on github.
  • I am lopadz (https://keybase.io/lopadz) on keybase.
  • I have a public key ASBkgzCX3Y5szZHpsX8bRzYrfJPNgfn4kDx9EG4_5wN2Vgo

To claim this, I am signing this object:

@lopadz
lopadz / .ffsend_script
Last active March 30, 2019 18:58
Simple ZSH script to upload files to Firefox Send with FFSEND
#!/bin/zsh
# REQUIREMENTS:
# FFSEND CLI: https://github.com/timvisee/ffsend
# oh-my-zsh: https://github.com/robbyrussell/oh-my-zsh
# RECOMMENDED:
# Create alias adding these lines to your .zshrc file. Don't forget to run source .zshrc after you add them:
#if [ -f $HOME/Dropbox/scripts/.ffsend_script ]; then
# alias fs_up='$HOME/Dropbox/scripts/FFSEND/.ffsend_script'
@lopadz
lopadz / README.md
Last active February 28, 2023 11:04
Event Countdown Clock with Timezone Awareness

Event Countdown Clock with Timezone Awareness

jQuery.countdown is a great plugin to create countdowns, but it needs a bit of configuration to use it with event countdowns.

When you need a countdown clock that:

  • is aware of the event's Timezone
  • displays a notice when the event is in progress
  • displays a notice when the event has ended
  • hides elements when they reach zero
@lopadz
lopadz / wp5_incompatible_notice
Created March 6, 2019 18:38
Incompatible WP 5 Notice
/*======================================
WARNING FOR UPDATES PAGE
========================================*/
function wp5_incompatible_notice() {
$screen = get_current_screen();
// Make sure we're in the correct page
if ( 'update-core' === $screen->id ) {
@lopadz
lopadz / Makefile
Last active September 27, 2018 21:56
Wordpress Makefile Recipe
# ===================
# STATUS FEEBACK
# ===================
SEPARATOR = ----------------------------------------------------------
CHECK = \033[32m✔\033[39m
# ==============
# EDIT THIS
# ==============
#---------------------------------------------