I hereby claim:
- I am skgsergio on github.
- I am skgsergio (https://keybase.io/skgsergio) on keybase.
- I have a public key whose fingerprint is 487D 62C8 523C 9BBF 7CC8 D029 959E A15D 1867 A20A
To claim this, I am signing this object:
| #!/bin/bash | |
| # | |
| # System update script for Arch Linux. | |
| # | |
| # Requires: | |
| # - yay as package manager. | |
| # - reflector as mirror list updater. | |
| # | |
| # Sergio Conde <[email protected]> | |
| # |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| try: | |
| import urllib2 # Python 2 | |
| except ImportError: | |
| import urllib.request as urllib2 # Python 3 | |
| def isup(url): |
| # Compilador, puede cambiarse con make CC=clang CXX=clang | |
| CC ?= gcc | |
| CXX ?= g++ | |
| # Flags normales | |
| CCFLAGS = -march=native -O2 -fomit-frame-pointer -pipe | |
| CXXFLAGS = $(CCFLAGS) | |
| LDFLAGS = -Wl,-O1 -Wl,--as-needed | |
| # Flags para debug |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| #!/usr/bin/env python3 | |
| import os | |
| import sys | |
| import json | |
| import logging | |
| import pathlib | |
| import argparse | |
| import requests |
| #!/bin/bash | |
| mimetype=$(file -bN --mime-type "$1") | |
| content=$(base64 -w0 < "$1") | |
| echo "data:$mimetype;base64,$content" |
| import sys | |
| import pathlib | |
| from zigpy.ota.image import parse_ota_image | |
| if len(sys.argv) != 4: | |
| print(f"Usage: {sys.argv[0]} ota_file new_version_hex_or_int output_dir") | |
| sys.exit(1) | |
| ota_file = pathlib.Path(sys.argv[1]) |
| { | |
| "version": "1.23.16", | |
| "notificationList": [], | |
| "monitorList": [ | |
| { | |
| "id": 2, | |
| "name": "Cloudflare - 104.21.16.1", | |
| "description": null, | |
| "pathName": "Cloudflare - 104.21.16.1", | |
| "parent": null, |
| services: | |
| ## Create a Tinybird self-managed region | |
| # Docs: https://www.tinybird.co/docs/forward/get-started/self-managed/manual | |
| # | |
| # 1. Run: tb infra add | |
| # 2. Create an .env.tinybird file with TB_INFRA values | |
| tinybird: | |
| image: tinybirdco/tinybird-local:beta | |
| env_file: | |
| - .env.tinybird |