Skip to content

Instantly share code, notes, and snippets.

Last updated: 2015-08-11

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs

<script>
var intercomSettings = {
app_id: "{{Intercom app ID}}"
};
(function() {var w = window;var ic = w.Intercom;if (typeof ic === "function") {ic('reattach_activator');ic('update', intercomSettings);} else {var d = document;var i = function() {i.c(arguments)};i.q = [];i.c = function(args) {i.q.push(args)};w.Intercom = i;var s = d.createElement('script');s.type = 'text/javascript';s.async = true;
s.src = 'https://widget.intercom.io/widget/{{Intercom app ID}}';
var x = d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s, x);}})();
</script>
@thewheat
thewheat / composer.json
Created November 26, 2016 08:29
Upload photos / interacting with Picasa Web Albums / Google Photos via old API https://developers.google.com/picasa-web/docs/2.0/developers_guide_protocol
{
"name": "thewheat/code",
"authors": [
{
"name": "Timothy Lim",
"email": "tim.lim@intercom.io"
}
],
"require": {
"google/apiclient": "^2.0"
@thewheat
thewheat / stations.geojson
Last active November 20, 2016 13:59
Map of Shell Stations of Brunei
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thewheat
thewheat / gtm-intercom.js
Last active January 5, 2018 02:53 — forked from beastawakens/gtm-intercom.js
Adding Google Tag Manager variables to intercomSettings
```
<script>
// app ID
var intercomSettings = {
app_id: "{{IC - Dynamic app ID}}"
};
// Verifies and cleans all GTM variables
function pushGTMVariablesToIntercom(gtmKey, gtmValue) {
if("{{User - Account - Type}}" != "Guest"){
@thewheat
thewheat / Readme.md
Last active October 11, 2017 14:58
Creating a child theme for customisation of Intercom's Wordpress plugin https://wordpress.org/plugins/intercom/ / https://github.com/intercom/intercom-wordpress

Details

Installation

  • Save style.css and function.php into a folder (e.g. intercom-child)
@thewheat
thewheat / map NCR.geojson
Created July 7, 2016 08:37
Bus Route NCR. Based on Bus Route Overview and not actual signage. Likely lots of mistakes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thewheat
thewheat / map 57_58.geojson
Created July 7, 2016 08:03
Bus Route 57/58. Based on Bus Route Overview and not actual signage. Likely lots of mistakes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thewheat
thewheat / map 55.geojson
Created July 7, 2016 07:43
Bus Route 55. Based on Bus Route Overview and not actual signage. Likely lots of mistakes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.