sudo apt update
sudo apt install certbot
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
{ | |
"ad": "en.ad#holiday@group.v.calendar.google.com", | |
"ae": "en.ae#holiday@group.v.calendar.google.com", | |
"af": "en.af#holiday@group.v.calendar.google.com", | |
"al": "en.al#holiday@group.v.calendar.google.com", | |
"am": "en.am#holiday@group.v.calendar.google.com", | |
"ao": "en.ao#holiday@group.v.calendar.google.com", | |
"ar": "en.ar#holiday@group.v.calendar.google.com", | |
"at": "en.austrian#holiday@group.v.calendar.google.com", | |
"au": "en.australian#holiday@group.v.calendar.google.com", |
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
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
end_of_line = lf | |
max_line_length = 120 |
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
# MySQL | |
docker run --rm \ | |
--name mysql \ | |
-p 3306:3306 \ | |
-e MYSQL_ROOT_PASSWORD=toor \ | |
-v ~/Data/mysql:/var/lib/mysql \ | |
-d mysql \ | |
--local_infile=1 | |
# MongoDB |
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
#!/bin/bash | |
tmp=`mktemp` | |
powershell="/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe" | |
trap ctrlC INT | |
removeTempFiles() { | |
rm -f $tmp | |
} |
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
// https://docs.confluent.io/current/schema-registry/serializer-formatter.html#wire-format | |
const avro = require('avsc'); | |
const schemas = { | |
1337: { | |
type: 'record', | |
fields: [ | |
{name: 'name', type: 'string'} | |
] |
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
function propertiesToArray(obj) { | |
const isObject = val => typeof val === 'object' && !Array.isArray(val); | |
const isArray = val => Array.isArray(val); | |
// Format output keys | |
const addDelimiter = (a, b, type) => a ? `${a}.[${b}: ${type}]` : `[${b}: ${type}]`; | |
const paths = (obj = {}, head = '') => { | |
return Object.entries(obj).reduce((product, [key, value]) => { | |
let fullPath = addDelimiter(head, key, typeof value); |
We're looking for an experienced Technical Product Manager to join our team and help us build data and analytics products for internal use.
At Inditex, we're focused on our customers and you'll be able to reach millions of them with your passion and dedication. New ideas became incredible products and services, join us in building the future of eCommerce retailing.
We are looking for a team member with a strong foundation in Computer Science theory and industry experience. In this role, you'll own and lead the roadmap of several internal tools.
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
{ | |
"Africa/Abidjan": "CI", | |
"Africa/Accra": "GH", | |
"Africa/Addis_Ababa": "ET", | |
"Africa/Algiers": "DZ", | |
"Africa/Asmara": "ER", | |
"Africa/Bamako": "ML", | |
"Africa/Bangui": "CF", | |
"Africa/Banjul": "GM", | |
"Africa/Bissau": "GW", |
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
FILE=~/tmp/items.ndjson | |
mongoexport \ | |
--uri="mongodb://<user>:<pass>@alejandromav.mongodb.net/?retryWrites=true&w=majority" \ | |
-d=my_db \ | |
-c=Items \ | |
-o=$FILE | |
curl \ | |
-H 'Authorization: Bearer $TINYBIRD_APPEND_TOKEN' \ |