View eefix.sh
cd ~
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
ee site update domain.com --le=off # or run with sudo, though, not needed.
./letsencrypt-auto certonly --webroot -w /var/www/domain.com/htdocs/ -d domain.com -d www.domain.com --email your@email.com --text --agree-tos
ee site update domain.com --le=on # or run with sudo, though, not needed.
View functions.php
/**
* Check Remember me.
*
* Check the Remember Me checkbox on WP Login Page automatically.
*
* @since 1.0.0
* @author AhmadAwais (https://AhmadAwais.com/)
*/
function aa_auto_remember_me() {
add_filter( 'login_footer', function() {
View functions.php
<?php
/*
Remove the `<p></p>` Tags From Author Description in WordPress
Since WordPress 4.9 by default WordPress adds paragraph tags to the author descriptions.
This sometimes breaks your theme styles. Stop this by adding the following to your `functions.php` file.
*/
// Remove p tags from author description.
remove_filter( 'get_the_author_description', 'wpautop' );
View wpcp.sh
# Create a DIff/patch.
function wpcp() {
if [[ "-h" == "$1" ]]; then
echo "-"
echo "${wb}${bf}———————————————— Help! ————————————————${r}"
echo "${wb}${bf}————————————————-------————————————————${r}"
echo "${wb}${bf}——— Usage: wpcp ———${r}"
echo "-"
return 1
else
View fbAlbum.js
/**
* Set Caption of All Facebook Pics in an Album.
*
* 1. Create and upload pictures in a Facebook album.
* 2. Edit the alubm, go till the end to load all pics.
* 3. Open Browser console (CMD ⌘ + J for Chrome).
* 4. Run the following script line by line after editing the `theCaps` variable.
* 5. Then save the album. Cheers!
*
* @author Ahmad Awais (https://github.com/ahmadawais)
View install.md
View .zshrc
#.# zsh-syntax-highlighting
#
# Fish shell like syntax highlighting for Zsh
#
# @link: http://github.com/zsh-users/zsh-syntax-highlighting
source ~/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
ZSH_HIGHLIGHT_PATTERNS=('rm -rf *' 'fg=white,bold,bg=red') # To have commands starting with `rm -rf` in red:
View .zshrc
source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red')
View backupcli.sh
#!/bin/bash
# Backup CLI.
# Backup your entire Linux/Ubuntu server to Dropbox.
## Dropbox Uploader: https://github.com/andreafabrizi/Dropbox-Uploader
# EDIT the following.
BACKUP_SRC="/root /etc /home"
BACKUP_DST="/tmp"
MYSQL_SERVER="127.0.0.1"
MYSQL_USER="ADD_ROOT_USER_HERE"
View meeting-notes-wp-js-core.md

Meeting Notes — WordPress JavaScript #core-js

  • aduth 8:02 PM A question I’d like to start with is: What role should a framework play in a WordPress developer’s workflow, and in which contexts?

(And from the perspective of a framework contributor, it would be interesting to get a perspective on recommendations or observed patterns for extendable interfaces generally)

  • aduth 8:07 PM Framed another way, why are people so passionate about this discussion, and in what ways they feel it has an impact