Skip to content

Instantly share code, notes, and snippets.

# Day 27: Boundaries - World Time Zones
# Shows current time in each timezone, centered on user's location
library(mapgl)
library(sf)
library(dplyr)
library(lubridate)
# Get user's current timezone and time
user_tz <- Sys.timezone()
#!/usr/bin/env bun
"use strict";
const fs = require("fs");
const { execSync } = require("child_process");
const path = require("path");
// ANSI color constants
const c = {
cy: '\033[36m', // cyan
@teleboas
teleboas / .cursorrules
Created June 1, 2025 03:21 — forked from boxabirds/.cursorrules
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors
@teleboas
teleboas / AuthyToOtherAuthenticator.md
Created August 17, 2024 13:59 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@teleboas
teleboas / README.md
Created April 20, 2024 16:12 — forked from ThomasG77/README.md
Pompage dump données Geoportail de l'urbanisme

Copie données WFS depuis le géoportail de l'urbanisme

Ici on prend les données GPKG mais shp et CSV aussi disponibles selon vos préférences

# Infos pompées de https://www.geoportail-urbanisme.gouv.fr/image/Manuel_export_massif.pdf
# Obtenu via discussion https://georezo.net/forum/viewtopic.php?pid=367182#p367182
# Do once (to get ssh key)
timeout 5 ssh -oStrictHostKeyChecking=accept-new -p 2200 gpu_depot_exports@sftp-public.ign.fr
# List files
@teleboas
teleboas / query.sql
Created February 20, 2024 14:31 — forked from robstradling/query.sql
2023-10-27: CA Owner "?" on https://crt.sh/cert-populations
WITH cas AS (
SELECT cac.CA_ID
FROM ccadb_certificate cc
JOIN ca_certificate cac ON cc.CERTIFICATE_ID = cac.CERTIFICATE_ID
WHERE cc.INCLUDED_CERTIFICATE_OWNER IS NULL
EXCEPT
SELECT cac.CA_ID
FROM ccadb_certificate cc
JOIN ca_certificate cac ON cc.CERTIFICATE_ID = cac.CERTIFICATE_ID
GROUP BY cac.CA_ID
const fs = require("fs");
const zlib = require("zlib");
const args = process.argv.slice(2);
if (args.length < 1) {
console.error("Usage: node emkunpack.js <file>");
process.exit(1);
}
const data = fs.readFileSync(args[0]);
@teleboas
teleboas / addok-munin.sh
Created December 1, 2022 11:15 — forked from jdesboeufs/addok-munin.sh
Munin plugin for Addok
# nombre de requêtes de la semaine passée, de la veille et du jour
echo "{ \"queries_week\": `zcat /var/log/nginx/api-adresse-access.log.[2-8].gz | wc -l`, \"queries_yesterday\": `cat /var/log/nginx/api-adresse-access.log.1 | wc -l`, \"queries_today\": `cat /var/log/nginx/api-adresse-access.log | wc -l` }" > /var/www/html/analytics/stats.json
# score moyen sur les 10000 derniers search
cat /var/log/nginx/api-adresse-access.log.1 /var/log/nginx/api-adresse-access.log | grep "GET /search/\?" | tail -n 10000 | grep " d=[0-9\.]*" -o | sed 's/ d=//' | echo "search_mean.value ` awk '{s+=$1} END{print s/(NR)}'`" > /var/log/addok_current
# score moyen sur les 10000 derniers reverse
cat /var/log/nginx/api-adresse-access.log.1 /var/log/nginx/api-adresse-access.log | tail -n 10000 | grep " d=[0-9\.]*" -o | sed 's/ d=//' | echo "reverse_mean.value `awk '{s+=$1} END{print s/(NR)}'`" >> /var/log/addok_current
# % de requêtes en erreur 500-508
err500=`cat /var/log/nginx/api-adresse-access.log.1 /var/log/nginx/api-adresse
@teleboas
teleboas / gist:a0bf5bb4318cc7de27bb8e4010f30ce9
Created August 13, 2019 10:06 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:

1. Exploring

$ rsync -a deploy@ns3107905.ip-54-37-87.eu://home/deploy/rncs_data/opendata-rncs.inpi.fr .

$ cd opendata-rncs.inpi.fr/public/IMR_Donnees_Saisies
$ tree -d -L 3 .