Skip to content

Instantly share code, notes, and snippets.

@pepl
pepl / vicc_activities.pl
Created February 2, 2022 08:33
Initial version from 2016 (before Strava API data has been significantly restricted for privacy reasons)
use strict;
use warnings;
use Cpanel::JSON::XS;
use Text::CSV_XS;
use DateTime;
use DateTime::Format::ISO8601;
use WebService::Strava;
use Net::Google::Drive::Simple;
INFO CoreAdminHome[2021-08-04 17:12:44 UTC] [4427] initiating archiving via core:archive for [idSite = 3, period = month 2021-08-01,2021-08-31, segment = , plugin = , report = ]
INFO CoreAdminHome[2021-08-04 17:12:44 UTC] [4441] initiating archiving via core:archive for [idSite = 3, period = week 2021-05-31,2021-06-06, segment = , plugin = , report = ]
INFO CoreAdminHome[2021-08-04 17:12:44 UTC] [4427] initiating archiving via core:archive for [idSite = 3, period = week 2021-08-02,2021-08-08, segment = , plugin = VisitsSummary, report = ]
INFO CoreAdminHome[2021-08-04 17:12:44 UTC] [4427] initiating archiving via core:archive for [idSite = 3, period = day 2021-08-04,2021-08-04, segment = , plugin = VisitsSummary, report = ]
INFO CoreAdminHome[2021-08-04 17:12:44 UTC] [4441] initiating archiving via core:archive for [idSite = 3, period = day 2021-05-31,2021-05-31, segment = , plugin = VisitsSummary, report = ]
INFO Goals[2021-08-04 17:15:56 UTC] [4427] aggregateDayReport starting
WARNING Goals[2021-08-04 17:17
INFO [2021-08-04 14:01:31] 15178 ---------------------------
INFO [2021-08-04 14:01:31] 15178 INIT
INFO [2021-08-04 14:01:31] 15178 Running Matomo 4.3.1 as Super User
INFO [2021-08-04 14:01:31] 15178 ---------------------------
INFO [2021-08-04 14:01:31] 15178 NOTES
INFO [2021-08-04 14:01:31] 15178 - Async process archiving supported, using CliMulti.
INFO [2021-08-04 14:01:31] 15178 - Reports for today will be processed at most every 900 seconds. You can change this value in Matomo UI > Settings > General Settings.
INFO [2021-08-04 14:01:31] 15178 - Archiving was last executed without error 4 hours 9 min ago
INFO [2021-08-04 14:01:31] 15178 - Will process 1 websites (--force-idsites)
INFO [2021-08-04 14:01:31] 15178 - Will process specified sites: 3
INFO [2021-07-31 16:03:29] 5460 ---------------------------
INFO [2021-07-31 16:03:29] 5460 INIT
INFO [2021-07-31 16:03:29] 5460 Running Matomo 4.3.1 as Super User
INFO [2021-07-31 16:03:29] 5460 ---------------------------
INFO [2021-07-31 16:03:29] 5460 NOTES
INFO [2021-07-31 16:03:29] 5460 - Async process archiving supported, using CliMulti.
INFO [2021-07-31 16:03:29] 5460 - Reports for today will be processed at most every 900 seconds. You can change this value in Matomo UI > Settings > General Settings.
INFO [2021-07-31 16:03:29] 5460 - Archiving was last executed without error 35s ago
INFO [2021-07-31 16:03:29] 5460 - Will process 1 websites (--force-idsites)
INFO [2021-07-31 16:03:29] 5460 - Will process specified sites: 3
Invalidating month periods in 2021-01-01,2021-08-01 [segment = ]...
Success. The following dates were invalidated successfully: 2021-01-01, 2021-02-01, 2021-03-01, 2021-04-01, 2021-05-01, 2021-06-01, 2021-07-01, 2021-08-01
@pepl
pepl / whoop-goldencheetah.py
Created April 27, 2020 16:54 — forked from jkreileder/whoop-goldencheetah.py
Python 3 script to export WHOOP Strap recovery data for use with Golden Cheetah
#!/usr/bin/env python
import requests # for getting URL
import json # for parsing json
from datetime import datetime # datetime parsing
import pytz # timezone adjusting
import csv # for making csv files
import os
#################################################################
<html>
<body data-domain="geizhals.at">
<span class="m">jobs</span>
<style>
[data-domain="geizhals.at"] span.m::after
{ content: "@" "geizhals" ".at"; }
/* @document is not widely supported */
[data-domain="geizhals.de"] span.m::after
@pepl
pepl / gist:6806879
Created October 3, 2013 08:25
.bashrc git branch
parse_git_branch() {
git branch 2> /dev/null | perl -lanE 'if (/^\* (.*)/) { $b=$1; $b=~s/^(.{20}).+/$1.../; say "[$b]"; }'
}
export PS1='\[\e[32;1m\]\u@${debian_chroot:+($debian_chroot)}\h\[\e[0m\]:\[\e[36;1m\]\w\[\e[0m\]\[\e[31;1m\]$(parse_git_branch)\[\e[0m\]$ '