In the .git/config
file add the fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to the remote you want to fetch references to PR:s from.
π£
This file contains hidden or 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 | |
require dirname(__FILE__).'/wp-blog-header.php'; | |
$wpdb->query("DELETE FROM wp_terms WHERE term_id IN (SELECT term_id FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%')"); | |
$wpdb->query("DELETE FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%'"); | |
$wpdb->query("DELETE FROM wp_term_relationships WHERE term_taxonomy_id not IN (SELECT term_taxonomy_id FROM wp_term_taxonomy)"); | |
$wpdb->query("DELETE FROM wp_term_relationships WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('product','product_variation'))"); | |
$wpdb->query("DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('product','product_variation'))"); | |
$wpdb->query("DELETE FROM wp_posts WHERE post_type IN ('product','product_variation')"); |
This file contains hidden or 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
tell application "Reminders" | |
delete (every reminder whose completed is true) | |
end tell |
β β ⌘
β ⌘
β the Command Key symbol
β₯ β ⌥
β ⌥
β the Option Key symbol
β§ β ⇧
β ⇧
β the Shift Key symbol
β β ⌃
β ⌃
β the Control Key symbol
β β ⎋
β ⎋
β the ESC Key symbol
βͺ β ⇪
β ⇪
β the Capslock symbol
β β ⏎
β ⏎
β the Return symbol
β« β ⌫
β ⌫
β the Delete / Backspace symbol
β₯ β ⇥
β ⇥
β the Tab Key symbol
This file contains hidden or 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 | |
/** | |
* Fix network admin URL to include the "/wp/" base | |
* | |
* @see https://core.trac.wordpress.org/ticket/23221 | |
*/ | |
add_filter( 'network_site_url', function( $url, $path, $scheme ){ | |
$urls_to_fix = array( | |
'/wp-admin/network/', |
This file contains hidden or 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
/* Theme Name: Flat Pinboard */ | |
/* Theme URL: http://tackk.com/flat-pinboard */ | |
/* Version: v1.0 */ | |
/* Created by: Dan Klammer */ | |
/* Broswer: Chrome + Stylish Extension */ | |
html { | |
-webkit-font-smoothing:antialiased; | |
height:100%; | |
} |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# To call script from Drafts, use the follwing URLs as URL Actions: | |
# - <pythonista://insert_location.py?action=run&argv=[[draft]]&argv=address> | |
# (Will insert the address of your current location.) | |
# - <pythonista://insert_location.py?action=run&argv=[[draft]]&argv=link> | |
# (Will insert a Google Maps link to your current location.) | |
import location | |
import re |
This file contains hidden or 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
# To call script from Drafts, use the follwing URL as URL Action: | |
# <pythonista://calculate.py?action=run&argv=[[draft]]> | |
# Except for the last ten lines, this script was written by Erez Shinan, see <http://erezsh.wordpress.com/2013/02/24/how-to-write-a-calculator-in-70-python-lines-by-writing-a-recursive-descent-parser/>. | |
'''A Calculator Implemented With A Top-Down, Recursive-Descent Parser''' | |
# Author: Erez Shinan, Dec 2012 | |
import re, collections, sys | |
from operator import add,sub,mul,div |
This file contains hidden or 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
require 'active_record' | |
require 'wpdb' | |
require 'json' | |
ActiveRecord::Base.establish_connection( | |
:adapter => 'mysql', | |
:host => 'localhost', | |
:port => 3306, | |
:username => 'root', | |
:password => '', |