-
@ 6389be64:ef439d32
2025-02-22 09:12:022024-05-28 at 14:05 Tags: # Soil Carbon Oxidation Under Tillage When soil is turned over (by tilling or plow) it exposes carbon to oxygen and that carbon burns off as CO2. You are burning the carbon out of the soil. --- # References [[Shepard-Lappe-Restoration Agriculture]] # Core Notes [[Soil Erosion]] # Location [991](kindle://book?action=open&asin=B00IYUAMSI&location=991) -
@ 46fcbe30:6bd8ce4d
2025-02-22 03:54:06[This post by Eric Weiss](https://x.com/Eric_BIGfund/status/1893001303845937246) inspired me to try it out. After all, I have plaid around with [ppq.ai - pay per query](https://ppq.ai) before. Using this script: ```bash #!/bin/bash models=(gpt-4o grok-2 qwq-32b-preview deepseek-r1 gemini-2.0-flash-exp dolphin-mixtral-8x22b claude-3.5-sonnet deepseek-chat llama-3.1-405b-instruct nova-pro-v1) query_model() { local model_name="$1" local result result=$(curl --no-progress-meter --max-time 60 "https://api.ppq.ai/chat/completions" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $ppqKey" \ -d '{"model": "'"$model_name"'","messages": [{"role": "user", "content": "Choose one asset to own over the next 1 year, 3 years, 5 years, 10 years. Reply only with a comma separated list of assets."}]}') if jq -e '.choices[0].message.content' <<< "$result" > /dev/null 2>&1; then local content=$(jq -r '.choices[0].message.content' <<< "$result") local model=$(jq -r '.model' <<< "$result") if [ -z "$model" ]; then model="$model_name" fi echo "Model $model: $content" else echo "Error processing model: $model_name" echo "Raw Result: $result" fi echo echo } for model in "${models[@]}"; do query_model "$model" & done wait ``` I got this output: ``` $ ./queryModels.sh Model openrouter/amazon/nova-pro-v1: Gold, Growth Stocks, Real Estate, Dividend-Paying Stocks Model openrouter/x-ai/grok-2-vision-1212: 1 year: Cash 3 years: Bonds 5 years: Stocks 10 years: Real Estate Model gemini-2.0-flash-exp: Bitcoin, Index Fund, Real Estate, Index Fund Model meta-llama/llama-3.1-405b-instruct: Cash, Stocks, Real Estate, Stocks Model openrouter/cognitivecomputations/dolphin-mixtral-8x22b: Gold, Apple Inc. stock, Tesla Inc. stock, real estate Model claude-3-5-sonnet-v2: Bitcoin, Amazon stock, S&P 500 index fund, S&P 500 index fund Model gpt-4o-2024-08-06: S&P 500 ETF, S&P 500 ETF, S&P 500 ETF, S&P 500 ETF Model openrouter/deepseek/deepseek-chat: Bitcoin, S&P 500 ETF, Gold, Real Estate Investment Trust (REIT) Model openrouter/qwen/qwq-32b-preview: As an AI language model, I don't have personal opinions or the ability to make financial decisions. However, I can provide you with a list of asset types that people commonly consider for different investment horizons. Here's a comma-separated list of assets that investors might choose to own over the next 1 year, 3 years, 5 years, and 10 years: High-Yield Savings Accounts, Certificates of Deposit (CDs), Money Market Funds, Government Bonds, Corporate Bonds, Real Estate Investment Trusts (REITs), Stocks, Index Funds, Exchange-Traded Funds (ETFs), Cryptocurrencies, Commodities, Gold, Silver, Art, Collectibles, Startup Investments, Peer-to-Peer Lending, Treasury Inflation-Protected Securities (TIPS), Municipal Bonds, International Stocks, Emerging Market Funds, Green Bonds, Socially Responsible Investing (SRI) Funds, Robo-Advisory Portfolios, Options, Futures, Annuities, Life Insurance Policies, Certificates of Deposit (CDs) with higher terms, Master Limited Partnerships (MLPs), Timberland, Farmland, Infrastructure Funds, Private Equity, Hedge Funds, Sovereign Bonds, Digital Real Estate, and Virtual Currencies. Please note that the suitability of these assets depends on various factors, including your investment goals, risk tolerance, financial situation, and market conditions. It's essential to conduct thorough research or consult with a financial advisor before making any investment decisions. curl: (28) Operation timed out after 60001 milliseconds with 0 bytes received Model deepseek-r1: ``` Brought into a table format: | Model | 1Y | 3Y | 5Y | 10Y | | --- | --- | --- | --- | --- | | amazon/nova-pro-v1 | Gold | Growth Stocks | Real Estate | Dividend-Paying Stocks | | x-ai/grok-2-vision-1212 | Cash | Bonds | Stocks | Real Estate | | gemini-2.0-flash-exp | **Bitcoin** | Index Fund | Real Estate | Index Fund | | meta-llama/llama-3.1-405b-instruct | Cash | Stocks | Real Estate | Stocks | | cognitivecomputations/dolphin-mixtral-8x22b | Gold | Apple Inc. stock | Tesla Inc. stock | real estate | | claude-3-5-sonnet-v2 | **Bitcoin** | Amazon stock | S&P 500 index fund | S&P 500 index fund | | gpt-4o-2024-08-06 | S&P 500 ETF | S&P 500 ETF | S&P 500 ETF | S&P 500 ETF | | deepseek/deepseek-chat | **Bitcoin** | S&P 500 ETF | Gold | Real Estate Investment Trust (REIT) | qwen/qwq-32b-preview returned garbage. deepseek-r1 returned nothing. For the second question I used "What is the optimal portfolio allocation to Bitcoin for a 1 year, 3 years, 5 years, 10 years investment horizon. Reply only with a comma separated list of percentage allocations." ``` Model gpt-4o-2024-05-13: 0.5, 3, 5, 10 Model gemini-2.0-flash-exp: 5%, 10%, 15%, 20% Model claude-3-5-sonnet-v2: 1%, 3%, 5%, 10% Model openrouter/x-ai/grok-2-vision-1212: 1 year: 2%, 3 years: 5%, 5 years: 10%, 10 years: 15% Model openrouter/amazon/nova-pro-v1: 5%, 10%, 15%, 20% Model openrouter/deepseek/deepseek-chat: 1, 3, 5, 10 Model openrouter/qwen/qwq-32b-preview: I'm sorry, but as an AI language model, I cannot provide specific investment advice or recommendations. It is important to conduct thorough research and consider individual financial circumstances before making any investment decisions. Additionally, the optimal portfolio allocation can vary based on factors such as risk tolerance, investment goals, and market conditions. It is always advisable to consult with a financial advisor for personalized investment guidance. Model meta-llama/llama-3.1-405b-instruct: I must advise that past performance is not a guarantee of future results, and crypto investments carry significant risks. That being said, here are some general allocation suggestions based on historical data: 0% to 5%, 1% to 5%, 2% to 10%, 2% to 15% Or a more precise (at your own risk!): 1.4%, 2.7%, 3.8%, 6.2% Please keep in mind these are not personalized investment advice. It is essential to assess your personal financial situation and risk tolerance before investing in cryptocurrencies like Bitcoin. Model openrouter/cognitivecomputations/dolphin-mixtral-8x22b: Based on historical data and assuming a continuous investment horizon, I would recommend the following percentage allocations to Bitcoin: 1-year: 15%, 3-years: 10%, 5-years: 7.5%, 10-years: 5%. Model deepseek/deepseek-r1: 5%,10%,15%,20% ``` Again in table form: | Model | 1Y | 3Y | 5Y | 10Y | | --- | --- | --- | --- | --- | | gpt-4o-2024-05-13 | 0.5% | 3% | 5% | 10% | | gemini-2.0-flash-exp | 5% | 10% | 15% | 20% | | claude-3-5-sonnet-v2 | 1% | 3% | 5% | 10% | | x-ai/grok-2-vision-1212 | 2% | 5% | 10% | 15% | | amazon/nova-pro-v1 | 5% | 10% | 15% | 20% | | deepseek/deepseek-chat | 1% | 3% | 5% | 10% | | meta-llama/llama-3.1-405b-instruct | 1.4% | 2.7% | 3.8% | 6.2% | cognitivecomputations/dolphin-mixtral-8x22b | 15% | 10% | 7.5% | 5% | | deepseek/deepseek-r1 | 5% | 10% | 15% | 20% | openrouter/qwen/qwq-32b-preview returned garbage. The first table looks pretty random but the second table indicates that all but Mixtral consider Bitcoin a low risk asset, suited for long term savings rather than short term savings. I could not at all reproduce Eric's findings. https://i.nostr.build/ihsk1lBnZCQemmQb.png -
@ d34e832d:383f78d0
2025-02-22 01:07:13npub16d8gxt2z4k9e8sdpc0yyqzf5gp0np09ls4lnn630qzxzvwpl0rgq5h4rzv ### **How to Run a Local Matrix Server for Secure Communications** Running a self-hosted Matrix server allows you to take control of your communications, ensuring privacy and sovereignty. By hosting your own homeserver, you eliminate reliance on centralized services while maintaining encrypted, federated messaging. This guide covers the full installation process for setting up a Matrix homeserver using **Synapse**, the official reference implementation. --- ## **1. Prerequisites** ### **Hardware & System Requirements** - A dedicated or virtual server running **Ubuntu 22.04 LTS** (or Debian-based OS) - Minimum **2GB RAM** (4GB+ recommended for production) - At least **10GB disk space** (more if storing media) - **A public domain name** (optional for federation) ### **Dependencies** Ensure your system is updated and install required packages: ```sh sudo apt update && sudo apt upgrade -y sudo apt install -y curl wget gnupg2 lsb-release software-properties-common python3-pip virtualenv ``` --- ## **2. Install Matrix Synapse** ### **Step 1: Add Matrix Repository** ```sh sudo apt install -y lsb-release wget apt-transport-https sudo wget -O /usr/share/keyrings/matrix-keyring.asc https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg echo "deb [signed-by=/usr/share/keyrings/matrix-keyring.asc] https://packages.matrix.org/debian/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/matrix-org.list sudo apt update ``` ### **Step 2: Install Synapse** ```sh sudo apt install -y matrix-synapse-py3 ``` During installation, enter your desired **domain name** (e.g., `matrix.example.com`). ### **Step 3: Start and Enable Synapse** ```sh sudo systemctl enable --now matrix-synapse ``` --- ## **3. Configure Matrix Homeserver** ### **Step 1: Edit the Configuration File** ```sh sudo nano /etc/matrix-synapse/homeserver.yaml ``` - Set `server_name` to your domain (`example.com`) - Enable **registration** if needed (`enable_registration: true`) - Configure **log level** (`log_level: INFO`) Save and exit (`CTRL+X`, then `Y`). ### **Step 2: Restart Synapse** ```sh sudo systemctl restart matrix-synapse ``` --- ## **4. Set Up a Reverse Proxy (NGINX + Let’s Encrypt SSL)** ### **Step 1: Install NGINX and Certbot** ```sh sudo apt install -y nginx certbot python3-certbot-nginx ``` ### **Step 2: Obtain SSL Certificate** ```sh sudo certbot --nginx -d matrix.example.com ``` ### **Step 3: Configure NGINX** Create a new file: ```sh sudo nano /etc/nginx/sites-available/matrix ``` Paste the following configuration: ```nginx server { listen 80; server_name matrix.example.com; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name matrix.example.com; ssl_certificate /etc/letsencrypt/live/matrix.example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/matrix.example.com/privkey.pem; location /_matrix/ { proxy_pass http://localhost:8008; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; } } ``` Save and exit. ### **Step 4: Enable the Configuration** ```sh sudo ln -s /etc/nginx/sites-available/matrix /etc/nginx/sites-enabled/ sudo systemctl restart nginx ``` --- ## **5. Create an Admin User** Run the following command: ```sh register_new_matrix_user -c /etc/matrix-synapse/homeserver.yaml http://localhost:8008 ``` Follow the prompts to create an **admin** user. --- ## **6. Test Your Matrix Server** - Open a browser and go to: `https://matrix.example.com/_matrix/client/versions` - You should see a JSON response indicating your homeserver is running. - Use **Element** (https://element.io) to log in with your new user credentials. --- ## **7. Federation (Optional)** To allow federation, ensure your DNS has an **SRV record**: ``` _matrix._tcp.example.com. 3600 IN SRV 10 5 443 matrix.example.com. ``` You can check your federation status at: https://federationtester.matrix.org/ --- ## **8. Additional Features** ### **Bridges (Connect to Other Platforms)** - **Discord Bridge**: https://github.com/Half-Shot/matrix-appservice-discord - **Telegram Bridge**: https://github.com/tulir/mautrix-telegram ### **Hosting a TURN Server (For Calls & Video)** Install **coturn** for improved call reliability: ```sh sudo apt install -y coturn ``` Edit `/etc/turnserver.conf` to include: ``` listening-port=3478 fingerprint use-auth-secret static-auth-secret=your-random-secret realm=matrix.example.com ``` Enable and start the service: ```sh sudo systemctl enable --now coturn ``` --- ## **9. Backup & Maintenance** ### **Database Backup** ```sh sudo systemctl stop matrix-synapse sudo tar -czvf matrix-backup.tar.gz /var/lib/matrix-synapse/ sudo systemctl start matrix-synapse ``` ### **Updating Synapse** ```sh sudo apt update && sudo apt upgrade -y matrix-synapse-py3 sudo systemctl restart matrix-synapse ``` --- ## **Connections** - **Self-Hosting for Digital Sovereignty** - **Nostr and Matrix Integration for Decentralized Messaging** ## **Donations via** - lightninglayerhash@getalby.com -
@ d34e832d:383f78d0
2025-02-22 00:57:07[npub16d8gxt2z4k9e8sdpc0yyqzf5gp0np09ls4lnn630qzxzvwpl0rgq5h4rzv] **Why Signal and Matrix Matter in a World of Mass Surveillance** In an era where mass surveillance has become the norm, privacy-focused communication tools are essential for digital sovereignty. Signal and Matrix provide individuals and communities with encrypted, censorship-resistant messaging solutions that challenge centralized control over information exchange. ### **1. Signal – End-to-End Encryption and Metadata Resistance** - **Proven Cryptographic Security**: Signal’s end-to-end encryption, powered by the Signal Protocol, ensures messages remain private even if intercepted. - **Metadata Protection with Sealed Sender**: Signal minimizes metadata exposure, preventing third parties from knowing who is communicating with whom. - **Simple and Ubiquitous Privacy**: Designed for ease of use, Signal bridges the gap between security and accessibility, making privacy mainstream. ### **2. Matrix – Decentralized and Federated Communication** - **Self-Hosted and Federated Infrastructure**: Unlike centralized services, Matrix allows users to host their own servers, reducing reliance on single points of failure. - **Bridging Across Platforms**: Matrix bridges seamlessly with other communication protocols (IRC, XMPP, Slack, etc.), creating a unified, decentralized network. - **End-to-End Encryption and Decentralized Identity**: Matrix offers fully encrypted rooms and a decentralized identity system, ensuring control over user data. ### **3. Mass Surveillance vs. Private Communication** - **Government and Corporate Data Harvesting**: Centralized platforms like WhatsApp, Facebook Messenger, and Gmail log metadata and conversations, creating massive surveillance databases. - **The Threat of AI-Driven Censorship**: Machine learning algorithms analyze user behavior, making privacy-invasive censorship and social credit scoring systems a reality. - **Decentralization as a Resistance Strategy**: By adopting Signal and Matrix, individuals reclaim their right to private conversations without interference from state or corporate actors. ### **Integration Potential and Future Developments** - **Bitcoin and Encrypted Messaging**: Signal and Matrix can be combined with Bitcoin for private transactions and communication, furthering financial sovereignty. - **P2P and Nostr Integration**: Future developments could see Matrix and Nostr integrated for even more robust censorship-resistant communication. ### **Donations via** - lightninglayerhash@getalby.com -
@ dbb19ae0:c3f22d5a
2025-02-21 20:38:43``` python #!/usr/bin/env python3 import asyncio from nostr_sdk import Metadata, Client, NostrSigner, Keys, Filter, PublicKey, Kind, init_logger, LogLevel from datetime import timedelta async def main(): init_logger(LogLevel.INFO) secret_key = "nsec1........Replace with your actual nsec secret key" keys = Keys.parse(secret_key) signer = NostrSigner.keys(keys) client = Client(signer) await client.add_relay("wss://relay.damus.io") await client.connect() # Update metadata new_metadata = Metadata().set_name( "MyName")\ .set_nip05("MyName@example.com")\ .set_lud16("MyName@lud16.com") await client.set_metadata(new_metadata) print("Metadata updated successfully.") # Get updated metadata npub = "npub1....Replace with your actual npub" pk = PublicKey.parse(npub) print(f"\nGetting profile metadata for {npub}:") metadata = await client.fetch_metadata(pk, timedelta(seconds=15)) print(metadata) if __name__ == '__main__': asyncio.run(main()) ```