This file contains hidden or 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
| alias: "Meshtastic: Automated PONG" | |
| description: "" | |
| triggers: | |
| - trigger: event | |
| event_type: meshtastic_api_text_message | |
| event_data: | |
| data: | |
| to: | |
| node: null | |
| channel: 0 |
This file contains hidden or 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 | |
| set -uo pipefail | |
| echo -e "⚠️ This script needs root permissions, it will request privileges for sudo.\n" | |
| BASE_PATH="/opt/cursor" | |
| APPLICATIONS_PATH="/usr/share/applications" | |
| sudo mkdir -p "$BASE_PATH" |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| { | |
| "version": "1.23.16", | |
| "notificationList": [], | |
| "monitorList": [ | |
| { | |
| "id": 2, | |
| "name": "Cloudflare - 104.21.16.1", | |
| "description": null, | |
| "pathName": "Cloudflare - 104.21.16.1", | |
| "parent": null, |
This file contains hidden or 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
| 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]) |
This file contains hidden or 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 | |
| mimetype=$(file -bN --mime-type "$1") | |
| content=$(base64 -w0 < "$1") | |
| echo "data:$mimetype;base64,$content" |
This file contains hidden or 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 python3 | |
| import os | |
| import sys | |
| import json | |
| import logging | |
| import pathlib | |
| import argparse | |
| import requests |
This file contains hidden or 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
| -- 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%' |
This file contains hidden or 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
| # 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 |
This file contains hidden or 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 | |
| # -*- coding: utf-8 -*- | |
| try: | |
| import urllib2 # Python 2 | |
| except ImportError: | |
| import urllib.request as urllib2 # Python 3 | |
| def isup(url): |
NewerOlder