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
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\]$ ' |
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
<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 |
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
#!/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 | |
################################################################# |
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
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 |
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
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 |
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
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 |
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
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 |
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
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; |