- Accelerate: The Science of Lean Software and DevOps: Building and Scaling High Performing Technology Organizations
- A Philosophy of Software Design, 2nd Edition by John Ousterhout
- The Pragmatic Programmer: Your Journey To Mastery (20th Anniversary Edition) by David Thomas, Andrew Hunt
- The Legacy Code Programmer's Toolbox by Jonathan Boccara
- Working Effectively with Legacy Code by Michael Feathers
- Don't Make Me Think, Revisited: A Common Sense Approach to Web Usability (3rd Edition) by Steve Krug
- [Build APIs You Won't Hate: Everyo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -u | |
set -e | |
set -o pipefail | |
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
cat <<'EOF' > /etc/modprobe.d/blacklist-ipv6.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# bash ttfb.sh url [num_of_tests] | |
# bash ttfb.sh https://example.org 11 | |
if [[ -z $@ ]] | |
then | |
echo "Pass url and number of test runs to execute. By default 10 tests are executed." | |
echo "bash ttfb.sh url [num_of_tests]" | |
echo "E.g: $ bash ttfb.sh https://example.org 10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From: https://www.cssigniter.com/writing-effective-css-for-wordpress/ | |
curl -gs "https://api.wordpress.org/themes/info/1.1/?action=query_themes&request[browse]=popular&request[per_page]=100" | grep -o -E -e '"slug":".+?"' | awk -F: '{ print $2 }' | tr -d \" | xargs wp theme install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Duplicate order functionality | |
* | |
* @author WooThemes | |
* @category Admin | |
* @package WooCommerce/Admin | |
* @version 2.7.0 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('posts_clauses', 'posts_clauses_with_tax', 10, 2); | |
function posts_clauses_with_tax( $clauses, $wp_query ) { | |
global $wpdb; | |
//array of sortable taxonomies | |
$taxonomies = array('example-taxonomy', 'other-taxonomy'); | |
if (isset($wp_query->query['orderby']) && in_array($wp_query->query['orderby'], $taxonomies)) { | |
$clauses['join'] .= " | |
LEFT OUTER JOIN {$wpdb->term_relationships} AS rel2 ON {$wpdb->posts}.ID = rel2.object_id | |
LEFT OUTER JOIN {$wpdb->term_taxonomy} AS tax2 ON rel2.term_taxonomy_id = tax2.term_taxonomy_id | |
LEFT OUTER JOIN {$wpdb->terms} USING (term_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* ICS.php | |
* ======= | |
* Use this class to create an .ics file. | |
* | |
* Usage | |
* ----- | |
* Basic usage - generate ics file contents (see below for available properties): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bug https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1683383 | |
# Original article https://habrahabr.ru/post/87408/ | |
# @Todo- Automate the version detection | |
# @Todo- Use version variable in commands below so script don't break when new major or minor versions are released | |
# create directory | |
mkdir xorg-server | |
cd xorg-server | |
# get sources of required package |