origin_as | ipv4 | ipv6 |
---|---|---|
5511 | 511 | 11 |
2285 | 8 | 7 |
57839 | 11 | 2 |
20765 | 8 | 4 |
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: | |
clickhouse: | |
image: clickhouse/clickhouse-server:latest | |
ports: | |
- "8123:8123" # HTTP interface | |
- "9000:9000" # Native/TCP interface | |
environment: | |
CLICKHOUSE_DB: "mrt" | |
CLICKHOUSE_USER: "default" | |
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: "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
""" | |
Append --extra-index-url statements in requirements.txt (not supported by uv export) | |
https://github.com/astral-sh/uv/issues/7496 | |
run from pre-commit with | |
```yaml | |
- repo: local | |
hooks: | |
- id: fix-requirements | |
name: fix extra-index-urls in generated requirements.txt |
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 argparse | |
import itertools | |
import json | |
import logging | |
import os | |
import random | |
import time | |
from typing import Dict, List, Optional, Union |
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 argparse | |
import logging | |
import os | |
import requests | |
import sys | |
import urllib.parse | |
from typing import Optional | |
import pyotp |
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/ksh | |
export BASE=${HOME} | |
echo "Removing cache and output directory..." | |
rm -rf ${BASE}/data/rpki-client/cache/* | |
rm -rf ${BASE}/data/rpki-client/output/* | |
echo "Running rpki-client" | |
exec /usr/sbin/rpki-client -vv -t /etc/rpki/ripe.tal -d ${BASE}/data/rpki-client/cache/ ${BASE}/data/rpki-client/output/ |
Make sure you run XQuartz if you are using a mac and that DISPLAY is set on the host machine.
$ export DISPLAY=:0
And SSH to the target machine with forwarding enabled (ssh -Y [host]
)
Inspect the environment by running:
$ flatpak run --filesystem=~/.xauth com.jetbrains.IntelliJ-IDEA-Community --command=sh -c "export DISPLAY=$DISPLAY"
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
# ... | |
samba: | |
image: dperson/samba | |
restart: unless-stopped | |
command: >- | |
-u "user;badpass" | |
-u "timemachine_rmbp;${TIMEMACHINE_RMBP_PASSWORD}" | |
-s "data;/media/data;yes;yes;yes;all" | |
ports: | |
- 139:139 |
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
pointwise_experiment_content = session.query(PointwiseExperiment). \ | |
filter(PointwiseExperiment.features==feature_string).subquery('c') | |
# reindented on phone... | |
q = session.query(PointwiseExperiment, func.row_number().over( | |
partition_by=PointwiseExperiment.learner, | |
order_by=PointwiseExperiment.mse_mean | |
).label('ord')).select_entity_from(pointwise_experiment_content).subquery() |
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
groups: | |
- name: host.health | |
rules: | |
- alert: SmartFailure | |
expr: smartmon_device_smart_healthy != 1 | |
labels: | |
severity: "critical" | |
annotations: | |
summary: "Disk {{ $labels.disk }} on {{ $labels.instance }} has a SMART failure." | |
- alert: DiskFullPercentage |
NewerOlder