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 | |
| """ | |
| GPU Monitoring & Netchat Notification Service | |
| Standalone Python script to: | |
| 1. Query GPU metrics from Prometheus | |
| 2. Send formatted notifications to Netchat API | |
| 3. Run on scheduled intervals using cron | |
| Requirements: |
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: '3.8' | |
| services: | |
| gpu-monitor: | |
| build: . | |
| container_name: gpu-monitor | |
| restart: unless-stopped | |
| environment: | |
| # Prometheus Configuration | |
| - PROMETHEUS_URL=http://10.24.10.14:30005 |
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
| https://www.reddit.com/r/browsers/comments/1f50968/zen_or_arc_browser/ | |
| Can you test this and see if it helps? | |
| Install https://zen-browser.app/mods/c6813222-6571-4ba6-8faf-58f3343324f6/ | |
| Open about:config and change zen.view.experimental-rounded-viewto false if it's true | |
| https://www.reddit.com/r/zen_browser/comments/1jijzda/zen_browser_very_slow/ |
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 | |
| # SoftEther VPN Server Uninstall Script | |
| # Gỡ bỏ hoàn toàn SoftEther VPN Server | |
| # Author: AI Assistant | |
| # Version: 1.0 | |
| set -e # Exit on any error | |
| # Colors for output |
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
| Pod errors due to “too many open files” | |
| You may encounter that some pods fail to get running and the logs of these pods complain “too many open files”. | |
| This may be caused by running out of inotify resources. Resource limits are defined by fs.inotify.max_user_watches and fs.inotify.max_user_instances system variables. For example, in Ubuntu these default to 8192 and 128 respectively, which is not enough to create multiple kind clusters with many pods. | |
| To increase these limits temporarily run the following commands on the host: | |
| sudo sysctl fs.inotify.max_user_watches=524288 | |
| sudo sysctl fs.inotify.max_user_instances=512 | |
| To make the changes persistent, edit the file /etc/sysctl.conf and add these lines: |
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 | |
| # SoftEther VPN Server Auto Installation Script - NO SYSTEM UPGRADE | |
| # Headless 100% - No Interaction Required - FASTER VERSION | |
| # Author: AI Assistant | |
| # Version: 1.1 - Skip System Upgrade | |
| set -e # Exit on any error | |
| # Configuration variables |
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
| -----BEGIN CERTIFICATE----- | |
| MIID1TCCAr2gAwIBAgIULIdpnk5XdZ5HKgZKuHZklCBv0pEwDQYJKoZIhvcNAQEL | |
| BQAwXjELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVN0YXRlMQ0wCwYDVQQHDARDaXR5 | |
| MRUwEwYDVQQKDAxPcmdhbml6YXRpb24xGTAXBgNVBAMMEGs4cy1vbWljeC12Mi52 | |
| aXAwHhcNMjUwMjIzMTQxMzUyWhcNMjYwMjIzMTQxMzUyWjBeMQswCQYDVQQGEwJV | |
| UzEOMAwGA1UECAwFU3RhdGUxDTALBgNVBAcMBENpdHkxFTATBgNVBAoMDE9yZ2Fu | |
| aXphdGlvbjEZMBcGA1UEAwwQazhzLW9taWN4LXYyLnZpcDCCASIwDQYJKoZIhvcN | |
| AQEBBQADggEPADCCAQoCggEBAI38r5dwqDTAivbi8vNfIN01kyiXdB/sPlSnPRnN | |
| GEOnW9b04jmxl0paiqFvJLYdnXMFBmg1aP+L2aR/PHHGxUSu5DRHkqrfzk/1HXiB | |
| 5n3avxEz/FgUCjnFomkDfof6P+dtozcLQQpniIguA+uhSs3oC11pBbOMnW9DfJfw |
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
| {{ if regexMatch "^[0-9]+$" (tpl (printf "%v" $val) $) }}{{ tpl (printf "%v" $val) $ }}{{ else }}{{ tpl (printf "%v" $val) $ | quote }}{{ end }} |
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
| # Clean cache | |
| sudo rm -rf ~/Library/Application Support/Cursor | |
| # Change mac id | |
| #!/bin/bash | |
| new_machine_id=$(uuidgen | tr '[:upper:]' '[:lower:]') | |
| new_dev_device_id=$(uuidgen | tr '[:upper:]' '[:lower:]') | |
| new_mac_machine_id=$(openssl rand -hex 32) | |
| echo $new_machine_id > ~/Library/Application\ Support/Cursor/machineid |
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
| FROM nginx:alpine AS builder | |
| # nginx:alpine contains NGINX_VERSION environment variable, like so: | |
| # ENV NGINX_VERSION 1.15.0 | |
| # Our NCHAN version | |
| ENV NCHAN_VERSION 1.1.15 | |
| # Download sources | |
| RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \ |
NewerOlder