Skip to content

Instantly share code, notes, and snippets.

@robole
robole / sitetest
Last active January 4, 2023 21:48
Tests the links in a sitemap XML file to verify that they are active links. It will output a CSV with the URL and its HTTP status code.
#!/bin/bash
#
# Tests the links in a sitemap XML file to verify that they are active links. It
# will output a CSV with the URL and its HTTP status code.
#
# Requires: xmllint and curl (typically installed on Unix-like systems)
function _help() {
echo "Description: Test the links in a sitemap XML file to see if they are active webpages. It produces a CSV file with the URL and HTTP status code of each link. By default, it will write to a file named 'output.csv'."
echo ""
@robole
robole / telemetry.json
Last active October 21, 2023 06:09
VS Code Telemetry
{
"vscode-core": {
"events": {
"extensionGallery:install": {
"success": {
"classification": "SystemMetaData",
"purpose": "PerformanceAndHealth",
"endPoint": "none",
"isMeasurement": true
},
@robole
robole / keybindings.json
Created March 1, 2022 11:34
VS Code keyboard shortcuts
[
{
"key": "ctrl+k v",
"command": "-preview.showPreviewToSide",
"when": "!notebookEditorFocused && !terminalFocus"
},
{
"key": "ctrl+shift+v",
"command": "markdown.showPreviewToSide",
"when": "editorTextFocus && editorLangId == markdown"
{
"meanTemp": {"1910": [2.6, 3.9, 5.4, 6.0, 10.1, 13.3, 13.2, 14.1, 11.8, 9.9, 2.8, 5.5], "1911": [3.5, 4.0, 4.3, 6.6, 11.7, 13.2, 16.2, 16.5, 12.7, 8.4, 5.0, 5.3], "1912": [3.0, 4.2, 6.1, 7.9, 10.5, 12.5, 14.5, 11.7, 10.3, 7.7, 5.4, 5.5], "1913": [3.5, 4.2, 4.9, 6.8, 10.1, 12.8, 13.6, 14.2, 12.7, 10.1, 7.3, 4.2], "1914": [2.8, 5.5, 4.8, 8.6, 9.4, 13.1, 14.6, 14.8, 12.2, 9.4, 5.8, 3.4], "1915": [3.0, 3.1, 4.2, 6.8, 9.3, 12.8, 13.4, 14.1, 12.2, 8.3, 2.6, 3.9], "1916": [6.3, 2.8, 2.5, 7.0, 9.9, 10.6, 14.0, 14.9, 12.0, 9.4, 6.1, 2.0], "1917": [1.1, 1.0, 2.5, 4.3, 10.8, 13.2, 14.7, 14.4, 12.7, 6.6, 7.0, 2.0], "1918": [2.6, 5.5, 4.9, 5.9, 11.4, 11.9, 14.1, 14.7, 10.4, 8.3, 4.9, 5.6], "1919": [2.4, 1.2, 2.5, 6.2, 11.7, 12.5, 12.9, 14.3, 11.6, 7.2, 2.3, 4.2], "1920": [3.9, 5.0, 5.8, 6.8, 10.3, 12.9, 12.9, 12.5, 11.8, 9.7, 6.5, 3.5], "1921": [5.8, 4.2, 5.9, 7.3, 10.0, 13.0, 16.2, 13.8, 12.8, 11.6, 4.4, 5.7], "1922": [2.9, 3.7, 4.0, 4.6, 10.9, 12.2, 12.3, 12.3, 11.0, 7.6, 5.3, 4.8], "1923": [4.9, 4.5, 5.7, 6.3, 8.0, 1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@robole
robole / population.csv
Created June 19, 2018 23:03
World population
Name Population (mill) Average Life Expectancy Area (1000 sq mi) Continent
Canada 33.9 80.7 3854.085 America
US 308.3 78.2 3784.191 America
Germany 82.3 79.4 137.847 Europe
Russia 141.9 65.5 6601.668 Europe
Mexico 108.4 76.06 758.449 America
Brazil 193.3 71.99 3287.612 America
Spain 46.9 80.9 195.365 Europe
France 65.4 80.98 244.339 Europe
China 1339 73 3705.407 Asia
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@robole
robole / ZoneIds
Created March 16, 2018 22:41
ZoneIds
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
@robole
robole / berlin-graph.json
Created March 2, 2018 18:24
simple berlin transport json
{
"nodes": [
{
"label": "Kottbuster To",
"x": 464.41607666015625,
"y": 216.58160400390625,
"id": "3",
"attributes": {
"Target": "4",
"Source": "3"