目标:不依赖第三方服务
使用 gopass 管理密码,gopass 是 https://www.passwordstore.org/ 的 go 语言实现。密码会被加密之后存储到 git repo 里,多个设备间使用 git 进行同步。
def request_hook(span: Span, event: monitoring.CommandStartedEvent): | |
# add detail query info to span | |
if span.is_recording(): | |
match event.command_name: | |
case "find": | |
span.set_attribute("filter", dumps(event.command.get("filter"))) | |
case "update": | |
updates = event.command.get("updates") | |
span.set_attribute("filter", dumps(updates.get('q'))) | |
span.set_attribute("update", dumps(updates.get('u'))) |
import subprocess | |
import tempfile | |
import os | |
import sys | |
def getUpdateList(rsync_source, target_source): | |
files = subprocess.check_output(['/usr/bin/rsync', '--no-motd', '-havn', '--exclude=Sources', rsync_source, target_source]).decode() | |
print(files) | |
ret = [] |
目标:不依赖第三方服务
使用 gopass 管理密码,gopass 是 https://www.passwordstore.org/ 的 go 语言实现。密码会被加密之后存储到 git repo 里,多个设备间使用 git 进行同步。
ETCD_LISTEN_CLIENT_URLS=https://0.0.0.0:2379 | |
ETCD_ADVERTISE_CLIENT_URLS=https://<replace-with-your-own> | |
ETCD_CERT_FILE=<replace-with-your-own> | |
ETCD_KEY_FILE=<replace-with-your-own> | |
ETCD_CA_FILE=<replace-with-your-own> |
Proxmox provided ZFS over iSCSI for storage. Most tutorials/guides are about using FreeNAS. But you can using an normal proxmox host for ZFS over iSCSI.
On Storage Node:
apt install targetcli-fb
targetcli /iscsi create
On Every Proxmox Node
targetcli /iscsi/iqn.2003-01.org.linux-iscsi.pve-2.x8664:sn.71fbbfad3c47/tpg1/acls create
#!/bin/env python3 | |
from proc.tree import get_process_tree | |
import os | |
from pathlib import Path | |
import sys | |
import subprocess | |
ssh_connection = os.getenv('SSH_CONNECTION') | |
client_ip = ssh_connection.split(" ")[0] | |
init = get_process_tree() | |
for i in init.find_all(recursive=True, exe_name="node"): |
import xml.etree.ElementTree as ET | |
import json | |
import sys | |
import re | |
def load(name): | |
root = ET.parse(name) | |
return json.loads(root.findtext('./string')) | |
def normalize(record): |
C:\Users\pan\scoop\apps\hashcat\6.2.5>hashcat --benchmark | |
hashcat (v6.2.5) starting in benchmark mode | |
Benchmarking uses hand-optimized kernel code by default. | |
You can use it in your cracking session by setting the -O option. | |
Note: Using optimized kernel code limits the maximum supported password length. | |
To disable the optimized kernel code in benchmark mode, use the -w option. | |
hipDeviceGetAttribute(): 1 |
#!/bin/bash | |
from=sda | |
to=sdb | |
set -ex | |
apt -y install parted | |
sgdisk /dev/${from} -R /dev/${to} | |
sgdisk -G /dev/${to} | |
mkfs.btrfs -f /dev/${to}3 | |
mkfs.vfat /dev/${to}2 |
adb shell settings put global captive_portal_http_url http://www.google.cn/generate_204 | |
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204 | |
adb shell settings put global captive_portal_fallback_url http://www.google.cn/generate_204 | |
adb shell settings put global captive_portal_other_fallback_urls http://www.qualcomm.cn/generate_204 |