Skip to content

Instantly share code, notes, and snippets.

View traone's full-sized avatar

Henryk Helsky traone

  • Tampere, Finland
View GitHub Profile
I am attesting that this GitHub handle traone is linked to the Tezos account tz1hV9xZsXkbd9TEzBrMX4U6CaqdFT9yaFsU for tzprofiles
sig:edsigu6nB6aERc1A9RwQ88GHihMY5KfPgkGU92ksbbLiXYzyZC5V33ws88ndDTvE3HAkhfXP6eu57AW2kxbc18vKG18g9dBkE2J
@traone
traone / wavtoraw.sh
Created January 9, 2017 21:46
Convert stereo wav to mono raw files in subdirectories with ffmpeg
for file in ./*/*.WAV; do ffmpeg -i "$file" -ac 1 -f s16le -acodec pcm_s16le "$file.raw"; done
<?xml version="1.0" encoding="UTF-8"?>
<SalesOrder>
<TransactionID>100008082</TransactionID>
<TransactionDateTime>2015-07-21 23:00:43</TransactionDateTime>
<DeliveryTypeCode>2106</DeliveryTypeCode>
<AdditionalServices>9999</AdditionalServices>
<RoutingServiceCode>3201</RoutingServiceCode>
<CustomerEmail>[email protected]</CustomerEmail>
<CustomerPhone>0440120990</CustomerPhone>
<CustomerType>P</CustomerType>
<?xml version="1.0" encoding="UTF-8" ?>
<Items>
<Item>
<ItemID>56a51417-cedd-4498-a2e2-08679f0eda58</ItemID>
<MasterItemID></MasterItemID>
<WebAlias>SMTN5L</WebAlias>
<Name>Painesumutin 8l</Name>
<BrandName>Painesumutin 8l</BrandName>
<Type>STOCK</Type>
@traone
traone / Filter Relationship
Created February 3, 2015 13:40
Filter Relationship selector posts
// Restrict user from seeing others things
// name=field_name
add_filter('acf/fields/relationship/query/name=offices', function($args, $field, $post) {
$userID = get_current_user_id();
$args['author'] = $userID;
return $args;
}, 10, 3);
@traone
traone / gist:e0c045e37ec3c9cee03e
Created September 22, 2014 12:20
Composer files
// composer.json
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "A modern WordPress stack",
"homepage": "http://roots.io/wordpress-stack/",
"authors": [