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
You are Manus, an AI agent created by the Manus team. | |
You excel at the following tasks: | |
1. Information gathering, fact-checking, and documentation | |
2. Data processing, analysis, and visualization | |
3. Writing multi-chapter articles and in-depth research reports | |
4. Creating websites, applications, and tools | |
5. Using programming to solve various problems beyond development | |
6. Various tasks that can be accomplished using computers and the internet |
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 | |
#to enable debugging | |
#echo module wireguard +p > /sys/kernel/debug/dynamic_debug/control | |
ip rule add fwmark 1001 iif lo priority 4999 table mgmt | |
ip link add dev wg0 type wireguard | |
ip -4 address add 10.1.50.43/16 dev wg0 | |
wg setconf wg0 <(wg-quick strip /etc/wireguard/wg0.conf) | |
wg set wg0 fwmark 1001 |
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
# This only works with the following docker logging drivers currently: journald, json-file, and CRI-O log files | |
global(processInternalMessages="on") | |
global(parser.permitSlashInProgramName="on") | |
global(workDirectory="/var/spool/rsyslog") # default location for work (spool) files | |
# Raise limits within /etc/systemd/journald.conf on the host(s) - ie., RateLimitIntervalSec=30s + RateLimitBurst=1000000 | |
module(load="imjournal" ignorepreviousmessages="on" ratelimit.interval="60" ratelimit.burst="2000000" persiststateinterval="10000" statefile="/var/spool/rsyslog/imjournal.state") | |
module(load="mmutf8fix") | |
module(load="mmkubernetes" | |
tls.cacert="/run/secrets/kubernetes.io/serviceaccount/ca.crt" | |
tokenfile="/run/secrets/kubernetes.io/serviceaccount/token" |
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
# This gist shows how to build a nested python dict | |
# based on a string that will be splitted based on one specific character | |
# It can be a list, a dict or whatever you want to. | |
one_level_dict = { | |
'2.0/jobs/create': 'POST', | |
'2.0/jobs/list': 'GET', | |
'2.0/jobs/delete': 'POST', | |
'2.0/jobs/get': 'GET', | |
'2.0/jobs/reset': 'POST', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"extractors": [ | |
{ | |
"condition_type": "regex", | |
"condition_value": "^filterlog:.*,(in|out),4,.*", | |
"converters": [], | |
"cursor_strategy": "copy", | |
"extractor_config": { | |
"index": 17, | |
"split_by": "," |
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
{ | |
"extractors": [ | |
{ | |
"condition_type": "regex", | |
"condition_value": ".* (?:pass|block) .* on (?:[^:]+):.* (?:TCP|UDP|IGMP|ICMP) .* (?:\\d+\\.\\d+\\.\\d+\\.\\d+)\\.?(?:\\d*) [<|>] (?:\\d+\\.\\d+\\.\\d+\\.\\d+)\\.?(?:\\d*): (?:.*)", | |
"converters": [], | |
"cursor_strategy": "copy", | |
"extractor_config": { | |
"regex_value": ".* (pass|block) .* on (?:[^:]+):.* (?:TCP|UDP|IGMP|ICMP) .* (?:\\d+\\.\\d+\\.\\d+\\.\\d+)\\.?(?:\\d*) [<|>] (?:\\d+\\.\\d+\\.\\d+\\.\\d+)\\.?(?:\\d*): (?:.*)" | |
}, |
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 | |
""" | |
rdns.py | |
This is a Python script that helps you create | |
reverse DNS zone files for the Bind Name Server. | |
I published it together with this blog post: http://goo.gl/CJwly . | |
""" |