.gitconfig
[alias]
# A simplified graph of branches**
branchtree = log --oneline --decorate --all --graph --simplify-by-decoration
# Search commit messages
logsearch = !sh -c 'git log -i --all --grep=$1' -
<?php | |
function myprefix_kses_allowed_tags($input){ | |
return array_merge( $input, array( | |
// paragraphs | |
'p' => array( | |
'style' => array() | |
), | |
'span' => array( | |
'style' => array() | |
), |
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: circleci/node:10 | |
steps: | |
- checkout | |
- run: npm install | |
- run: sudo apt-get update && sudo apt-get install -y python-dev | |
- run: sudo curl -O https://bootstrap.pypa.io/get-pip.py |
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: circleci/node:10 | |
steps: | |
- checkout | |
# Download and cache dependencies | |
- restore_cache: |
$.widget( "nmk.currencyField", { | |
// Default options. | |
options: { | |
decimalPlaces: 2, | |
decimalSeperator: ".", | |
thousandSeperator: ",", | |
}, | |
_create: function() { |
<?php | |
/** | |
* This is a basic example of implementing front end creation of events with Event Organiser | |
* @see http://www.stephenharris.info/2012/front-end-event-posting/ | |
* @see http://wordpress.org/extend/plugins/event-organiser/ | |
* | |
*/ | |
add_shortcode('my_event_form','my_event_form_shortcode_handler'); | |
function my_event_form_shortcode_handler( ){ |
#!/bin/bash | |
# | |
# print-selected.sh | |
# | |
# Print files from the right-click context menu in Nautilus. | |
# Place this script in ~/.local/share/nautilus/scripts & make executable. | |
# | |
# @see http://askubuntu.com/questions/319948/printing-multiple-files-from-nautilus | |
# @see http://www.frenssen.be/content/printing-file-right-click-context-menu-nautilus | |
for i in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS |
.gitconfig
[alias]
# A simplified graph of branches**
branchtree = log --oneline --decorate --all --graph --simplify-by-decoration
# Search commit messages
logsearch = !sh -c 'git log -i --all --grep=$1' -
<?php | |
/** | |
* Plugin Name: OAuth 1.0a Single Access Token | |
* Description: Create Single Access Tokens | |
* Version: 0.1.0 | |
* | |
*/ | |
/** | |
* Allows you to create a 'single access token' for each consumer. |
#!/bin/bash | |
# Delete the rewrite_rules of every blog and ping them to recreate the rewrite rules. | |
# | |
# Assumptions: | |
# 1. Your database prefix is wp_ | |
# 2. Your sites are using https:// | |
# 3. The mysql credentials specifed in your .cnf file have the approriate permissions (obviously) | |
# | |
# Usage: ./report-all-blog-themes.sh /path/to/mysql.cnf | |
set -e |