find **/*.mt940 -type f -exec sed -i '' -e '1s/^:20:.*$/ABNANL2A\'$'\n''940M\'$'\n''ABNANL2A\'$'\n'':20:ABN AMRO BANK NV/g' {} \;
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
# https://sno.phy.queensu.ca/~phil/exiftool/faq.html#Q5 | |
exiftool -d "%Y-%m-%d" -DateTimeOriginal -S -s *.JPG | |
# -TAG or --TAG Extract or exclude specified tag | |
# -d FMT (-dateFormat) Set format for date/time values | |
# -s[NUM] (-short) Short output format | |
# -S (-veryShort) Very short output format | |
# https://ninedegreesbelow.com/photography/exiftool-commands.html |
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 | |
// `vat` or `tax` | |
// `amount` or `price` | |
// `including`, `inclusive` or `inc` | |
// `excluding`, `exclusive` or `exc` | |
$item = new Item(); | |
$item->get_total_price_including_tax(); |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> | |
<html> | |
<head> | |
<title>Pronamic.nl</title> | |
</head> | |
<frameset> | |
<frame src="https://www.pronamic.nl/"> | |
</frameset> |
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
# GNU tools on Mac. | |
# https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
# GNU `cat` | |
brew install coreutils | |
# GNU `xargs`: | |
# https://superuser.com/questions/467176/replacement-for-xargs-d-in-osx | |
brew install findutils --with-default-names |
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 | |
$post = get_post(); | |
$account = new Pronamic\WordPress\Lookup\Account( $post ); | |
$twinfield_post = $account->get_twinfield_post(); | |
$office_code = get_post_meta( $post->ID, '_lookup_twinfield_office_code', true ); |
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 | |
$client = $this->plugin->get_client(); | |
$xml_processor = $client->get_xml_processor(); | |
$browser = new \Pronamic\WP\Twinfield\Browse\Browser( $xml_processor ); | |
$office_code = get_option( 'twinfield_default_office_code' ); |
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
INSERT | |
INTO | |
orbis_projects_invoices ( project_id, invoice_number ) | |
SELECT | |
project.id, | |
project.invoice_number | |
FROM | |
orbis_projects AS project | |
LEFT JOIN | |
orbis_projects_invoices AS invoice |
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 | |
/** | |
* WordPress custom endpoints breadcrumbs. | |
*/ | |
class WordPressCustomEndpointsBreadcrumbs { | |
/** | |
* Setup. | |
*/ | |
public function setup() { |
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 | |
$offset = 0; | |
$length = 0; | |
$data = array( | |
'1', | |
'2', | |
'3', | |
'4', |